/* Generated by Cython 3.2.2 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/cuda.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/cudaProfiler.h",
            "cuda/bindings/_bindings/loader.h"
        ],
        "extra_compile_args": [
            "-std=c++14",
            "-fpermissive",
            "-Wno-deprecated-declarations",
            "-fno-var-tracking-assignments",
            "-O3"
        ],
        "include_dirs": [
            "./cuda/bindings/_bindings",
            "/opt/python/cp310-cp310/include",
            "/host//home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include"
        ],
        "language": "c++",
        "library_dirs": [
            "/tmp/build-env-yyn641v7/lib/python3.10/site-packages",
            "/tmp/build-env-yyn641v7/lib",
            "/host//home/runner/_work/cuda-python/cuda-python/cuda_toolkit/lib64",
            "/host//home/runner/_work/cuda-python/cuda-python/cuda_toolkit/lib"
        ],
        "name": "cuda.bindings._bindings.cydriver",
        "sources": [
            "cuda/bindings/_bindings/cydriver.pyx",
            "cuda/bindings/_bindings/loader.cpp"
        ]
    },
    "module_name": "cuda.bindings._bindings.cydriver"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_2"
#define CYTHON_HEX_VERSION 0x030202F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CppInitCode */
#ifndef __cplusplus
  #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #else
    #define CYTHON_INLINE inline
  #endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
    x.~T();
}
template<typename T>
class __Pyx_FakeReference {
  public:
    __Pyx_FakeReference() : ptr(NULL) { }
    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
    T *operator->() { return ptr; }
    T *operator&() { return ptr; }
    operator T&() { return *ptr; }
    template<typename U> bool operator ==(const U& other) const { return *ptr == other; }
    template<typename U> bool operator !=(const U& other) const { return *ptr != other; }
    template<typename U> bool operator==(const __Pyx_FakeReference<U>& other) const { return *ptr == *other.ptr; }
    template<typename U> bool operator!=(const __Pyx_FakeReference<U>& other) const { return *ptr != *other.ptr; }
  private:
    T *ptr;
};

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
    #define __PYX_EXTERN_C extern "C++"
#endif

#define __PYX_HAVE__cuda__bindings___bindings__cydriver
#define __PYX_HAVE_API__cuda__bindings___bindings__cydriver
/* Early includes */
#include <stdint.h>
#include "cuda.h"
#include "cudaProfiler.h"
#include <dlfcn.h>
#include "loader.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "cuda/bindings/_bindings/cydriver.pyx",
};
/* #### Code section: utility_code_proto_before_types ### */
/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* #### Code section: numeric_typedefs ### */

/* "cuda/bindings/cydriver.pxd":2731
 * ctypedef CUGLmap_flags_enum CUGLmap_flags
 * 
 * ctypedef unsigned int GLenum             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned int GLuint
*/
typedef unsigned int __pyx_t_4cuda_8bindings_8cydriver_GLenum;

/* "cuda/bindings/cydriver.pxd":2733
 * ctypedef unsigned int GLenum
 * 
 * ctypedef unsigned int GLuint             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef unsigned int __pyx_t_4cuda_8bindings_8cydriver_GLuint;

/* "cuda/bindings/cydriver.pxd":2745
 * ctypedef void* EGLStreamKHR
 * 
 * ctypedef unsigned int EGLint             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef unsigned int __pyx_t_4cuda_8bindings_8cydriver_EGLint;

/* "cuda/bindings/cydriver.pxd":2752
 * ctypedef void* EGLSyncKHR
 * 
 * ctypedef uint32_t VdpDevice             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned long long VdpGetProcAddress
*/
typedef uint32_t __pyx_t_4cuda_8bindings_8cydriver_VdpDevice;

/* "cuda/bindings/cydriver.pxd":2754
 * ctypedef uint32_t VdpDevice
 * 
 * ctypedef unsigned long long VdpGetProcAddress             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpVideoSurface
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress;

/* "cuda/bindings/cydriver.pxd":2756
 * ctypedef unsigned long long VdpGetProcAddress
 * 
 * ctypedef uint32_t VdpVideoSurface             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpOutputSurface
*/
typedef uint32_t __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface;

/* "cuda/bindings/cydriver.pxd":2758
 * ctypedef uint32_t VdpVideoSurface
 * 
 * ctypedef uint32_t VdpOutputSurface             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil
*/
typedef uint32_t __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface;
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
union __pyx_t_4cuda_8bindings_8cydriver_anon_union15;
struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st;

/* "cuda/bindings/cydriver.pxd":2558
 *     ctypedef CUoutput_mode_enum CUoutput_mode
 * 
 * cdef enum CUeglFrameType_enum:             # <<<<<<<<<<<<<<
 *     CU_EGL_FRAME_TYPE_ARRAY = 0
 *     CU_EGL_FRAME_TYPE_PITCH = 1
*/
enum __pyx_t_4cuda_8bindings_8cydriver_CUeglFrameType_enum {
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_FRAME_TYPE_ARRAY = 0,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_FRAME_TYPE_PITCH = 1
};

/* "cuda/bindings/cydriver.pxd":2564
 * ctypedef CUeglFrameType_enum CUeglFrameType
 * 
 * cdef enum CUeglResourceLocationFlags_enum:             # <<<<<<<<<<<<<<
 *     CU_EGL_RESOURCE_LOCATION_SYSMEM = 0
 *     CU_EGL_RESOURCE_LOCATION_VIDMEM = 1
*/
enum __pyx_t_4cuda_8bindings_8cydriver_CUeglResourceLocationFlags_enum {
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_RESOURCE_LOCATION_SYSMEM = 0,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_RESOURCE_LOCATION_VIDMEM = 1
};

/* "cuda/bindings/cydriver.pxd":2570
 * ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags
 * 
 * cdef enum CUeglColorFormat_enum:             # <<<<<<<<<<<<<<
 *     CU_EGL_COLOR_FORMAT_YUV420_PLANAR = 0
 *     CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR = 1
*/
enum __pyx_t_4cuda_8bindings_8cydriver_CUeglColorFormat_enum {
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_PLANAR = 0,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR = 1,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV422_PLANAR = 2,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR = 3,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_RGB = 4,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BGR = 5,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_ARGB = 6,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_RGBA = 7,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_L = 8,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_R = 9,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV444_PLANAR = 10,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR = 11,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUYV_422 = 12,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_UYVY_422 = 13,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_ABGR = 14,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BGRA = 15,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_A = 16,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_RG = 17,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_AYUV = 18,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR = 19,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR = 20,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR = 21,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR = 22,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR = 23,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR = 24,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR = 25,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_VYUY_ER = 26,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_UYVY_ER = 27,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUYV_ER = 28,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVYU_ER = 29,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV_ER = 30,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUVA_ER = 31,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_AYUV_ER = 32,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER = 33,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER = 34,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER = 35,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER = 36,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER = 37,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER = 38,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER = 39,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER = 40,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER = 41,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER = 42,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER = 43,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER = 44,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_RGGB = 45,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_BGGR = 46,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_GRBG = 47,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_GBRG = 48,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER10_RGGB = 49,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER10_BGGR = 50,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER10_GRBG = 51,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER10_GBRG = 52,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_RGGB = 53,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_BGGR = 54,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_GRBG = 55,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_GBRG = 56,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER14_RGGB = 57,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER14_BGGR = 58,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER14_GRBG = 59,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER14_GBRG = 60,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER20_RGGB = 61,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER20_BGGR = 62,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER20_GRBG = 63,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER20_GBRG = 64,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU444_PLANAR = 65,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU422_PLANAR = 66,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_PLANAR = 67,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB = 68,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR = 69,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG = 70,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG = 71,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_BCCR = 72,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_RCCB = 73,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_CRBC = 74,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER_CBRC = 75,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER10_CCCC = 76,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_BCCR = 77,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_RCCB = 78,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_CRBC = 79,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_CBRC = 80,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_BAYER12_CCCC = 81,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y = 82,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 = 83,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 = 84,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 = 85,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 = 86,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 = 87,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 = 88,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 = 89,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 = 90,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 = 91,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 = 92,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 = 93,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR = 94,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 = 95,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y_ER = 96,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y_709_ER = 97,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10_ER = 98,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10_709_ER = 99,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12_ER = 0x64,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12_709_ER = 0x65,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUVA = 0x66,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YUV = 0x67,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_YVYU = 0x68,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_VYUY = 0x69,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER = 0x6A,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER = 0x6B,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER = 0x6C,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER = 0x6D,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER = 0x6E,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER = 0x6F,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER = 0x70,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER = 0x71,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_UYVY_709 = 0x72,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_UYVY_709_ER = 0x73,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_UYVY_2020 = 0x74,
  __pyx_e_4cuda_8bindings_8cydriver_CU_EGL_COLOR_FORMAT_MAX = 0x75
};

/* "cuda/bindings/cydriver.pxd":2717
 * ctypedef CUeglStreamConnection_st* CUeglStreamConnection
 * 
 * cdef enum CUGLDeviceList_enum:             # <<<<<<<<<<<<<<
 *     CU_GL_DEVICE_LIST_ALL = 1
 *     CU_GL_DEVICE_LIST_CURRENT_FRAME = 2
*/
enum __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList_enum {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_DEVICE_LIST_ALL = 1,
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_DEVICE_LIST_CURRENT_FRAME = 2,
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_DEVICE_LIST_NEXT_FRAME = 3
};

/* "cuda/bindings/cydriver.pxd":2724
 * ctypedef CUGLDeviceList_enum CUGLDeviceList
 * 
 * cdef enum CUGLmap_flags_enum:             # <<<<<<<<<<<<<<
 *     CU_GL_MAP_RESOURCE_FLAGS_NONE = 0
 *     CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = 1
*/
enum __pyx_t_4cuda_8bindings_8cydriver_CUGLmap_flags_enum {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_MAP_RESOURCE_FLAGS_NONE = 0,
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = 1,
  __pyx_e_4cuda_8bindings_8cydriver_CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2
};

/* "cuda/bindings/cydriver.pxd":3718
 * cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
 * 
 * cdef enum: CUDA_VERSION = 13010             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_IPC_HANDLE_SIZE = 64
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_VERSION = 0x32D2
};

/* "cuda/bindings/cydriver.pxd":3720
 * cdef enum: CUDA_VERSION = 13010
 * 
 * cdef enum: CU_IPC_HANDLE_SIZE = 64             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_STREAM_LEGACY = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_IPC_HANDLE_SIZE = 64
};

/* "cuda/bindings/cydriver.pxd":3722
 * cdef enum: CU_IPC_HANDLE_SIZE = 64
 * 
 * cdef enum: CU_STREAM_LEGACY = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_STREAM_PER_THREAD = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_LEGACY = 1
};

/* "cuda/bindings/cydriver.pxd":3724
 * cdef enum: CU_STREAM_LEGACY = 1
 * 
 * cdef enum: CU_STREAM_PER_THREAD = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_PER_THREAD = 2
};

/* "cuda/bindings/cydriver.pxd":3726
 * cdef enum: CU_STREAM_PER_THREAD = 2
 * 
 * cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_COMPUTE_FAMILY_TARGET_BASE = 131072
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_COMPUTE_ACCELERATED_TARGET_BASE = 0x10000
};

/* "cuda/bindings/cydriver.pxd":3728
 * cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536
 * 
 * cdef enum: CU_COMPUTE_FAMILY_TARGET_BASE = 131072             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_GRAPH_COND_ASSIGN_DEFAULT = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_COMPUTE_FAMILY_TARGET_BASE = 0x20000
};

/* "cuda/bindings/cydriver.pxd":3730
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GRAPH_COND_ASSIGN_DEFAULT = 1
};

/* "cuda/bindings/cydriver.pxd":3732
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GRAPH_KERNEL_NODE_PORT_DEFAULT = 0
};

/* "cuda/bindings/cydriver.pxd":3734
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = 1
};

/* "cuda/bindings/cydriver.pxd":3736
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = 2
};

/* "cuda/bindings/cydriver.pxd":3738
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
};

/* "cuda/bindings/cydriver.pxd":3740
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
};

/* "cuda/bindings/cydriver.pxd":3742
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_DIMENSION = 4
};

/* "cuda/bindings/cydriver.pxd":3744
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 5
};

/* "cuda/bindings/cydriver.pxd":3746
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_PRIORITY = 8
};

/* "cuda/bindings/cydriver.pxd":3748
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9
};

/* "cuda/bindings/cydriver.pxd":3750
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10
};

/* "cuda/bindings/cydriver.pxd":3752
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = 11
};

/* "cuda/bindings/cydriver.pxd":3754
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13
};

/* "cuda/bindings/cydriver.pxd":3756
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14
};

/* "cuda/bindings/cydriver.pxd":3758
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
};

/* "cuda/bindings/cydriver.pxd":3760
 * cdef enum: CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
 * 
 * cdef enum: CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_STREAM_ATTRIBUTE_PRIORITY = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3
};

/* "cuda/bindings/cydriver.pxd":3762
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_ATTRIBUTE_PRIORITY = 8
};

/* "cuda/bindings/cydriver.pxd":3764
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9
};

/* "cuda/bindings/cydriver.pxd":3766
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN = 10
};

/* "cuda/bindings/cydriver.pxd":3768
 * cdef enum: CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN = 10
 * 
 * cdef enum: CU_MEMHOSTALLOC_PORTABLE = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTALLOC_PORTABLE = 1
};

/* "cuda/bindings/cydriver.pxd":3770
 * cdef enum: CU_MEMHOSTALLOC_PORTABLE = 1
 * 
 * cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTALLOC_DEVICEMAP = 2
};

/* "cuda/bindings/cydriver.pxd":3772
 * cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2
 * 
 * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTALLOC_WRITECOMBINED = 4
};

/* "cuda/bindings/cydriver.pxd":3774
 * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4
 * 
 * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTREGISTER_PORTABLE = 1
};

/* "cuda/bindings/cydriver.pxd":3776
 * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1
 * 
 * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTREGISTER_DEVICEMAP = 2
};

/* "cuda/bindings/cydriver.pxd":3778
 * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2
 * 
 * cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTREGISTER_IOMEMORY = 4
};

/* "cuda/bindings/cydriver.pxd":3780
 * cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4
 * 
 * cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEMHOSTREGISTER_READ_ONLY = 8
};

/* "cuda/bindings/cydriver.pxd":3782
 * cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8
 * 
 * cdef enum: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TENSOR_MAP_NUM_QWORDS = 16
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1
};

/* "cuda/bindings/cydriver.pxd":3784
 * cdef enum: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1
 * 
 * cdef enum: CU_TENSOR_MAP_NUM_QWORDS = 16             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_EXTERNAL_MEMORY_DEDICATED = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TENSOR_MAP_NUM_QWORDS = 16
};

/* "cuda/bindings/cydriver.pxd":3786
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_EXTERNAL_MEMORY_DEDICATED = 1
};

/* "cuda/bindings/cydriver.pxd":3788
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNC = 1
};

/* "cuda/bindings/cydriver.pxd":3790
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC = 2
};

/* "cuda/bindings/cydriver.pxd":3792
 * cdef enum: CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC = 2
 * 
 * cdef enum: CUDA_NVSCISYNC_ATTR_SIGNAL = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_NVSCISYNC_ATTR_WAIT = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_NVSCISYNC_ATTR_SIGNAL = 1
};

/* "cuda/bindings/cydriver.pxd":3794
 * cdef enum: CUDA_NVSCISYNC_ATTR_SIGNAL = 1
 * 
 * cdef enum: CUDA_NVSCISYNC_ATTR_WAIT = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_MEM_CREATE_USAGE_TILE_POOL = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_NVSCISYNC_ATTR_WAIT = 2
};

/* "cuda/bindings/cydriver.pxd":3796
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEM_CREATE_USAGE_TILE_POOL = 1
};

/* "cuda/bindings/cydriver.pxd":3798
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEM_CREATE_USAGE_HW_DECOMPRESS = 2
};

/* "cuda/bindings/cydriver.pxd":3800
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_MEM_POOL_CREATE_USAGE_HW_DECOMPRESS = 2
};

/* "cuda/bindings/cydriver.pxd":3802
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC = 1
};

/* "cuda/bindings/cydriver.pxd":3804
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC = 2
};

/* "cuda/bindings/cydriver.pxd":3806
 * cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC = 2
 * 
 * cdef enum: CUDA_ARRAY3D_LAYERED = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_2DARRAY = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_LAYERED = 1
};

/* "cuda/bindings/cydriver.pxd":3808
 * cdef enum: CUDA_ARRAY3D_LAYERED = 1
 * 
 * cdef enum: CUDA_ARRAY3D_2DARRAY = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_2DARRAY = 1
};

/* "cuda/bindings/cydriver.pxd":3810
 * cdef enum: CUDA_ARRAY3D_2DARRAY = 1
 * 
 * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_SURFACE_LDST = 2
};

/* "cuda/bindings/cydriver.pxd":3812
 * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2
 * 
 * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_CUBEMAP = 4
};

/* "cuda/bindings/cydriver.pxd":3814
 * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4
 * 
 * cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_TEXTURE_GATHER = 8
};

/* "cuda/bindings/cydriver.pxd":3816
 * cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8
 * 
 * cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_DEPTH_TEXTURE = 16
};

/* "cuda/bindings/cydriver.pxd":3818
 * cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16
 * 
 * cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_SPARSE = 64
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_COLOR_ATTACHMENT = 32
};

/* "cuda/bindings/cydriver.pxd":3820
 * cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32
 * 
 * cdef enum: CUDA_ARRAY3D_SPARSE = 64             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_SPARSE = 64
};

/* "cuda/bindings/cydriver.pxd":3822
 * cdef enum: CUDA_ARRAY3D_SPARSE = 64
 * 
 * cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_DEFERRED_MAPPING = 0x80
};

/* "cuda/bindings/cydriver.pxd":3824
 * cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128
 * 
 * cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 0x100
};

/* "cuda/bindings/cydriver.pxd":3826
 * cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256
 * 
 * cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSF_READ_AS_INTEGER = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSA_OVERRIDE_FORMAT = 1
};

/* "cuda/bindings/cydriver.pxd":3828
 * cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1
 * 
 * cdef enum: CU_TRSF_READ_AS_INTEGER = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSF_NORMALIZED_COORDINATES = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSF_READ_AS_INTEGER = 1
};

/* "cuda/bindings/cydriver.pxd":3830
 * cdef enum: CU_TRSF_READ_AS_INTEGER = 1
 * 
 * cdef enum: CU_TRSF_NORMALIZED_COORDINATES = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSF_SRGB = 16
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSF_NORMALIZED_COORDINATES = 2
};

/* "cuda/bindings/cydriver.pxd":3832
 * cdef enum: CU_TRSF_NORMALIZED_COORDINATES = 2
 * 
 * cdef enum: CU_TRSF_SRGB = 16             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSF_SRGB = 16
};

/* "cuda/bindings/cydriver.pxd":3834
 * cdef enum: CU_TRSF_SRGB = 16
 * 
 * cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32
};

/* "cuda/bindings/cydriver.pxd":3836
 * cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32
 * 
 * cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_TRSF_SEAMLESS_CUBEMAP = 64
};

/* "cuda/bindings/cydriver.pxd":3838
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM = 1
};

/* "cuda/bindings/cydriver.pxd":3840
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_END_AS_INT = 0
};

/* "cuda/bindings/cydriver.pxd":3842
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_END = 0
};

/* "cuda/bindings/cydriver.pxd":3844
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT = 1
};

/* "cuda/bindings/cydriver.pxd":3846
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_BUFFER_POINTER = 1
};

/* "cuda/bindings/cydriver.pxd":3848
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT = 2
};

/* "cuda/bindings/cydriver.pxd":3850
 * 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
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_LAUNCH_PARAM_BUFFER_SIZE = 2
};

/* "cuda/bindings/cydriver.pxd":3852
 * cdef enum: CU_LAUNCH_PARAM_BUFFER_SIZE = 2
 * 
 * cdef enum: CU_PARAM_TR_DEFAULT = -1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_DEVICE_CPU = -1
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_PARAM_TR_DEFAULT = -1L
};

/* "cuda/bindings/cydriver.pxd":3854
 * cdef enum: CU_PARAM_TR_DEFAULT = -1
 * 
 * cdef enum: CU_DEVICE_CPU = -1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CU_DEVICE_INVALID = -2
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_DEVICE_CPU = -1L
};

/* "cuda/bindings/cydriver.pxd":3856
 * cdef enum: CU_DEVICE_CPU = -1
 * 
 * cdef enum: CU_DEVICE_INVALID = -2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: MAX_PLANES = 3
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CU_DEVICE_INVALID = -2L
};

/* "cuda/bindings/cydriver.pxd":3858
 * cdef enum: CU_DEVICE_INVALID = -2
 * 
 * cdef enum: MAX_PLANES = 3             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_MAX_PLANES = 3
};

/* "cuda/bindings/cydriver.pxd":3860
 * cdef enum: MAX_PLANES = 3
 * 
 * cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295             # <<<<<<<<<<<<<<
*/
enum  {
  __pyx_e_4cuda_8bindings_8cydriver_CUDA_EGL_INFINITE_TIMEOUT = 0xFFFFFFFF
};

/* "cuda/bindings/cydriver.pxd":2562
 *     CU_EGL_FRAME_TYPE_PITCH = 1
 * 
 * ctypedef CUeglFrameType_enum CUeglFrameType             # <<<<<<<<<<<<<<
 * 
 * cdef enum CUeglResourceLocationFlags_enum:
*/
typedef enum __pyx_t_4cuda_8bindings_8cydriver_CUeglFrameType_enum __pyx_t_4cuda_8bindings_8cydriver_CUeglFrameType;

/* "cuda/bindings/cydriver.pxd":2568
 *     CU_EGL_RESOURCE_LOCATION_VIDMEM = 1
 * 
 * ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags             # <<<<<<<<<<<<<<
 * 
 * cdef enum CUeglColorFormat_enum:
*/
typedef enum __pyx_t_4cuda_8bindings_8cydriver_CUeglResourceLocationFlags_enum __pyx_t_4cuda_8bindings_8cydriver_CUeglResourceLocationFlags;

/* "cuda/bindings/cydriver.pxd":2690
 *     CU_EGL_COLOR_FORMAT_MAX = 117
 * 
 * ctypedef CUeglColorFormat_enum CUeglColorFormat             # <<<<<<<<<<<<<<
 * 
 * cdef union anon_union15:
*/
typedef enum __pyx_t_4cuda_8bindings_8cydriver_CUeglColorFormat_enum __pyx_t_4cuda_8bindings_8cydriver_CUeglColorFormat;

/* "cuda/bindings/cydriver.pxd":2692
 * ctypedef CUeglColorFormat_enum CUeglColorFormat
 * 
 * cdef union anon_union15:             # <<<<<<<<<<<<<<
 *     CUarray pArray[3]
 *     void* pPitch[3]
*/
union __pyx_t_4cuda_8bindings_8cydriver_anon_union15 {
  CUarray pArray[3];
  void *pPitch[3];
};

/* "cuda/bindings/cydriver.pxd":2696
 *     void* pPitch[3]
 * 
 * cdef struct CUeglFrame_st:             # <<<<<<<<<<<<<<
 *     anon_union15 frame
 *     unsigned int width
*/
struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st {
  union __pyx_t_4cuda_8bindings_8cydriver_anon_union15 frame;
  unsigned int width;
  unsigned int height;
  unsigned int depth;
  unsigned int pitch;
  unsigned int planeCount;
  unsigned int numChannels;
  __pyx_t_4cuda_8bindings_8cydriver_CUeglFrameType frameType;
  __pyx_t_4cuda_8bindings_8cydriver_CUeglColorFormat eglColorFormat;
  CUarray_format cuFormat;
};

/* "cuda/bindings/cydriver.pxd":2708
 *     CUarray_format cuFormat
 * 
 * ctypedef CUeglFrame_st CUeglFrame_v1             # <<<<<<<<<<<<<<
 * 
 * ctypedef CUeglFrame_v1 CUeglFrame
*/
typedef struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_v1;

/* "cuda/bindings/cydriver.pxd":2710
 * ctypedef CUeglFrame_st CUeglFrame_v1
 * 
 * ctypedef CUeglFrame_v1 CUeglFrame             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_v1 __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame;

/* "cuda/bindings/cydriver.pxd":2715
 *     cdef struct CUeglStreamConnection_st:
 *         pass
 * ctypedef CUeglStreamConnection_st* CUeglStreamConnection             # <<<<<<<<<<<<<<
 * 
 * cdef enum CUGLDeviceList_enum:
*/
typedef struct CUeglStreamConnection_st *__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection;

/* "cuda/bindings/cydriver.pxd":2722
 *     CU_GL_DEVICE_LIST_NEXT_FRAME = 3
 * 
 * ctypedef CUGLDeviceList_enum CUGLDeviceList             # <<<<<<<<<<<<<<
 * 
 * cdef enum CUGLmap_flags_enum:
*/
typedef enum __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList_enum __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList;

/* "cuda/bindings/cydriver.pxd":2729
 *     CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2
 * 
 * ctypedef CUGLmap_flags_enum CUGLmap_flags             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned int GLenum
*/
typedef enum __pyx_t_4cuda_8bindings_8cydriver_CUGLmap_flags_enum __pyx_t_4cuda_8bindings_8cydriver_CUGLmap_flags;

/* "cuda/bindings/cydriver.pxd":2738
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLImageKHR             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef void *__pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR;

/* "cuda/bindings/cydriver.pxd":2743
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLStreamKHR             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned int EGLint
*/
typedef void *__pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR;

/* "cuda/bindings/cydriver.pxd":2750
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLSyncKHR             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpDevice
*/
typedef void *__pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR;

/* "cuda/bindings/_bindings/cydriver.pyx":495
 * 
 * # 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
 * 
*/
typedef CUresult (*__pyx_t_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2_T)(char const *, void **, int, cuuint64_t, CUdriverProcAddressQueryResult *);
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto (used by PyObjectLookupSpecial) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStrNoError.proto (used by PyObjectLookupSpecial) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* PyObjectLookupSpecial.proto */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* GetBuiltinName.proto (used by GetModuleGlobalName) */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectVectorCallKwBuilder.proto */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* IncludeStringH.proto (used by decode_c_string) */
#include <string.h>

/* decode_c_string_utf16.proto (used by decode_c_string) */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* PyRuntimeError_Check.proto */
#define __Pyx_PyExc_RuntimeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_RuntimeError)

/* RaiseException.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* ErrOccurredWithGIL.proto */
static CYTHON_INLINE int __Pyx_ErrOccurredWithGIL(void);

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* DictGetItem.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* FunctionExport.proto */
static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig);

/* GetApiDict.proto */
static PyObject *__Pyx_ApiExport_GetApiDict(void);

/* HasAttr.proto (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* ImportImpl.export */
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level);

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto (used by FetchCommonType) */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* CallTypeTraverse.proto (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* GCCDiagnostics.proto (used by CIntToPy) */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."


/* Module declarations from "libc.stdint" */

/* Module declarations from "cuda.bindings.cydriver" */

/* Module declarations from "cuda.bindings._lib.dlfcn" */

/* Module declarations from "cuda.bindings._bindings.loader" */

/* Module declarations from "cuda.bindings._bindings.cydriver" */
static PyObject *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock = 0;
static int __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPythonInit;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface;
static void *__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface;
static __pyx_t_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2_T __pyx_v_4cuda_8bindings_9_bindings_8cydriver__F_cuGetProcAddress_v2;
static PyObject *__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs = 0;
static int __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPythonInit(void); /*proto*/
static CYTHON_INLINE int __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(void); /*proto*/
static PyObject *__pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(int __pyx_skip_dispatch); /*proto*/
static PyObject *__pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointer(PyObject *, int __pyx_skip_dispatch); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "cuda.bindings._bindings.cydriver"
extern int __pyx_module_is_main_cuda__bindings___bindings__cydriver;
int __pyx_module_is_main_cuda__bindings___bindings__cydriver = 0;

/* Implementation of "cuda.bindings._bindings.cydriver" */
/* #### Code section: global_var ### */
/* #### Code section: string_decls ### */
static const char __pyx_k_cuInit[] = "cuInit";
static const char __pyx_k_cuLaunch[] = "cuLaunch";
static const char __pyx_k_cuMemMap[] = "cuMemMap";
static const char __pyx_k_cuMemcpy[] = "cuMemcpy";
static const char __pyx_k_cuMemFree[] = "cuMemFree";
static const char __pyx_k_cuCtxGetId[] = "cuCtxGetId";
static const char __pyx_k_cuFuncLoad[] = "cuFuncLoad";
static const char __pyx_k_cuMemAlloc[] = "cuMemAlloc";
static const char __pyx_k_cuMemUnmap[] = "cuMemUnmap";
static const char __pyx_k_cuMemcpy2D[] = "cuMemcpy2D";
static const char __pyx_k_cuMemcpy3D[] = "cuMemcpy3D";
static const char __pyx_k_cuMemsetD8[] = "cuMemsetD8";
static const char __pyx_k_cuCtxAttach[] = "cuCtxAttach";
static const char __pyx_k_cuCtxCreate[] = "cuCtxCreate";
static const char __pyx_k_cuCtxDetach[] = "cuCtxDetach";
static const char __pyx_k_cuDeviceGet[] = "cuDeviceGet";
static const char __pyx_k_cuMemAdvise[] = "cuMemAdvise";
static const char __pyx_k_cuMemCreate[] = "cuMemCreate";
static const char __pyx_k_cuMemsetD16[] = "cuMemsetD16";
static const char __pyx_k_cuMemsetD32[] = "cuMemsetD32";
static const char __pyx_k_cuParamSetf[] = "cuParamSetf";
static const char __pyx_k_cuParamSeti[] = "cuParamSeti";
static const char __pyx_k_cuParamSetv[] = "cuParamSetv";
static const char __pyx_k_cuCtxDestroy[] = "cuCtxDestroy";
static const char __pyx_k_cuEventQuery[] = "cuEventQuery";
static const char __pyx_k_cuGraphClone[] = "cuGraphClone";
static const char __pyx_k_cuGraphGetId[] = "cuGraphGetId";
static const char __pyx_k_cuLaunchGrid[] = "cuLaunchGrid";
static const char __pyx_k_cuLinkCreate[] = "cuLinkCreate";
static const char __pyx_k_cuMemFree_v2[] = "cuMemFree_v2";
static const char __pyx_k_cuMemGetInfo[] = "cuMemGetInfo";
static const char __pyx_k_cuMemRelease[] = "cuMemRelease";
static const char __pyx_k_cuMemcpyAtoA[] = "cuMemcpyAtoA";
static const char __pyx_k_cuMemcpyAtoD[] = "cuMemcpyAtoD";
static const char __pyx_k_cuMemcpyAtoH[] = "cuMemcpyAtoH";
static const char __pyx_k_cuMemcpyDtoA[] = "cuMemcpyDtoA";
static const char __pyx_k_cuMemcpyDtoD[] = "cuMemcpyDtoD";
static const char __pyx_k_cuMemcpyDtoH[] = "cuMemcpyDtoH";
static const char __pyx_k_cuMemcpyHtoA[] = "cuMemcpyHtoA";
static const char __pyx_k_cuMemcpyHtoD[] = "cuMemcpyHtoD";
static const char __pyx_k_cuMemcpyPeer[] = "cuMemcpyPeer";
static const char __pyx_k_cuMemsetD2D8[] = "cuMemsetD2D8";
static const char __pyx_k_cuModuleLoad[] = "cuModuleLoad";
static const char __pyx_k_cuArrayCreate[] = "cuArrayCreate";
static const char __pyx_k_cuCtxGetFlags[] = "cuCtxGetFlags";
static const char __pyx_k_cuCtxGetLimit[] = "cuCtxGetLimit";
static const char __pyx_k_cuCtxSetFlags[] = "cuCtxSetFlags";
static const char __pyx_k_cuCtxSetLimit[] = "cuCtxSetLimit";
static const char __pyx_k_cuEventCreate[] = "cuEventCreate";
static const char __pyx_k_cuEventRecord[] = "cuEventRecord";
static const char __pyx_k_cuFuncGetName[] = "cuFuncGetName";
static const char __pyx_k_cuGraphCreate[] = "cuGraphCreate";
static const char __pyx_k_cuGraphLaunch[] = "cuGraphLaunch";
static const char __pyx_k_cuGraphUpload[] = "cuGraphUpload";
static const char __pyx_k_cuLinkAddData[] = "cuLinkAddData";
static const char __pyx_k_cuLinkAddFile[] = "cuLinkAddFile";
static const char __pyx_k_cuLinkDestroy[] = "cuLinkDestroy";
static const char __pyx_k_cuLogsCurrent[] = "cuLogsCurrent";
static const char __pyx_k_cuMemAlloc_v2[] = "cuMemAlloc_v2";
static const char __pyx_k_cuMemFreeHost[] = "cuMemFreeHost";
static const char __pyx_k_cuMemcpy2D_v2[] = "cuMemcpy2D_v2";
static const char __pyx_k_cuMemcpy3D_v2[] = "cuMemcpy3D_v2";
static const char __pyx_k_cuMemcpyAsync[] = "cuMemcpyAsync";
static const char __pyx_k_cuMemcpy_ptds[] = "cuMemcpy_ptds";
static const char __pyx_k_cuMemsetD2D16[] = "cuMemsetD2D16";
static const char __pyx_k_cuMemsetD2D32[] = "cuMemsetD2D32";
static const char __pyx_k_cuMemsetD8_v2[] = "cuMemsetD8_v2";
static const char __pyx_k_cuStreamGetId[] = "cuStreamGetId";
static const char __pyx_k_cuStreamQuery[] = "cuStreamQuery";
static const char __pyx_k_cuArrayDestroy[] = "cuArrayDestroy";
static const char __pyx_k_cuCtxCreate_v4[] = "cuCtxCreate_v4";
static const char __pyx_k_cuCtxGetDevice[] = "cuCtxGetDevice";
static const char __pyx_k_cuCtxWaitEvent[] = "cuCtxWaitEvent";
static const char __pyx_k_cuEventDestroy[] = "cuEventDestroy";
static const char __pyx_k_cuFuncIsLoaded[] = "cuFuncIsLoaded";
static const char __pyx_k_cuGLGetDevices[] = "cuGLGetDevices";
static const char __pyx_k_cuGetErrorName[] = "cuGetErrorName";
static const char __pyx_k_cuGraphAddNode[] = "cuGraphAddNode";
static const char __pyx_k_cuGraphDestroy[] = "cuGraphDestroy";
static const char __pyx_k_cuLaunchKernel[] = "cuLaunchKernel";
static const char __pyx_k_cuLinkComplete[] = "cuLinkComplete";
static const char __pyx_k_cuMemAdvise_v2[] = "cuMemAdvise_v2";
static const char __pyx_k_cuMemAllocHost[] = "cuMemAllocHost";
static const char __pyx_k_cuMemFreeAsync[] = "cuMemFreeAsync";
static const char __pyx_k_cuMemGetAccess[] = "cuMemGetAccess";
static const char __pyx_k_cuMemHostAlloc[] = "cuMemHostAlloc";
static const char __pyx_k_cuMemSetAccess[] = "cuMemSetAccess";
static const char __pyx_k_cuMemcpy3DPeer[] = "cuMemcpy3DPeer";
static const char __pyx_k_cuMemsetD16_v2[] = "cuMemsetD16_v2";
static const char __pyx_k_cuMemsetD32_v2[] = "cuMemsetD32_v2";
static const char __pyx_k_cuModuleUnload[] = "cuModuleUnload";
static const char __pyx_k_cuParamSetSize[] = "cuParamSetSize";
static const char __pyx_k_cuProfilerStop[] = "cuProfilerStop";
static const char __pyx_k_cuStreamCreate[] = "cuStreamCreate";
static const char __pyx_k_cuStreamGetCtx[] = "cuStreamGetCtx";
static const char __pyx_k_cuTexRefCreate[] = "cuTexRefCreate";
static const char __pyx_k_cuArray3DCreate[] = "cuArray3DCreate";
static const char __pyx_k_cuArrayGetPlane[] = "cuArrayGetPlane";
static const char __pyx_k_cuCtxDestroy_v2[] = "cuCtxDestroy_v2";
static const char __pyx_k_cuCtxGetCurrent[] = "cuCtxGetCurrent";
static const char __pyx_k_cuCtxPopCurrent[] = "cuCtxPopCurrent";
static const char __pyx_k_cuCtxSetCurrent[] = "cuCtxSetCurrent";
static const char __pyx_k_cuDeviceGetLuid[] = "cuDeviceGetLuid";
static const char __pyx_k_cuDeviceGetName[] = "cuDeviceGetName";
static const char __pyx_k_cuDeviceGetUuid[] = "cuDeviceGetUuid";
static const char __pyx_k_cuFuncGetModule[] = "cuFuncGetModule";
static const char __pyx_k_cuGraphGetEdges[] = "cuGraphGetEdges";
static const char __pyx_k_cuGraphGetNodes[] = "cuGraphGetNodes";
static const char __pyx_k_cuGreenCtxGetId[] = "cuGreenCtxGetId";
static const char __pyx_k_cuKernelGetName[] = "cuKernelGetName";
static const char __pyx_k_cuLibraryUnload[] = "cuLibraryUnload";
static const char __pyx_k_cuLinkCreate_v2[] = "cuLinkCreate_v2";
static const char __pyx_k_cuMemAllocAsync[] = "cuMemAllocAsync";
static const char __pyx_k_cuMemAllocPitch[] = "cuMemAllocPitch";
static const char __pyx_k_cuMemGetInfo_v2[] = "cuMemGetInfo_v2";
static const char __pyx_k_cuMemGetMemPool[] = "cuMemGetMemPool";
static const char __pyx_k_cuMemPoolCreate[] = "cuMemPoolCreate";
static const char __pyx_k_cuMemPoolTrimTo[] = "cuMemPoolTrimTo";
static const char __pyx_k_cuMemSetMemPool[] = "cuMemSetMemPool";
static const char __pyx_k_cuMemcpy2DAsync[] = "cuMemcpy2DAsync";
static const char __pyx_k_cuMemcpy3DAsync[] = "cuMemcpy3DAsync";
static const char __pyx_k_cuMemcpyAtoA_v2[] = "cuMemcpyAtoA_v2";
static const char __pyx_k_cuMemcpyAtoD_v2[] = "cuMemcpyAtoD_v2";
static const char __pyx_k_cuMemcpyAtoH_v2[] = "cuMemcpyAtoH_v2";
static const char __pyx_k_cuMemcpyDtoA_v2[] = "cuMemcpyDtoA_v2";
static const char __pyx_k_cuMemcpyDtoD_v2[] = "cuMemcpyDtoD_v2";
static const char __pyx_k_cuMemcpyDtoH_v2[] = "cuMemcpyDtoH_v2";
static const char __pyx_k_cuMemcpyHtoA_v2[] = "cuMemcpyHtoA_v2";
static const char __pyx_k_cuMemcpyHtoD_v2[] = "cuMemcpyHtoD_v2";
static const char __pyx_k_cuMemsetD2D8_v2[] = "cuMemsetD2D8_v2";
static const char __pyx_k_cuMemsetD8Async[] = "cuMemsetD8Async";
static const char __pyx_k_cuProfilerStart[] = "cuProfilerStart";
static const char __pyx_k_cuStreamDestroy[] = "cuStreamDestroy";
static const char __pyx_k_cuTexRefDestroy[] = "cuTexRefDestroy";
static const char __pyx_k_cuArrayCreate_v2[] = "cuArrayCreate_v2";
static const char __pyx_k_cuCtxPushCurrent[] = "cuCtxPushCurrent";
static const char __pyx_k_cuCtxRecordEvent[] = "cuCtxRecordEvent";
static const char __pyx_k_cuCtxSynchronize[] = "cuCtxSynchronize";
static const char __pyx_k_cuDeviceGetCount[] = "cuDeviceGetCount";
static const char __pyx_k_cuDeviceTotalMem[] = "cuDeviceTotalMem";
static const char __pyx_k_cuGetErrorString[] = "cuGetErrorString";
static const char __pyx_k_cuGetExportTable[] = "cuGetExportTable";
static const char __pyx_k_cuGetProcAddress[] = "cuGetProcAddress";
static const char __pyx_k_cuGraphExecGetId[] = "cuGraphExecGetId";
static const char __pyx_k_cuGreenCtxCreate[] = "cuGreenCtxCreate";
static const char __pyx_k_cuLaunchHostFunc[] = "cuLaunchHostFunc";
static const char __pyx_k_cuLaunchKernelEx[] = "cuLaunchKernelEx";
static const char __pyx_k_cuLinkAddData_v2[] = "cuLinkAddData_v2";
static const char __pyx_k_cuLinkAddFile_v2[] = "cuLinkAddFile_v2";
static const char __pyx_k_cuLogsDumpToFile[] = "cuLogsDumpToFile";
static const char __pyx_k_cuMemAddressFree[] = "cuMemAddressFree";
static const char __pyx_k_cuMemPoolDestroy[] = "cuMemPoolDestroy";
static const char __pyx_k_cuMemsetD16Async[] = "cuMemsetD16Async";
static const char __pyx_k_cuMemsetD2D16_v2[] = "cuMemsetD2D16_v2";
static const char __pyx_k_cuMemsetD2D32_v2[] = "cuMemsetD2D32_v2";
static const char __pyx_k_cuMemsetD32Async[] = "cuMemsetD32Async";
static const char __pyx_k_cuModuleLoadData[] = "cuModuleLoadData";
static const char __pyx_k_cuParamSetTexRef[] = "cuParamSetTexRef";
static const char __pyx_k_cuStreamGetFlags[] = "cuStreamGetFlags";
static const char __pyx_k_cuTexRefGetArray[] = "cuTexRefGetArray";
static const char __pyx_k_cuTexRefGetFlags[] = "cuTexRefGetFlags";
static const char __pyx_k_cuTexRefSetArray[] = "cuTexRefSetArray";
static const char __pyx_k_cuTexRefSetFlags[] = "cuTexRefSetFlags";
static const char __pyx_k_cuVDPAUCtxCreate[] = "cuVDPAUCtxCreate";
static const char __pyx_k_cuVDPAUGetDevice[] = "cuVDPAUGetDevice";
static const char __pyx_k_cuCtxFromGreenCtx[] = "cuCtxFromGreenCtx";
static const char __pyx_k_cuCtxGetDevice_v2[] = "cuCtxGetDevice_v2";
static const char __pyx_k_cuEventDestroy_v2[] = "cuEventDestroy_v2";
static const char __pyx_k_cuGLGetDevices_v2[] = "cuGLGetDevices_v2";
static const char __pyx_k_cuGraphAddNode_v2[] = "cuGraphAddNode_v2";
static const char __pyx_k_cuGraphExecUpdate[] = "cuGraphExecUpdate";
static const char __pyx_k_cuGreenCtxDestroy[] = "cuGreenCtxDestroy";
static const char __pyx_k_cuIpcGetMemHandle[] = "cuIpcGetMemHandle";
static const char __pyx_k_cuLaunchGridAsync[] = "cuLaunchGridAsync";
static const char __pyx_k_cuLibraryLoadData[] = "cuLibraryLoadData";
static const char __pyx_k_cuMemAllocHost_v2[] = "cuMemAllocHost_v2";
static const char __pyx_k_cuMemAllocManaged[] = "cuMemAllocManaged";
static const char __pyx_k_cuMemHostGetFlags[] = "cuMemHostGetFlags";
static const char __pyx_k_cuMemHostRegister[] = "cuMemHostRegister";
static const char __pyx_k_cuMemcpyAtoHAsync[] = "cuMemcpyAtoHAsync";
static const char __pyx_k_cuMemcpyDtoDAsync[] = "cuMemcpyDtoDAsync";
static const char __pyx_k_cuMemcpyDtoHAsync[] = "cuMemcpyDtoHAsync";
static const char __pyx_k_cuMemcpyHtoAAsync[] = "cuMemcpyHtoAAsync";
static const char __pyx_k_cuMemcpyHtoDAsync[] = "cuMemcpyHtoDAsync";
static const char __pyx_k_cuMemcpyPeerAsync[] = "cuMemcpyPeerAsync";
static const char __pyx_k_cuMemcpyPeer_ptds[] = "cuMemcpyPeer_ptds";
static const char __pyx_k_cuMemsetD2D8Async[] = "cuMemsetD2D8Async";
static const char __pyx_k_cuModuleGetGlobal[] = "cuModuleGetGlobal";
static const char __pyx_k_cuModuleGetTexRef[] = "cuModuleGetTexRef";
static const char __pyx_k_cuMulticastCreate[] = "cuMulticastCreate";
static const char __pyx_k_cuMulticastUnbind[] = "cuMulticastUnbind";
static const char __pyx_k_cuStreamGetCtx_v2[] = "cuStreamGetCtx_v2";
static const char __pyx_k_cuStreamGetDevice[] = "cuStreamGetDevice";
static const char __pyx_k_cuStreamWaitEvent[] = "cuStreamWaitEvent";
static const char __pyx_k_cuSurfRefGetArray[] = "cuSurfRefGetArray";
static const char __pyx_k_cuSurfRefSetArray[] = "cuSurfRefSetArray";
static const char __pyx_k_cuTexObjectCreate[] = "cuTexObjectCreate";
static const char __pyx_k_cuTexRefGetFormat[] = "cuTexRefGetFormat";
static const char __pyx_k_cuTexRefSetFormat[] = "cuTexRefSetFormat";
static const char __pyx_k_cuArray3DCreate_v2[] = "cuArray3DCreate_v2";
static const char __pyx_k_cuCtxGetApiVersion[] = "cuCtxGetApiVersion";
static const char __pyx_k_cuCtxPopCurrent_v2[] = "cuCtxPopCurrent_v2";
static const char __pyx_k_cuDeviceGetMemPool[] = "cuDeviceGetMemPool";
static const char __pyx_k_cuDeviceGetUuid_v2[] = "cuDeviceGetUuid_v2";
static const char __pyx_k_cuDeviceSetMemPool[] = "cuDeviceSetMemPool";
static const char __pyx_k_cuDriverGetVersion[] = "cuDriverGetVersion";
static const char __pyx_k_cuEventElapsedTime[] = "cuEventElapsedTime";
static const char __pyx_k_cuEventRecord_ptsz[] = "cuEventRecord_ptsz";
static const char __pyx_k_cuEventSynchronize[] = "cuEventSynchronize";
static const char __pyx_k_cuFuncGetAttribute[] = "cuFuncGetAttribute";
static const char __pyx_k_cuFuncGetParamInfo[] = "cuFuncGetParamInfo";
static const char __pyx_k_cuFuncSetAttribute[] = "cuFuncSetAttribute";
static const char __pyx_k_cuGraphAddHostNode[] = "cuGraphAddHostNode";
static const char __pyx_k_cuGraphDestroyNode[] = "cuGraphDestroyNode";
static const char __pyx_k_cuGraphExecDestroy[] = "cuGraphExecDestroy";
static const char __pyx_k_cuGraphGetEdges_v2[] = "cuGraphGetEdges_v2";
static const char __pyx_k_cuGraphLaunch_ptsz[] = "cuGraphLaunch_ptsz";
static const char __pyx_k_cuGraphNodeGetType[] = "cuGraphNodeGetType";
static const char __pyx_k_cuGraphUpload_ptsz[] = "cuGraphUpload_ptsz";
static const char __pyx_k_cuIpcOpenMemHandle[] = "cuIpcOpenMemHandle";
static const char __pyx_k_cuKernelGetLibrary[] = "cuKernelGetLibrary";
static const char __pyx_k_cuLibraryGetGlobal[] = "cuLibraryGetGlobal";
static const char __pyx_k_cuLibraryGetKernel[] = "cuLibraryGetKernel";
static const char __pyx_k_cuLibraryGetModule[] = "cuLibraryGetModule";
static const char __pyx_k_cuLogsDumpToMemory[] = "cuLogsDumpToMemory";
static const char __pyx_k_cuMemAllocPitch_v2[] = "cuMemAllocPitch_v2";
static const char __pyx_k_cuMemMapArrayAsync[] = "cuMemMapArrayAsync";
static const char __pyx_k_cuMemPoolGetAccess[] = "cuMemPoolGetAccess";
static const char __pyx_k_cuMemPoolSetAccess[] = "cuMemPoolSetAccess";
static const char __pyx_k_cuMemPrefetchAsync[] = "cuMemPrefetchAsync";
static const char __pyx_k_cuMemcpy2DAsync_v2[] = "cuMemcpy2DAsync_v2";
static const char __pyx_k_cuMemcpy2D_v2_ptds[] = "cuMemcpy2D_v2_ptds";
static const char __pyx_k_cuMemcpy3DAsync_v2[] = "cuMemcpy3DAsync_v2";
static const char __pyx_k_cuMemcpy3D_v2_ptds[] = "cuMemcpy3D_v2_ptds";
static const char __pyx_k_cuMemcpyAsync_ptsz[] = "cuMemcpyAsync_ptsz";
static const char __pyx_k_cuMemcpyBatchAsync[] = "cuMemcpyBatchAsync";
static const char __pyx_k_cuMemsetD2D16Async[] = "cuMemsetD2D16Async";
static const char __pyx_k_cuMemsetD2D32Async[] = "cuMemsetD2D32Async";
static const char __pyx_k_cuMemsetD8_v2_ptds[] = "cuMemsetD8_v2_ptds";
static const char __pyx_k_cuModuleGetSurfRef[] = "cuModuleGetSurfRef";
static const char __pyx_k_cuModuleLoadDataEx[] = "cuModuleLoadDataEx";
static const char __pyx_k_cuMulticastBindMem[] = "cuMulticastBindMem";
static const char __pyx_k_cuStreamBatchMemOp[] = "cuStreamBatchMemOp";
static const char __pyx_k_cuStreamDestroy_v2[] = "cuStreamDestroy_v2";
static const char __pyx_k_cuStreamEndCapture[] = "cuStreamEndCapture";
static const char __pyx_k_cuStreamGetId_ptsz[] = "cuStreamGetId_ptsz";
static const char __pyx_k_cuStreamQuery_ptsz[] = "cuStreamQuery_ptsz";
static const char __pyx_k_cuSurfObjectCreate[] = "cuSurfObjectCreate";
static const char __pyx_k_cuTexObjectDestroy[] = "cuTexObjectDestroy";
static const char __pyx_k_cuTexRefGetAddress[] = "cuTexRefGetAddress";
static const char __pyx_k_cuTexRefSetAddress[] = "cuTexRefSetAddress";
static const char __pyx_k_cuUserObjectCreate[] = "cuUserObjectCreate";
static const char __pyx_k_cuUserObjectRetain[] = "cuUserObjectRetain";
static const char __pyx_k_cuCtxGetCacheConfig[] = "cuCtxGetCacheConfig";
static const char __pyx_k_cuCtxGetDevResource[] = "cuCtxGetDevResource";
static const char __pyx_k_cuCtxPushCurrent_v2[] = "cuCtxPushCurrent_v2";
static const char __pyx_k_cuCtxSetCacheConfig[] = "cuCtxSetCacheConfig";
static const char __pyx_k_cuCtxSynchronize_v2[] = "cuCtxSynchronize_v2";
static const char __pyx_k_cuDeviceGetPCIBusId[] = "cuDeviceGetPCIBusId";
static const char __pyx_k_cuDeviceTotalMem_v2[] = "cuDeviceTotalMem_v2";
static const char __pyx_k_cuFuncSetBlockShape[] = "cuFuncSetBlockShape";
static const char __pyx_k_cuFuncSetSharedSize[] = "cuFuncSetSharedSize";
static const char __pyx_k_cuGetProcAddress_v2[] = "cuGetProcAddress_v2";
static const char __pyx_k_cuGraphAddEmptyNode[] = "cuGraphAddEmptyNode";
static const char __pyx_k_cuGraphExecGetFlags[] = "cuGraphExecGetFlags";
static const char __pyx_k_cuGraphGetRootNodes[] = "cuGraphGetRootNodes";
static const char __pyx_k_cuGreenCtxWaitEvent[] = "cuGreenCtxWaitEvent";
static const char __pyx_k_cuIpcCloseMemHandle[] = "cuIpcCloseMemHandle";
static const char __pyx_k_cuIpcGetEventHandle[] = "cuIpcGetEventHandle";
static const char __pyx_k_cuKernelGetFunction[] = "cuKernelGetFunction";
static const char __pyx_k_cuLaunchKernel_ptsz[] = "cuLaunchKernel_ptsz";
static const char __pyx_k_cuLibraryGetManaged[] = "cuLibraryGetManaged";
static const char __pyx_k_cuMemAddressReserve[] = "cuMemAddressReserve";
static const char __pyx_k_cuMemFreeAsync_ptsz[] = "cuMemFreeAsync_ptsz";
static const char __pyx_k_cuMemHostUnregister[] = "cuMemHostUnregister";
static const char __pyx_k_cuMemcpy2DUnaligned[] = "cuMemcpy2DUnaligned";
static const char __pyx_k_cuMemcpy3DPeerAsync[] = "cuMemcpy3DPeerAsync";
static const char __pyx_k_cuMemcpy3DPeer_ptds[] = "cuMemcpy3DPeer_ptds";
static const char __pyx_k_cuMemsetD16_v2_ptds[] = "cuMemsetD16_v2_ptds";
static const char __pyx_k_cuMemsetD32_v2_ptds[] = "cuMemsetD32_v2_ptds";
static const char __pyx_k_cuModuleGetFunction[] = "cuModuleGetFunction";
static const char __pyx_k_cuMulticastBindAddr[] = "cuMulticastBindAddr";
static const char __pyx_k_cuStreamAddCallback[] = "cuStreamAddCallback";
static const char __pyx_k_cuStreamGetCtx_ptsz[] = "cuStreamGetCtx_ptsz";
static const char __pyx_k_cuStreamGetGreenCtx[] = "cuStreamGetGreenCtx";
static const char __pyx_k_cuStreamGetPriority[] = "cuStreamGetPriority";
static const char __pyx_k_cuStreamIsCapturing[] = "cuStreamIsCapturing";
static const char __pyx_k_cuStreamSynchronize[] = "cuStreamSynchronize";
static const char __pyx_k_cuStreamWaitValue32[] = "cuStreamWaitValue32";
static const char __pyx_k_cuStreamWaitValue64[] = "cuStreamWaitValue64";
static const char __pyx_k_cuSurfObjectDestroy[] = "cuSurfObjectDestroy";
static const char __pyx_k_cuUserObjectRelease[] = "cuUserObjectRelease";
static const char __pyx_k_cuVDPAUCtxCreate_v2[] = "cuVDPAUCtxCreate_v2";
static const char __pyx_k_cuArrayGetDescriptor[] = "cuArrayGetDescriptor";
static const char __pyx_k_cuCtxGetExecAffinity[] = "cuCtxGetExecAffinity";
static const char __pyx_k_cuDevSmResourceSplit[] = "cuDevSmResourceSplit";
static const char __pyx_k_cuDeviceGetAttribute[] = "cuDeviceGetAttribute";
static const char __pyx_k_cuDeviceGraphMemTrim[] = "cuDeviceGraphMemTrim";
static const char __pyx_k_cuFuncSetCacheConfig[] = "cuFuncSetCacheConfig";
static const char __pyx_k_cuGraphAddKernelNode[] = "cuGraphAddKernelNode";
static const char __pyx_k_cuGraphAddMemcpyNode[] = "cuGraphAddMemcpyNode";
static const char __pyx_k_cuGraphAddMemsetNode[] = "cuGraphAddMemsetNode";
static const char __pyx_k_cuGraphDebugDotPrint[] = "cuGraphDebugDotPrint";
static const char __pyx_k_cuGraphExecUpdate_v2[] = "cuGraphExecUpdate_v2";
static const char __pyx_k_cuGraphNodeSetParams[] = "cuGraphNodeSetParams";
static const char __pyx_k_cuIpcOpenEventHandle[] = "cuIpcOpenEventHandle";
static const char __pyx_k_cuKernelGetAttribute[] = "cuKernelGetAttribute";
static const char __pyx_k_cuKernelGetParamInfo[] = "cuKernelGetParamInfo";
static const char __pyx_k_cuKernelSetAttribute[] = "cuKernelSetAttribute";
static const char __pyx_k_cuMemAllocAsync_ptsz[] = "cuMemAllocAsync_ptsz";
static const char __pyx_k_cuMemGetAddressRange[] = "cuMemGetAddressRange";
static const char __pyx_k_cuMemHostRegister_v2[] = "cuMemHostRegister_v2";
static const char __pyx_k_cuMemcpy3DBatchAsync[] = "cuMemcpy3DBatchAsync";
static const char __pyx_k_cuMemcpyAtoA_v2_ptds[] = "cuMemcpyAtoA_v2_ptds";
static const char __pyx_k_cuMemcpyAtoD_v2_ptds[] = "cuMemcpyAtoD_v2_ptds";
static const char __pyx_k_cuMemcpyAtoHAsync_v2[] = "cuMemcpyAtoHAsync_v2";
static const char __pyx_k_cuMemcpyAtoH_v2_ptds[] = "cuMemcpyAtoH_v2_ptds";
static const char __pyx_k_cuMemcpyDtoA_v2_ptds[] = "cuMemcpyDtoA_v2_ptds";
static const char __pyx_k_cuMemcpyDtoDAsync_v2[] = "cuMemcpyDtoDAsync_v2";
static const char __pyx_k_cuMemcpyDtoD_v2_ptds[] = "cuMemcpyDtoD_v2_ptds";
static const char __pyx_k_cuMemcpyDtoHAsync_v2[] = "cuMemcpyDtoHAsync_v2";
static const char __pyx_k_cuMemcpyDtoH_v2_ptds[] = "cuMemcpyDtoH_v2_ptds";
static const char __pyx_k_cuMemcpyHtoAAsync_v2[] = "cuMemcpyHtoAAsync_v2";
static const char __pyx_k_cuMemcpyHtoA_v2_ptds[] = "cuMemcpyHtoA_v2_ptds";
static const char __pyx_k_cuMemcpyHtoDAsync_v2[] = "cuMemcpyHtoDAsync_v2";
static const char __pyx_k_cuMemcpyHtoD_v2_ptds[] = "cuMemcpyHtoD_v2_ptds";
static const char __pyx_k_cuMemsetD2D8_v2_ptds[] = "cuMemsetD2D8_v2_ptds";
static const char __pyx_k_cuMemsetD8Async_ptsz[] = "cuMemsetD8Async_ptsz";
static const char __pyx_k_cuModuleGetGlobal_v2[] = "cuModuleGetGlobal_v2";
static const char __pyx_k_cuMulticastAddDevice[] = "cuMulticastAddDevice";
static const char __pyx_k_cuStreamBeginCapture[] = "cuStreamBeginCapture";
static const char __pyx_k_cuStreamGetAttribute[] = "cuStreamGetAttribute";
static const char __pyx_k_cuStreamSetAttribute[] = "cuStreamSetAttribute";
static const char __pyx_k_cuStreamWriteValue32[] = "cuStreamWriteValue32";
static const char __pyx_k_cuStreamWriteValue64[] = "cuStreamWriteValue64";
static const char __pyx_k_cuTexRefSetAddress2D[] = "cuTexRefSetAddress2D";
static const char __pyx_k_cuCtxEnablePeerAccess[] = "cuCtxEnablePeerAccess";
static const char __pyx_k_cuDeviceCanAccessPeer[] = "cuDeviceCanAccessPeer";
static const char __pyx_k_cuDeviceGetByPCIBusId[] = "cuDeviceGetByPCIBusId";
static const char __pyx_k_cuDeviceGetProperties[] = "cuDeviceGetProperties";
static const char __pyx_k_cuEventElapsedTime_v2[] = "cuEventElapsedTime_v2";
static const char __pyx_k_cuGraphAddMemFreeNode[] = "cuGraphAddMemFreeNode";
static const char __pyx_k_cuGraphNodeGetEnabled[] = "cuGraphNodeGetEnabled";
static const char __pyx_k_cuGraphNodeGetLocalId[] = "cuGraphNodeGetLocalId";
static const char __pyx_k_cuGraphNodeGetToolsId[] = "cuGraphNodeGetToolsId";
static const char __pyx_k_cuGraphNodeSetEnabled[] = "cuGraphNodeSetEnabled";
static const char __pyx_k_cuGreenCtxRecordEvent[] = "cuGreenCtxRecordEvent";
static const char __pyx_k_cuIpcOpenMemHandle_v2[] = "cuIpcOpenMemHandle_v2";
static const char __pyx_k_cuLaunchHostFunc_ptsz[] = "cuLaunchHostFunc_ptsz";
static const char __pyx_k_cuLaunchKernelEx_ptsz[] = "cuLaunchKernelEx_ptsz";
static const char __pyx_k_cuLibraryLoadFromFile[] = "cuLibraryLoadFromFile";
static const char __pyx_k_cuMemPoolGetAttribute[] = "cuMemPoolGetAttribute";
static const char __pyx_k_cuMemPoolSetAttribute[] = "cuMemPoolSetAttribute";
static const char __pyx_k_cuMemPrefetchAsync_v2[] = "cuMemPrefetchAsync_v2";
static const char __pyx_k_cuMemcpyBatchAsync_v2[] = "cuMemcpyBatchAsync_v2";
static const char __pyx_k_cuMemsetD16Async_ptsz[] = "cuMemsetD16Async_ptsz";
static const char __pyx_k_cuMemsetD2D16_v2_ptds[] = "cuMemsetD2D16_v2_ptds";
static const char __pyx_k_cuMemsetD2D32_v2_ptds[] = "cuMemsetD2D32_v2_ptds";
static const char __pyx_k_cuMemsetD32Async_ptsz[] = "cuMemsetD32Async_ptsz";
static const char __pyx_k_cuModuleLoadFatBinary[] = "cuModuleLoadFatBinary";
static const char __pyx_k_cuMulticastBindMem_v2[] = "cuMulticastBindMem_v2";
static const char __pyx_k_cuPointerGetAttribute[] = "cuPointerGetAttribute";
static const char __pyx_k_cuPointerSetAttribute[] = "cuPointerSetAttribute";
static const char __pyx_k_cuStreamBatchMemOp_v2[] = "cuStreamBatchMemOp_v2";
static const char __pyx_k_cuStreamGetFlags_ptsz[] = "cuStreamGetFlags_ptsz";
static const char __pyx_k_cuTexRefGetAddress_v2[] = "cuTexRefGetAddress_v2";
static const char __pyx_k_cuTexRefGetFilterMode[] = "cuTexRefGetFilterMode";
static const char __pyx_k_cuTexRefSetAddress_v2[] = "cuTexRefSetAddress_v2";
static const char __pyx_k_cuTexRefSetFilterMode[] = "cuTexRefSetFilterMode";
static const char __pyx_k_cuArray3DGetDescriptor[] = "cuArray3DGetDescriptor";
static const char __pyx_k_cuCoredumpGetAttribute[] = "cuCoredumpGetAttribute";
static const char __pyx_k_cuCoredumpSetAttribute[] = "cuCoredumpSetAttribute";
static const char __pyx_k_cuCtxDisablePeerAccess[] = "cuCtxDisablePeerAccess";
static const char __pyx_k_cuDeviceGetDevResource[] = "cuDeviceGetDevResource";
static const char __pyx_k_cuEventRecordWithFlags[] = "cuEventRecordWithFlags";
static const char __pyx_k_cuGraphAddDependencies[] = "cuGraphAddDependencies";
static const char __pyx_k_cuGraphAddMemAllocNode[] = "cuGraphAddMemAllocNode";
static const char __pyx_k_cuGraphNodeFindInClone[] = "cuGraphNodeFindInClone";
static const char __pyx_k_cuGraphicsMapResources[] = "cuGraphicsMapResources";
static const char __pyx_k_cuGreenCtxStreamCreate[] = "cuGreenCtxStreamCreate";
static const char __pyx_k_cuImportExternalMemory[] = "cuImportExternalMemory";
static const char __pyx_k_cuKernelSetCacheConfig[] = "cuKernelSetCacheConfig";
static const char __pyx_k_cuLogsRegisterCallback[] = "cuLogsRegisterCallback";
static const char __pyx_k_cuMemDiscardBatchAsync[] = "cuMemDiscardBatchAsync";
static const char __pyx_k_cuMemGetDefaultMemPool[] = "cuMemGetDefaultMemPool";
static const char __pyx_k_cuMemPoolExportPointer[] = "cuMemPoolExportPointer";
static const char __pyx_k_cuMemPoolImportPointer[] = "cuMemPoolImportPointer";
static const char __pyx_k_cuMemRangeGetAttribute[] = "cuMemRangeGetAttribute";
static const char __pyx_k_cuMemcpy2DUnaligned_v2[] = "cuMemcpy2DUnaligned_v2";
static const char __pyx_k_cuMemcpyPeerAsync_ptsz[] = "cuMemcpyPeerAsync_ptsz";
static const char __pyx_k_cuMemsetD2D8Async_ptsz[] = "cuMemsetD2D8Async_ptsz";
static const char __pyx_k_cuMipmappedArrayCreate[] = "cuMipmappedArrayCreate";
static const char __pyx_k_cuModuleGetLoadingMode[] = "cuModuleGetLoadingMode";
static const char __pyx_k_cuMulticastBindAddr_v2[] = "cuMulticastBindAddr_v2";
static const char __pyx_k_cuPointerGetAttributes[] = "cuPointerGetAttributes";
static const char __pyx_k_cuStreamAttachMemAsync[] = "cuStreamAttachMemAsync";
static const char __pyx_k_cuStreamCopyAttributes[] = "cuStreamCopyAttributes";
static const char __pyx_k_cuStreamGetCaptureInfo[] = "cuStreamGetCaptureInfo";
static const char __pyx_k_cuStreamGetCtx_v2_ptsz[] = "cuStreamGetCtx_v2_ptsz";
static const char __pyx_k_cuStreamGetDevResource[] = "cuStreamGetDevResource";
static const char __pyx_k_cuStreamGetDevice_ptsz[] = "cuStreamGetDevice_ptsz";
static const char __pyx_k_cuStreamWaitEvent_ptsz[] = "cuStreamWaitEvent_ptsz";
static const char __pyx_k_cuStreamWaitValue32_v2[] = "cuStreamWaitValue32_v2";
static const char __pyx_k_cuStreamWaitValue64_v2[] = "cuStreamWaitValue64_v2";
static const char __pyx_k_cuTensorMapEncodeTiled[] = "cuTensorMapEncodeTiled";
static const char __pyx_k_cuTexRefGetAddressMode[] = "cuTexRefGetAddressMode";
static const char __pyx_k_cuTexRefGetBorderColor[] = "cuTexRefGetBorderColor";
static const char __pyx_k_cuTexRefSetAddressMode[] = "cuTexRefSetAddressMode";
static const char __pyx_k_cuTexRefSetBorderColor[] = "cuTexRefSetBorderColor";
static const char __pyx_k_cuArrayGetDescriptor_v2[] = "cuArrayGetDescriptor_v2";
static const char __pyx_k_cuCheckpointProcessLock[] = "cuCheckpointProcessLock";
static const char __pyx_k_cuCtxGetSharedMemConfig[] = "cuCtxGetSharedMemConfig";
static const char __pyx_k_cuCtxSetSharedMemConfig[] = "cuCtxSetSharedMemConfig";
static const char __pyx_k_cuDestroyExternalMemory[] = "cuDestroyExternalMemory";
static const char __pyx_k_cuDeviceGetP2PAttribute[] = "cuDeviceGetP2PAttribute";
static const char __pyx_k_cuDevicePrimaryCtxReset[] = "cuDevicePrimaryCtxReset";
static const char __pyx_k_cuGraphAddEventWaitNode[] = "cuGraphAddEventWaitNode";
static const char __pyx_k_cuGraphAddKernelNode_v2[] = "cuGraphAddKernelNode_v2";
static const char __pyx_k_cuGraphRetainUserObject[] = "cuGraphRetainUserObject";
static const char __pyx_k_cuLibraryGetKernelCount[] = "cuLibraryGetKernelCount";
static const char __pyx_k_cuMemAllocFromPoolAsync[] = "cuMemAllocFromPoolAsync";
static const char __pyx_k_cuMemGetAddressRange_v2[] = "cuMemGetAddressRange_v2";
static const char __pyx_k_cuMemMapArrayAsync_ptsz[] = "cuMemMapArrayAsync_ptsz";
static const char __pyx_k_cuMemPrefetchBatchAsync[] = "cuMemPrefetchBatchAsync";
static const char __pyx_k_cuMemRangeGetAttributes[] = "cuMemRangeGetAttributes";
static const char __pyx_k_cuMemcpy2DAsync_v2_ptsz[] = "cuMemcpy2DAsync_v2_ptsz";
static const char __pyx_k_cuMemcpy3DAsync_v2_ptsz[] = "cuMemcpy3DAsync_v2_ptsz";
static const char __pyx_k_cuMemcpy3DBatchAsync_v2[] = "cuMemcpy3DBatchAsync_v2";
static const char __pyx_k_cuMemsetD2D16Async_ptsz[] = "cuMemsetD2D16Async_ptsz";
static const char __pyx_k_cuMemsetD2D32Async_ptsz[] = "cuMemsetD2D32Async_ptsz";
static const char __pyx_k_cuMipmappedArrayDestroy[] = "cuMipmappedArrayDestroy";
static const char __pyx_k_cuStreamBeginCapture_v2[] = "cuStreamBeginCapture_v2";
static const char __pyx_k_cuStreamEndCapture_ptsz[] = "cuStreamEndCapture_ptsz";
static const char __pyx_k_cuStreamWriteValue32_v2[] = "cuStreamWriteValue32_v2";
static const char __pyx_k_cuStreamWriteValue64_v2[] = "cuStreamWriteValue64_v2";
static const char __pyx_k_cuTensorMapEncodeIm2col[] = "cuTensorMapEncodeIm2col";
static const char __pyx_k_cuTexRefSetAddress2D_v3[] = "cuTexRefSetAddress2D_v3";
static const char __pyx_k_cuDevicePrimaryCtxRetain[] = "cuDevicePrimaryCtxRetain";
static const char __pyx_k_cuEventCreateFromEGLSync[] = "cuEventCreateFromEGLSync";
static const char __pyx_k_cuFuncSetSharedMemConfig[] = "cuFuncSetSharedMemConfig";
static const char __pyx_k_cuGraphAddBatchMemOpNode[] = "cuGraphAddBatchMemOpNode";
static const char __pyx_k_cuGraphAddChildGraphNode[] = "cuGraphAddChildGraphNode";
static const char __pyx_k_cuGraphExecNodeSetParams[] = "cuGraphExecNodeSetParams";
static const char __pyx_k_cuGraphHostNodeGetParams[] = "cuGraphHostNodeGetParams";
static const char __pyx_k_cuGraphHostNodeSetParams[] = "cuGraphHostNodeSetParams";
static const char __pyx_k_cuGraphReleaseUserObject[] = "cuGraphReleaseUserObject";
static const char __pyx_k_cuGraphicsUnmapResources[] = "cuGraphicsUnmapResources";
static const char __pyx_k_cuGreenCtxGetDevResource[] = "cuGreenCtxGetDevResource";
static const char __pyx_k_cuLogsUnregisterCallback[] = "cuLogsUnregisterCallback";
static const char __pyx_k_cuMemcpy3DPeerAsync_ptsz[] = "cuMemcpy3DPeerAsync_ptsz";
static const char __pyx_k_cuMipmappedArrayGetLevel[] = "cuMipmappedArrayGetLevel";
static const char __pyx_k_cuModuleGetFunctionCount[] = "cuModuleGetFunctionCount";
static const char __pyx_k_cuStreamAddCallback_ptsz[] = "cuStreamAddCallback_ptsz";
static const char __pyx_k_cuStreamGetPriority_ptsz[] = "cuStreamGetPriority_ptsz";
static const char __pyx_k_cuStreamIsCapturing_ptsz[] = "cuStreamIsCapturing_ptsz";
static const char __pyx_k_cuStreamSynchronize_ptsz[] = "cuStreamSynchronize_ptsz";
static const char __pyx_k_cuTexRefGetMaxAnisotropy[] = "cuTexRefGetMaxAnisotropy";
static const char __pyx_k_cuTexRefSetMaxAnisotropy[] = "cuTexRefSetMaxAnisotropy";
static const char __pyx_k_cuArray3DGetDescriptor_v2[] = "cuArray3DGetDescriptor_v2";
static const char __pyx_k_cuCheckpointProcessUnlock[] = "cuCheckpointProcessUnlock";
static const char __pyx_k_cuDevResourceGenerateDesc[] = "cuDevResourceGenerateDesc";
static const char __pyx_k_cuDeviceComputeCapability[] = "cuDeviceComputeCapability";
static const char __pyx_k_cuDeviceGetDefaultMemPool[] = "cuDeviceGetDefaultMemPool";
static const char __pyx_k_cuDevicePrimaryCtxRelease[] = "cuDevicePrimaryCtxRelease";
static const char __pyx_k_cuGraphAddDependencies_v2[] = "cuGraphAddDependencies_v2";
static const char __pyx_k_cuGraphAddEventRecordNode[] = "cuGraphAddEventRecordNode";
static const char __pyx_k_cuGraphRemoveDependencies[] = "cuGraphRemoveDependencies";
static const char __pyx_k_cuGraphicsGLRegisterImage[] = "cuGraphicsGLRegisterImage";
static const char __pyx_k_cuImportExternalSemaphore[] = "cuImportExternalSemaphore";
static const char __pyx_k_cuLaunchCooperativeKernel[] = "cuLaunchCooperativeKernel";
static const char __pyx_k_cuLibraryEnumerateKernels[] = "cuLibraryEnumerateKernels";
static const char __pyx_k_cuMemBatchDecompressAsync[] = "cuMemBatchDecompressAsync";
static const char __pyx_k_cuMemHostGetDevicePointer[] = "cuMemHostGetDevicePointer";
static const char __pyx_k_cuMemcpyAtoHAsync_v2_ptsz[] = "cuMemcpyAtoHAsync_v2_ptsz";
static const char __pyx_k_cuMemcpyDtoDAsync_v2_ptsz[] = "cuMemcpyDtoDAsync_v2_ptsz";
static const char __pyx_k_cuMemcpyDtoHAsync_v2_ptsz[] = "cuMemcpyDtoHAsync_v2_ptsz";
static const char __pyx_k_cuMemcpyHtoAAsync_v2_ptsz[] = "cuMemcpyHtoAAsync_v2_ptsz";
static const char __pyx_k_cuMemcpyHtoDAsync_v2_ptsz[] = "cuMemcpyHtoDAsync_v2_ptsz";
static const char __pyx_k_cuMulticastGetGranularity[] = "cuMulticastGetGranularity";
static const char __pyx_k_cuStreamGetAttribute_ptsz[] = "cuStreamGetAttribute_ptsz";
static const char __pyx_k_cuStreamGetCaptureInfo_v3[] = "cuStreamGetCaptureInfo_v3";
static const char __pyx_k_cuStreamSetAttribute_ptsz[] = "cuStreamSetAttribute_ptsz";
static const char __pyx_k_cuTensorMapReplaceAddress[] = "cuTensorMapReplaceAddress";
static const char __pyx_k_cuTexObjectGetTextureDesc[] = "cuTexObjectGetTextureDesc";
static const char __pyx_k_cuTexRefGetMipmappedArray[] = "cuTexRefGetMipmappedArray";
static const char __pyx_k_cuTexRefSetMipmappedArray[] = "cuTexRefSetMipmappedArray";
static const char __pyx_k_cuArrayGetSparseProperties[] = "cuArrayGetSparseProperties";
static const char __pyx_k_cuCheckpointProcessRestore[] = "cuCheckpointProcessRestore";
static const char __pyx_k_cuDestroyExternalSemaphore[] = "cuDestroyExternalSemaphore";
static const char __pyx_k_cuDevicePrimaryCtxGetState[] = "cuDevicePrimaryCtxGetState";
static const char __pyx_k_cuDevicePrimaryCtxReset_v2[] = "cuDevicePrimaryCtxReset_v2";
static const char __pyx_k_cuDevicePrimaryCtxSetFlags[] = "cuDevicePrimaryCtxSetFlags";
static const char __pyx_k_cuEGLStreamConsumerConnect[] = "cuEGLStreamConsumerConnect";
static const char __pyx_k_cuEGLStreamProducerConnect[] = "cuEGLStreamProducerConnect";
static const char __pyx_k_cuFlushGPUDirectRDMAWrites[] = "cuFlushGPUDirectRDMAWrites";
static const char __pyx_k_cuGraphKernelNodeGetParams[] = "cuGraphKernelNodeGetParams";
static const char __pyx_k_cuGraphKernelNodeSetParams[] = "cuGraphKernelNodeSetParams";
static const char __pyx_k_cuGraphMemcpyNodeGetParams[] = "cuGraphMemcpyNodeGetParams";
static const char __pyx_k_cuGraphMemcpyNodeSetParams[] = "cuGraphMemcpyNodeSetParams";
static const char __pyx_k_cuGraphMemsetNodeGetParams[] = "cuGraphMemsetNodeGetParams";
static const char __pyx_k_cuGraphMemsetNodeSetParams[] = "cuGraphMemsetNodeSetParams";
static const char __pyx_k_cuGraphNodeGetDependencies[] = "cuGraphNodeGetDependencies";
static const char __pyx_k_cuGraphicsEGLRegisterImage[] = "cuGraphicsEGLRegisterImage";
static const char __pyx_k_cuGraphicsGLRegisterBuffer[] = "cuGraphicsGLRegisterBuffer";
static const char __pyx_k_cuMemPrefetchAsync_v2_ptsz[] = "cuMemPrefetchAsync_v2_ptsz";
static const char __pyx_k_cuMemcpyBatchAsync_v2_ptsz[] = "cuMemcpyBatchAsync_v2_ptsz";
static const char __pyx_k_cuModuleEnumerateFunctions[] = "cuModuleEnumerateFunctions";
static const char __pyx_k_cuStreamBatchMemOp_v2_ptsz[] = "cuStreamBatchMemOp_v2_ptsz";
static const char __pyx_k_cuStreamCreateWithPriority[] = "cuStreamCreateWithPriority";
static const char __pyx_k_cuTexObjectGetResourceDesc[] = "cuTexObjectGetResourceDesc";
static const char __pyx_k_cuTexRefGetMipmapLevelBias[] = "cuTexRefGetMipmapLevelBias";
static const char __pyx_k_cuTexRefSetMipmapLevelBias[] = "cuTexRefSetMipmapLevelBias";
static const char __pyx_k_cuCheckpointProcessGetState[] = "cuCheckpointProcessGetState";
static const char __pyx_k_cuCtxGetStreamPriorityRange[] = "cuCtxGetStreamPriorityRange";
static const char __pyx_k_cuCtxResetPersistingL2Cache[] = "cuCtxResetPersistingL2Cache";
static const char __pyx_k_cuDevSmResourceSplitByCount[] = "cuDevSmResourceSplitByCount";
static const char __pyx_k_cuEventRecordWithFlags_ptsz[] = "cuEventRecordWithFlags_ptsz";
static const char __pyx_k_cuGraphInstantiateWithFlags[] = "cuGraphInstantiateWithFlags";
static const char __pyx_k_cuGraphMemFreeNodeGetParams[] = "cuGraphMemFreeNodeGetParams";
static const char __pyx_k_cuGraphicsMapResources_ptsz[] = "cuGraphicsMapResources_ptsz";
static const char __pyx_k_cuLibraryGetUnifiedFunction[] = "cuLibraryGetUnifiedFunction";
static const char __pyx_k_cuMemDiscardBatchAsync_ptsz[] = "cuMemDiscardBatchAsync_ptsz";
static const char __pyx_k_cuMemRetainAllocationHandle[] = "cuMemRetainAllocationHandle";
static const char __pyx_k_cuMemcpy2DUnaligned_v2_ptds[] = "cuMemcpy2DUnaligned_v2_ptds";
static const char __pyx_k_cuStreamAttachMemAsync_ptsz[] = "cuStreamAttachMemAsync_ptsz";
static const char __pyx_k_cuStreamBeginCaptureToGraph[] = "cuStreamBeginCaptureToGraph";
static const char __pyx_k_cuStreamCopyAttributes_ptsz[] = "cuStreamCopyAttributes_ptsz";
static const char __pyx_k_cuStreamGetDevResource_ptsz[] = "cuStreamGetDevResource_ptsz";
static const char __pyx_k_cuStreamWaitValue32_v2_ptsz[] = "cuStreamWaitValue32_v2_ptsz";
static const char __pyx_k_cuStreamWaitValue64_v2_ptsz[] = "cuStreamWaitValue64_v2_ptsz";
static const char __pyx_k_cuSurfObjectGetResourceDesc[] = "cuSurfObjectGetResourceDesc";
static const char __pyx_k_cuTensorMapEncodeIm2colWide[] = "cuTensorMapEncodeIm2colWide";
static const char __pyx_k_cuTexRefGetMipmapFilterMode[] = "cuTexRefGetMipmapFilterMode";
static const char __pyx_k_cuTexRefGetMipmapLevelClamp[] = "cuTexRefGetMipmapLevelClamp";
static const char __pyx_k_cuTexRefSetMipmapFilterMode[] = "cuTexRefSetMipmapFilterMode";
static const char __pyx_k_cuTexRefSetMipmapLevelClamp[] = "cuTexRefSetMipmapLevelClamp";
static const char __pyx_k_cuArrayGetMemoryRequirements[] = "cuArrayGetMemoryRequirements";
static const char __pyx_k_cuCoredumpGetAttributeGlobal[] = "cuCoredumpGetAttributeGlobal";
static const char __pyx_k_cuCoredumpSetAttributeGlobal[] = "cuCoredumpSetAttributeGlobal";
static const char __pyx_k_cuDeviceGetGraphMemAttribute[] = "cuDeviceGetGraphMemAttribute";
static const char __pyx_k_cuDevicePrimaryCtxRelease_v2[] = "cuDevicePrimaryCtxRelease_v2";
static const char __pyx_k_cuDeviceSetGraphMemAttribute[] = "cuDeviceSetGraphMemAttribute";
static const char __pyx_k_cuGraphEventWaitNodeGetEvent[] = "cuGraphEventWaitNodeGetEvent";
static const char __pyx_k_cuGraphEventWaitNodeSetEvent[] = "cuGraphEventWaitNodeSetEvent";
static const char __pyx_k_cuGraphExecHostNodeSetParams[] = "cuGraphExecHostNodeSetParams";
static const char __pyx_k_cuGraphInstantiateWithParams[] = "cuGraphInstantiateWithParams";
static const char __pyx_k_cuGraphMemAllocNodeGetParams[] = "cuGraphMemAllocNodeGetParams";
static const char __pyx_k_cuGraphNodeGetDependentNodes[] = "cuGraphNodeGetDependentNodes";
static const char __pyx_k_cuGraphRemoveDependencies_v2[] = "cuGraphRemoveDependencies_v2";
static const char __pyx_k_cuGraphicsUnregisterResource[] = "cuGraphicsUnregisterResource";
static const char __pyx_k_cuMemAllocFromPoolAsync_ptsz[] = "cuMemAllocFromPoolAsync_ptsz";
static const char __pyx_k_cuMemExportToShareableHandle[] = "cuMemExportToShareableHandle";
static const char __pyx_k_cuMemHostGetDevicePointer_v2[] = "cuMemHostGetDevicePointer_v2";
static const char __pyx_k_cuMemPrefetchBatchAsync_ptsz[] = "cuMemPrefetchBatchAsync_ptsz";
static const char __pyx_k_cuMemcpy3DBatchAsync_v2_ptsz[] = "cuMemcpy3DBatchAsync_v2_ptsz";
static const char __pyx_k_cuOccupancyMaxActiveClusters[] = "cuOccupancyMaxActiveClusters";
static const char __pyx_k_cuStreamBeginCapture_v2_ptsz[] = "cuStreamBeginCapture_v2_ptsz";
static const char __pyx_k_cuStreamWriteValue32_v2_ptsz[] = "cuStreamWriteValue32_v2_ptsz";
static const char __pyx_k_cuStreamWriteValue64_v2_ptsz[] = "cuStreamWriteValue64_v2_ptsz";
static const char __pyx_k_cuCheckpointProcessCheckpoint[] = "cuCheckpointProcessCheckpoint";
static const char __pyx_k_cuDevicePrimaryCtxSetFlags_v2[] = "cuDevicePrimaryCtxSetFlags_v2";
static const char __pyx_k_cuEGLStreamConsumerDisconnect[] = "cuEGLStreamConsumerDisconnect";
static const char __pyx_k_cuEGLStreamProducerDisconnect[] = "cuEGLStreamProducerDisconnect";
static const char __pyx_k_cuGraphChildGraphNodeGetGraph[] = "cuGraphChildGraphNodeGetGraph";
static const char __pyx_k_cuGraphKernelNodeGetAttribute[] = "cuGraphKernelNodeGetAttribute";
static const char __pyx_k_cuGraphKernelNodeGetParams_v2[] = "cuGraphKernelNodeGetParams_v2";
static const char __pyx_k_cuGraphKernelNodeSetAttribute[] = "cuGraphKernelNodeSetAttribute";
static const char __pyx_k_cuGraphKernelNodeSetParams_v2[] = "cuGraphKernelNodeSetParams_v2";
static const char __pyx_k_cuGraphNodeGetContainingGraph[] = "cuGraphNodeGetContainingGraph";
static const char __pyx_k_cuGraphNodeGetDependencies_v2[] = "cuGraphNodeGetDependencies_v2";
static const char __pyx_k_cuGraphicsResourceSetMapFlags[] = "cuGraphicsResourceSetMapFlags";
static const char __pyx_k_cuGraphicsUnmapResources_ptsz[] = "cuGraphicsUnmapResources_ptsz";
static const char __pyx_k_cuMemGetAllocationGranularity[] = "cuMemGetAllocationGranularity";
static const char __pyx_k_cuMemGetHandleForAddressRange[] = "cuMemGetHandleForAddressRange";
static const char __pyx_k_cuWaitExternalSemaphoresAsync[] = "cuWaitExternalSemaphoresAsync";
static const char __pyx_k_cuDeviceGetExecAffinitySupport[] = "cuDeviceGetExecAffinitySupport";
static const char __pyx_k_cuDeviceGetNvSciSyncAttributes[] = "cuDeviceGetNvSciSyncAttributes";
static const char __pyx_k_cuEGLStreamProducerReturnFrame[] = "cuEGLStreamProducerReturnFrame";
static const char __pyx_k_cuGraphBatchMemOpNodeGetParams[] = "cuGraphBatchMemOpNodeGetParams";
static const char __pyx_k_cuGraphBatchMemOpNodeSetParams[] = "cuGraphBatchMemOpNodeSetParams";
static const char __pyx_k_cuGraphConditionalHandleCreate[] = "cuGraphConditionalHandleCreate";
static const char __pyx_k_cuGraphEventRecordNodeGetEvent[] = "cuGraphEventRecordNodeGetEvent";
static const char __pyx_k_cuGraphEventRecordNodeSetEvent[] = "cuGraphEventRecordNodeSetEvent";
static const char __pyx_k_cuGraphExecKernelNodeSetParams[] = "cuGraphExecKernelNodeSetParams";
static const char __pyx_k_cuGraphExecMemcpyNodeSetParams[] = "cuGraphExecMemcpyNodeSetParams";
static const char __pyx_k_cuGraphExecMemsetNodeSetParams[] = "cuGraphExecMemsetNodeSetParams";
static const char __pyx_k_cuLaunchCooperativeKernel_ptsz[] = "cuLaunchCooperativeKernel_ptsz";
static const char __pyx_k_cuMemBatchDecompressAsync_ptsz[] = "cuMemBatchDecompressAsync_ptsz";
static const char __pyx_k_cuMemImportFromShareableHandle[] = "cuMemImportFromShareableHandle";
static const char __pyx_k_cuStreamGetCaptureInfo_v3_ptsz[] = "cuStreamGetCaptureInfo_v3_ptsz";
static const char __pyx_k_cuTexObjectGetResourceViewDesc[] = "cuTexObjectGetResourceViewDesc";
static const char __pyx_k_cuEGLStreamConsumerAcquireFrame[] = "cuEGLStreamConsumerAcquireFrame";
static const char __pyx_k_cuEGLStreamConsumerReleaseFrame[] = "cuEGLStreamConsumerReleaseFrame";
static const char __pyx_k_cuEGLStreamProducerPresentFrame[] = "cuEGLStreamProducerPresentFrame";
static const char __pyx_k_cuExternalMemoryGetMappedBuffer[] = "cuExternalMemoryGetMappedBuffer";
static const char __pyx_k_cuGraphKernelNodeCopyAttributes[] = "cuGraphKernelNodeCopyAttributes";
static const char __pyx_k_cuGraphNodeGetDependentNodes_v2[] = "cuGraphNodeGetDependentNodes_v2";
static const char __pyx_k_cuSignalExternalSemaphoresAsync[] = "cuSignalExternalSemaphoresAsync";
static const char __pyx_k_cuCheckpointProcessGetRestoreThr[] = "cuCheckpointProcessGetRestoreThreadId";
static const char __pyx_k_cuDeviceGetHostAtomicCapabilitie[] = "cuDeviceGetHostAtomicCapabilities";
static const char __pyx_k_cuDeviceGetP2PAtomicCapabilities[] = "cuDeviceGetP2PAtomicCapabilities";
static const char __pyx_k_cuDeviceGetTexture1DLinearMaxWid[] = "cuDeviceGetTexture1DLinearMaxWidth";
static const char __pyx_k_cuDeviceRegisterAsyncNotificatio[] = "cuDeviceRegisterAsyncNotification";
static const char __pyx_k_cuDeviceUnregisterAsyncNotificat[] = "cuDeviceUnregisterAsyncNotification";
static const char __pyx_k_cuEGLStreamConsumerConnectWithFl[] = "cuEGLStreamConsumerConnectWithFlags";
static const char __pyx_k_cuExternalMemoryGetMappedMipmapp[] = "cuExternalMemoryGetMappedMipmappedArray";
static const char __pyx_k_cuGraphAddExternalSemaphoresSign[] = "cuGraphAddExternalSemaphoresSignalNode";
static const char __pyx_k_cuGraphAddExternalSemaphoresWait[] = "cuGraphAddExternalSemaphoresWaitNode";
static const char __pyx_k_cuGraphExecBatchMemOpNodeSetPara[] = "cuGraphExecBatchMemOpNodeSetParams";
static const char __pyx_k_cuGraphExecChildGraphNodeSetPara[] = "cuGraphExecChildGraphNodeSetParams";
static const char __pyx_k_cuGraphExecEventRecordNodeSetEve[] = "cuGraphExecEventRecordNodeSetEvent";
static const char __pyx_k_cuGraphExecEventWaitNodeSetEvent[] = "cuGraphExecEventWaitNodeSetEvent";
static const char __pyx_k_cuGraphExecExternalSemaphoresSig[] = "cuGraphExecExternalSemaphoresSignalNodeSetParams";
static const char __pyx_k_cuGraphExecExternalSemaphoresWai[] = "cuGraphExecExternalSemaphoresWaitNodeSetParams";
static const char __pyx_k_cuGraphExecKernelNodeSetParams_v[] = "cuGraphExecKernelNodeSetParams_v2";
static const char __pyx_k_cuGraphExternalSemaphoresSignalN[] = "cuGraphExternalSemaphoresSignalNodeGetParams";
static const char __pyx_k_cuGraphExternalSemaphoresWaitNod[] = "cuGraphExternalSemaphoresWaitNodeGetParams";
static const char __pyx_k_cuGraphInstantiateWithParams_pts[] = "cuGraphInstantiateWithParams_ptsz";
static const char __pyx_k_cuGraphicsResourceGetMappedEglFr[] = "cuGraphicsResourceGetMappedEglFrame";
static const char __pyx_k_cuGraphicsResourceGetMappedMipma[] = "cuGraphicsResourceGetMappedMipmappedArray";
static const char __pyx_k_cuGraphicsResourceGetMappedPoint[] = "cuGraphicsResourceGetMappedPointer";
static const char __pyx_k_cuGraphicsResourceSetMapFlags_v2[] = "cuGraphicsResourceSetMapFlags_v2";
static const char __pyx_k_cuGraphicsSubResourceGetMappedAr[] = "cuGraphicsSubResourceGetMappedArray";
static const char __pyx_k_cuGraphicsVDPAURegisterOutputSur[] = "cuGraphicsVDPAURegisterOutputSurface";
static const char __pyx_k_cuGraphicsVDPAURegisterVideoSurf[] = "cuGraphicsVDPAURegisterVideoSurface";
static const char __pyx_k_cuLaunchCooperativeKernelMultiDe[] = "cuLaunchCooperativeKernelMultiDevice";
static const char __pyx_k_cuMemDiscardAndPrefetchBatchAsyn[] = "cuMemDiscardAndPrefetchBatchAsync";
static const char __pyx_k_cuMemGetAllocationPropertiesFrom[] = "cuMemGetAllocationPropertiesFromHandle";
static const char __pyx_k_cuMemPoolExportToShareableHandle[] = "cuMemPoolExportToShareableHandle";
static const char __pyx_k_cuMemPoolImportFromShareableHand[] = "cuMemPoolImportFromShareableHandle";
static const char __pyx_k_cuMipmappedArrayGetMemoryRequire[] = "cuMipmappedArrayGetMemoryRequirements";
static const char __pyx_k_cuMipmappedArrayGetSparsePropert[] = "cuMipmappedArrayGetSparseProperties";
static const char __pyx_k_cuOccupancyAvailableDynamicSMemP[] = "cuOccupancyAvailableDynamicSMemPerBlock";
static const char __pyx_k_cuOccupancyMaxActiveBlocksPerMul[] = "cuOccupancyMaxActiveBlocksPerMultiprocessor";
static const char __pyx_k_cuOccupancyMaxPotentialBlockSize[] = "cuOccupancyMaxPotentialBlockSize";
static const char __pyx_k_cuOccupancyMaxPotentialClusterSi[] = "cuOccupancyMaxPotentialClusterSize";
static const char __pyx_k_cuStreamBeginCaptureToGraph_ptsz[] = "cuStreamBeginCaptureToGraph_ptsz";
static const char __pyx_k_cuStreamUpdateCaptureDependencie[] = "cuStreamUpdateCaptureDependencies";
static const char __pyx_k_cuThreadExchangeStreamCaptureMod[] = "cuThreadExchangeStreamCaptureMode";
static const char __pyx_k_cuWaitExternalSemaphoresAsync_pt[] = "cuWaitExternalSemaphoresAsync_ptsz";
static const char __pyx_k_cuSignalExternalSemaphoresAsync_2[] = "cuSignalExternalSemaphoresAsync_ptsz";
static const char __pyx_k_cuGraphExternalSemaphoresSignalN_2[] = "cuGraphExternalSemaphoresSignalNodeSetParams";
static const char __pyx_k_cuGraphExternalSemaphoresWaitNod_2[] = "cuGraphExternalSemaphoresWaitNodeSetParams";
static const char __pyx_k_cuGraphicsResourceGetMappedPoint_2[] = "cuGraphicsResourceGetMappedPointer_v2";
static const char __pyx_k_cuMemDiscardAndPrefetchBatchAsyn_2[] = "cuMemDiscardAndPrefetchBatchAsync_ptsz";
static const char __pyx_k_cuOccupancyMaxActiveBlocksPerMul_2[] = "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
static const char __pyx_k_cuOccupancyMaxPotentialBlockSize_2[] = "cuOccupancyMaxPotentialBlockSizeWithFlags";
static const char __pyx_k_cuStreamUpdateCaptureDependencie_2[] = "cuStreamUpdateCaptureDependencies_v2_ptsz";
static const char __pyx_k_cuStreamUpdateCaptureDependencie_3[] = "cuStreamUpdateCaptureDependencies_v2";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_9_bindings_8cydriver_2_inspect_function_pointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name); /* proto */
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  PyObject *__pyx_tuple[1];
  PyObject *__pyx_codeobj_tab[2];
  PyObject *__pyx_string_tab[999];
  PyObject *__pyx_number_tab[2];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;

/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_ __pyx_string_tab[0]
#define __pyx_kp_u_Failed_to_dlopen __pyx_string_tab[1]
#define __pyx_kp_u_Function_cuArray3DCreate_v2_not __pyx_string_tab[2]
#define __pyx_kp_u_Function_cuArray3DGetDescriptor __pyx_string_tab[3]
#define __pyx_kp_u_Function_cuArrayCreate_v2_not_fo __pyx_string_tab[4]
#define __pyx_kp_u_Function_cuArrayDestroy_not_foun __pyx_string_tab[5]
#define __pyx_kp_u_Function_cuArrayGetDescriptor_v2 __pyx_string_tab[6]
#define __pyx_kp_u_Function_cuArrayGetMemoryRequire __pyx_string_tab[7]
#define __pyx_kp_u_Function_cuArrayGetPlane_not_fou __pyx_string_tab[8]
#define __pyx_kp_u_Function_cuArrayGetSparsePropert __pyx_string_tab[9]
#define __pyx_kp_u_Function_cuCheckpointProcessChec __pyx_string_tab[10]
#define __pyx_kp_u_Function_cuCheckpointProcessGetR __pyx_string_tab[11]
#define __pyx_kp_u_Function_cuCheckpointProcessGetS __pyx_string_tab[12]
#define __pyx_kp_u_Function_cuCheckpointProcessLock __pyx_string_tab[13]
#define __pyx_kp_u_Function_cuCheckpointProcessRest __pyx_string_tab[14]
#define __pyx_kp_u_Function_cuCheckpointProcessUnlo __pyx_string_tab[15]
#define __pyx_kp_u_Function_cuCoredumpGetAttribute __pyx_string_tab[16]
#define __pyx_kp_u_Function_cuCoredumpGetAttributeG __pyx_string_tab[17]
#define __pyx_kp_u_Function_cuCoredumpSetAttribute __pyx_string_tab[18]
#define __pyx_kp_u_Function_cuCoredumpSetAttributeG __pyx_string_tab[19]
#define __pyx_kp_u_Function_cuCtxAttach_not_found __pyx_string_tab[20]
#define __pyx_kp_u_Function_cuCtxCreate_v4_not_foun __pyx_string_tab[21]
#define __pyx_kp_u_Function_cuCtxDestroy_v2_not_fou __pyx_string_tab[22]
#define __pyx_kp_u_Function_cuCtxDetach_not_found __pyx_string_tab[23]
#define __pyx_kp_u_Function_cuCtxDisablePeerAccess __pyx_string_tab[24]
#define __pyx_kp_u_Function_cuCtxEnablePeerAccess_n __pyx_string_tab[25]
#define __pyx_kp_u_Function_cuCtxFromGreenCtx_not_f __pyx_string_tab[26]
#define __pyx_kp_u_Function_cuCtxGetApiVersion_not __pyx_string_tab[27]
#define __pyx_kp_u_Function_cuCtxGetCacheConfig_not __pyx_string_tab[28]
#define __pyx_kp_u_Function_cuCtxGetCurrent_not_fou __pyx_string_tab[29]
#define __pyx_kp_u_Function_cuCtxGetDevResource_not __pyx_string_tab[30]
#define __pyx_kp_u_Function_cuCtxGetDevice_not_foun __pyx_string_tab[31]
#define __pyx_kp_u_Function_cuCtxGetDevice_v2_not_f __pyx_string_tab[32]
#define __pyx_kp_u_Function_cuCtxGetExecAffinity_no __pyx_string_tab[33]
#define __pyx_kp_u_Function_cuCtxGetFlags_not_found __pyx_string_tab[34]
#define __pyx_kp_u_Function_cuCtxGetId_not_found __pyx_string_tab[35]
#define __pyx_kp_u_Function_cuCtxGetLimit_not_found __pyx_string_tab[36]
#define __pyx_kp_u_Function_cuCtxGetSharedMemConfig __pyx_string_tab[37]
#define __pyx_kp_u_Function_cuCtxGetStreamPriorityR __pyx_string_tab[38]
#define __pyx_kp_u_Function_cuCtxPopCurrent_v2_not __pyx_string_tab[39]
#define __pyx_kp_u_Function_cuCtxPushCurrent_v2_not __pyx_string_tab[40]
#define __pyx_kp_u_Function_cuCtxRecordEvent_not_fo __pyx_string_tab[41]
#define __pyx_kp_u_Function_cuCtxResetPersistingL2C __pyx_string_tab[42]
#define __pyx_kp_u_Function_cuCtxSetCacheConfig_not __pyx_string_tab[43]
#define __pyx_kp_u_Function_cuCtxSetCurrent_not_fou __pyx_string_tab[44]
#define __pyx_kp_u_Function_cuCtxSetFlags_not_found __pyx_string_tab[45]
#define __pyx_kp_u_Function_cuCtxSetLimit_not_found __pyx_string_tab[46]
#define __pyx_kp_u_Function_cuCtxSetSharedMemConfig __pyx_string_tab[47]
#define __pyx_kp_u_Function_cuCtxSynchronize_not_fo __pyx_string_tab[48]
#define __pyx_kp_u_Function_cuCtxSynchronize_v2_not __pyx_string_tab[49]
#define __pyx_kp_u_Function_cuCtxWaitEvent_not_foun __pyx_string_tab[50]
#define __pyx_kp_u_Function_cuDestroyExternalMemory __pyx_string_tab[51]
#define __pyx_kp_u_Function_cuDestroyExternalSemaph __pyx_string_tab[52]
#define __pyx_kp_u_Function_cuDevResourceGenerateDe __pyx_string_tab[53]
#define __pyx_kp_u_Function_cuDevSmResourceSplitByC __pyx_string_tab[54]
#define __pyx_kp_u_Function_cuDevSmResourceSplit_no __pyx_string_tab[55]
#define __pyx_kp_u_Function_cuDeviceCanAccessPeer_n __pyx_string_tab[56]
#define __pyx_kp_u_Function_cuDeviceComputeCapabili __pyx_string_tab[57]
#define __pyx_kp_u_Function_cuDeviceGetAttribute_no __pyx_string_tab[58]
#define __pyx_kp_u_Function_cuDeviceGetByPCIBusId_n __pyx_string_tab[59]
#define __pyx_kp_u_Function_cuDeviceGetCount_not_fo __pyx_string_tab[60]
#define __pyx_kp_u_Function_cuDeviceGetDefaultMemPo __pyx_string_tab[61]
#define __pyx_kp_u_Function_cuDeviceGetDevResource __pyx_string_tab[62]
#define __pyx_kp_u_Function_cuDeviceGetExecAffinity __pyx_string_tab[63]
#define __pyx_kp_u_Function_cuDeviceGetGraphMemAttr __pyx_string_tab[64]
#define __pyx_kp_u_Function_cuDeviceGetHostAtomicCa __pyx_string_tab[65]
#define __pyx_kp_u_Function_cuDeviceGetLuid_not_fou __pyx_string_tab[66]
#define __pyx_kp_u_Function_cuDeviceGetMemPool_not __pyx_string_tab[67]
#define __pyx_kp_u_Function_cuDeviceGetName_not_fou __pyx_string_tab[68]
#define __pyx_kp_u_Function_cuDeviceGetNvSciSyncAtt __pyx_string_tab[69]
#define __pyx_kp_u_Function_cuDeviceGetP2PAtomicCap __pyx_string_tab[70]
#define __pyx_kp_u_Function_cuDeviceGetP2PAttribute __pyx_string_tab[71]
#define __pyx_kp_u_Function_cuDeviceGetPCIBusId_not __pyx_string_tab[72]
#define __pyx_kp_u_Function_cuDeviceGetProperties_n __pyx_string_tab[73]
#define __pyx_kp_u_Function_cuDeviceGetTexture1DLin __pyx_string_tab[74]
#define __pyx_kp_u_Function_cuDeviceGetUuid_v2_not __pyx_string_tab[75]
#define __pyx_kp_u_Function_cuDeviceGet_not_found __pyx_string_tab[76]
#define __pyx_kp_u_Function_cuDeviceGraphMemTrim_no __pyx_string_tab[77]
#define __pyx_kp_u_Function_cuDevicePrimaryCtxGetSt __pyx_string_tab[78]
#define __pyx_kp_u_Function_cuDevicePrimaryCtxRelea __pyx_string_tab[79]
#define __pyx_kp_u_Function_cuDevicePrimaryCtxReset __pyx_string_tab[80]
#define __pyx_kp_u_Function_cuDevicePrimaryCtxRetai __pyx_string_tab[81]
#define __pyx_kp_u_Function_cuDevicePrimaryCtxSetFl __pyx_string_tab[82]
#define __pyx_kp_u_Function_cuDeviceRegisterAsyncNo __pyx_string_tab[83]
#define __pyx_kp_u_Function_cuDeviceSetGraphMemAttr __pyx_string_tab[84]
#define __pyx_kp_u_Function_cuDeviceSetMemPool_not __pyx_string_tab[85]
#define __pyx_kp_u_Function_cuDeviceTotalMem_v2_not __pyx_string_tab[86]
#define __pyx_kp_u_Function_cuDeviceUnregisterAsync __pyx_string_tab[87]
#define __pyx_kp_u_Function_cuDriverGetVersion_not __pyx_string_tab[88]
#define __pyx_kp_u_Function_cuEGLStreamConsumerAcqu __pyx_string_tab[89]
#define __pyx_kp_u_Function_cuEGLStreamConsumerConn __pyx_string_tab[90]
#define __pyx_kp_u_Function_cuEGLStreamConsumerConn_2 __pyx_string_tab[91]
#define __pyx_kp_u_Function_cuEGLStreamConsumerDisc __pyx_string_tab[92]
#define __pyx_kp_u_Function_cuEGLStreamConsumerRele __pyx_string_tab[93]
#define __pyx_kp_u_Function_cuEGLStreamProducerConn __pyx_string_tab[94]
#define __pyx_kp_u_Function_cuEGLStreamProducerDisc __pyx_string_tab[95]
#define __pyx_kp_u_Function_cuEGLStreamProducerPres __pyx_string_tab[96]
#define __pyx_kp_u_Function_cuEGLStreamProducerRetu __pyx_string_tab[97]
#define __pyx_kp_u_Function_cuEventCreateFromEGLSyn __pyx_string_tab[98]
#define __pyx_kp_u_Function_cuEventCreate_not_found __pyx_string_tab[99]
#define __pyx_kp_u_Function_cuEventDestroy_v2_not_f __pyx_string_tab[100]
#define __pyx_kp_u_Function_cuEventElapsedTime_v2_n __pyx_string_tab[101]
#define __pyx_kp_u_Function_cuEventQuery_not_found __pyx_string_tab[102]
#define __pyx_kp_u_Function_cuEventRecordWithFlags __pyx_string_tab[103]
#define __pyx_kp_u_Function_cuEventRecord_not_found __pyx_string_tab[104]
#define __pyx_kp_u_Function_cuEventSynchronize_not __pyx_string_tab[105]
#define __pyx_kp_u_Function_cuExternalMemoryGetMapp __pyx_string_tab[106]
#define __pyx_kp_u_Function_cuExternalMemoryGetMapp_2 __pyx_string_tab[107]
#define __pyx_kp_u_Function_cuFlushGPUDirectRDMAWri __pyx_string_tab[108]
#define __pyx_kp_u_Function_cuFuncGetAttribute_not __pyx_string_tab[109]
#define __pyx_kp_u_Function_cuFuncGetModule_not_fou __pyx_string_tab[110]
#define __pyx_kp_u_Function_cuFuncGetName_not_found __pyx_string_tab[111]
#define __pyx_kp_u_Function_cuFuncGetParamInfo_not __pyx_string_tab[112]
#define __pyx_kp_u_Function_cuFuncIsLoaded_not_foun __pyx_string_tab[113]
#define __pyx_kp_u_Function_cuFuncLoad_not_found __pyx_string_tab[114]
#define __pyx_kp_u_Function_cuFuncSetAttribute_not __pyx_string_tab[115]
#define __pyx_kp_u_Function_cuFuncSetBlockShape_not __pyx_string_tab[116]
#define __pyx_kp_u_Function_cuFuncSetCacheConfig_no __pyx_string_tab[117]
#define __pyx_kp_u_Function_cuFuncSetSharedMemConfi __pyx_string_tab[118]
#define __pyx_kp_u_Function_cuFuncSetSharedSize_not __pyx_string_tab[119]
#define __pyx_kp_u_Function_cuGLGetDevices_v2_not_f __pyx_string_tab[120]
#define __pyx_kp_u_Function_cuGetErrorName_not_foun __pyx_string_tab[121]
#define __pyx_kp_u_Function_cuGetErrorString_not_fo __pyx_string_tab[122]
#define __pyx_kp_u_Function_cuGetExportTable_not_fo __pyx_string_tab[123]
#define __pyx_kp_u_Function_cuGetProcAddress_v2_not __pyx_string_tab[124]
#define __pyx_kp_u_Function_cuGraphAddBatchMemOpNod __pyx_string_tab[125]
#define __pyx_kp_u_Function_cuGraphAddChildGraphNod __pyx_string_tab[126]
#define __pyx_kp_u_Function_cuGraphAddDependencies __pyx_string_tab[127]
#define __pyx_kp_u_Function_cuGraphAddEmptyNode_not __pyx_string_tab[128]
#define __pyx_kp_u_Function_cuGraphAddEventRecordNo __pyx_string_tab[129]
#define __pyx_kp_u_Function_cuGraphAddEventWaitNode __pyx_string_tab[130]
#define __pyx_kp_u_Function_cuGraphAddExternalSemap __pyx_string_tab[131]
#define __pyx_kp_u_Function_cuGraphAddExternalSemap_2 __pyx_string_tab[132]
#define __pyx_kp_u_Function_cuGraphAddHostNode_not __pyx_string_tab[133]
#define __pyx_kp_u_Function_cuGraphAddKernelNode_v2 __pyx_string_tab[134]
#define __pyx_kp_u_Function_cuGraphAddMemAllocNode __pyx_string_tab[135]
#define __pyx_kp_u_Function_cuGraphAddMemFreeNode_n __pyx_string_tab[136]
#define __pyx_kp_u_Function_cuGraphAddMemcpyNode_no __pyx_string_tab[137]
#define __pyx_kp_u_Function_cuGraphAddMemsetNode_no __pyx_string_tab[138]
#define __pyx_kp_u_Function_cuGraphAddNode_v2_not_f __pyx_string_tab[139]
#define __pyx_kp_u_Function_cuGraphBatchMemOpNodeGe __pyx_string_tab[140]
#define __pyx_kp_u_Function_cuGraphBatchMemOpNodeSe __pyx_string_tab[141]
#define __pyx_kp_u_Function_cuGraphChildGraphNodeGe __pyx_string_tab[142]
#define __pyx_kp_u_Function_cuGraphClone_not_found __pyx_string_tab[143]
#define __pyx_kp_u_Function_cuGraphConditionalHandl __pyx_string_tab[144]
#define __pyx_kp_u_Function_cuGraphCreate_not_found __pyx_string_tab[145]
#define __pyx_kp_u_Function_cuGraphDebugDotPrint_no __pyx_string_tab[146]
#define __pyx_kp_u_Function_cuGraphDestroyNode_not __pyx_string_tab[147]
#define __pyx_kp_u_Function_cuGraphDestroy_not_foun __pyx_string_tab[148]
#define __pyx_kp_u_Function_cuGraphEventRecordNodeG __pyx_string_tab[149]
#define __pyx_kp_u_Function_cuGraphEventRecordNodeS __pyx_string_tab[150]
#define __pyx_kp_u_Function_cuGraphEventWaitNodeGet __pyx_string_tab[151]
#define __pyx_kp_u_Function_cuGraphEventWaitNodeSet __pyx_string_tab[152]
#define __pyx_kp_u_Function_cuGraphExecBatchMemOpNo __pyx_string_tab[153]
#define __pyx_kp_u_Function_cuGraphExecChildGraphNo __pyx_string_tab[154]
#define __pyx_kp_u_Function_cuGraphExecDestroy_not __pyx_string_tab[155]
#define __pyx_kp_u_Function_cuGraphExecEventRecordN __pyx_string_tab[156]
#define __pyx_kp_u_Function_cuGraphExecEventWaitNod __pyx_string_tab[157]
#define __pyx_kp_u_Function_cuGraphExecExternalSema __pyx_string_tab[158]
#define __pyx_kp_u_Function_cuGraphExecExternalSema_2 __pyx_string_tab[159]
#define __pyx_kp_u_Function_cuGraphExecGetFlags_not __pyx_string_tab[160]
#define __pyx_kp_u_Function_cuGraphExecGetId_not_fo __pyx_string_tab[161]
#define __pyx_kp_u_Function_cuGraphExecHostNodeSetP __pyx_string_tab[162]
#define __pyx_kp_u_Function_cuGraphExecKernelNodeSe __pyx_string_tab[163]
#define __pyx_kp_u_Function_cuGraphExecMemcpyNodeSe __pyx_string_tab[164]
#define __pyx_kp_u_Function_cuGraphExecMemsetNodeSe __pyx_string_tab[165]
#define __pyx_kp_u_Function_cuGraphExecNodeSetParam __pyx_string_tab[166]
#define __pyx_kp_u_Function_cuGraphExecUpdate_v2_no __pyx_string_tab[167]
#define __pyx_kp_u_Function_cuGraphExternalSemaphor __pyx_string_tab[168]
#define __pyx_kp_u_Function_cuGraphExternalSemaphor_2 __pyx_string_tab[169]
#define __pyx_kp_u_Function_cuGraphExternalSemaphor_3 __pyx_string_tab[170]
#define __pyx_kp_u_Function_cuGraphExternalSemaphor_4 __pyx_string_tab[171]
#define __pyx_kp_u_Function_cuGraphGetEdges_v2_not __pyx_string_tab[172]
#define __pyx_kp_u_Function_cuGraphGetId_not_found __pyx_string_tab[173]
#define __pyx_kp_u_Function_cuGraphGetNodes_not_fou __pyx_string_tab[174]
#define __pyx_kp_u_Function_cuGraphGetRootNodes_not __pyx_string_tab[175]
#define __pyx_kp_u_Function_cuGraphHostNodeGetParam __pyx_string_tab[176]
#define __pyx_kp_u_Function_cuGraphHostNodeSetParam __pyx_string_tab[177]
#define __pyx_kp_u_Function_cuGraphInstantiateWithF __pyx_string_tab[178]
#define __pyx_kp_u_Function_cuGraphInstantiateWithP __pyx_string_tab[179]
#define __pyx_kp_u_Function_cuGraphKernelNodeCopyAt __pyx_string_tab[180]
#define __pyx_kp_u_Function_cuGraphKernelNodeGetAtt __pyx_string_tab[181]
#define __pyx_kp_u_Function_cuGraphKernelNodeGetPar __pyx_string_tab[182]
#define __pyx_kp_u_Function_cuGraphKernelNodeSetAtt __pyx_string_tab[183]
#define __pyx_kp_u_Function_cuGraphKernelNodeSetPar __pyx_string_tab[184]
#define __pyx_kp_u_Function_cuGraphLaunch_not_found __pyx_string_tab[185]
#define __pyx_kp_u_Function_cuGraphMemAllocNodeGetP __pyx_string_tab[186]
#define __pyx_kp_u_Function_cuGraphMemFreeNodeGetPa __pyx_string_tab[187]
#define __pyx_kp_u_Function_cuGraphMemcpyNodeGetPar __pyx_string_tab[188]
#define __pyx_kp_u_Function_cuGraphMemcpyNodeSetPar __pyx_string_tab[189]
#define __pyx_kp_u_Function_cuGraphMemsetNodeGetPar __pyx_string_tab[190]
#define __pyx_kp_u_Function_cuGraphMemsetNodeSetPar __pyx_string_tab[191]
#define __pyx_kp_u_Function_cuGraphNodeFindInClone __pyx_string_tab[192]
#define __pyx_kp_u_Function_cuGraphNodeGetContainin __pyx_string_tab[193]
#define __pyx_kp_u_Function_cuGraphNodeGetDependenc __pyx_string_tab[194]
#define __pyx_kp_u_Function_cuGraphNodeGetDependent __pyx_string_tab[195]
#define __pyx_kp_u_Function_cuGraphNodeGetEnabled_n __pyx_string_tab[196]
#define __pyx_kp_u_Function_cuGraphNodeGetLocalId_n __pyx_string_tab[197]
#define __pyx_kp_u_Function_cuGraphNodeGetToolsId_n __pyx_string_tab[198]
#define __pyx_kp_u_Function_cuGraphNodeGetType_not __pyx_string_tab[199]
#define __pyx_kp_u_Function_cuGraphNodeSetEnabled_n __pyx_string_tab[200]
#define __pyx_kp_u_Function_cuGraphNodeSetParams_no __pyx_string_tab[201]
#define __pyx_kp_u_Function_cuGraphReleaseUserObjec __pyx_string_tab[202]
#define __pyx_kp_u_Function_cuGraphRemoveDependenci __pyx_string_tab[203]
#define __pyx_kp_u_Function_cuGraphRetainUserObject __pyx_string_tab[204]
#define __pyx_kp_u_Function_cuGraphUpload_not_found __pyx_string_tab[205]
#define __pyx_kp_u_Function_cuGraphicsEGLRegisterIm __pyx_string_tab[206]
#define __pyx_kp_u_Function_cuGraphicsGLRegisterBuf __pyx_string_tab[207]
#define __pyx_kp_u_Function_cuGraphicsGLRegisterIma __pyx_string_tab[208]
#define __pyx_kp_u_Function_cuGraphicsMapResources __pyx_string_tab[209]
#define __pyx_kp_u_Function_cuGraphicsResourceGetMa __pyx_string_tab[210]
#define __pyx_kp_u_Function_cuGraphicsResourceGetMa_2 __pyx_string_tab[211]
#define __pyx_kp_u_Function_cuGraphicsResourceGetMa_3 __pyx_string_tab[212]
#define __pyx_kp_u_Function_cuGraphicsResourceSetMa __pyx_string_tab[213]
#define __pyx_kp_u_Function_cuGraphicsSubResourceGe __pyx_string_tab[214]
#define __pyx_kp_u_Function_cuGraphicsUnmapResource __pyx_string_tab[215]
#define __pyx_kp_u_Function_cuGraphicsUnregisterRes __pyx_string_tab[216]
#define __pyx_kp_u_Function_cuGraphicsVDPAURegister __pyx_string_tab[217]
#define __pyx_kp_u_Function_cuGraphicsVDPAURegister_2 __pyx_string_tab[218]
#define __pyx_kp_u_Function_cuGreenCtxCreate_not_fo __pyx_string_tab[219]
#define __pyx_kp_u_Function_cuGreenCtxDestroy_not_f __pyx_string_tab[220]
#define __pyx_kp_u_Function_cuGreenCtxGetDevResourc __pyx_string_tab[221]
#define __pyx_kp_u_Function_cuGreenCtxGetId_not_fou __pyx_string_tab[222]
#define __pyx_kp_u_Function_cuGreenCtxRecordEvent_n __pyx_string_tab[223]
#define __pyx_kp_u_Function_cuGreenCtxStreamCreate __pyx_string_tab[224]
#define __pyx_kp_u_Function_cuGreenCtxWaitEvent_not __pyx_string_tab[225]
#define __pyx_kp_u_Function_cuImportExternalMemory __pyx_string_tab[226]
#define __pyx_kp_u_Function_cuImportExternalSemapho __pyx_string_tab[227]
#define __pyx_kp_u_Function_cuInit_not_found __pyx_string_tab[228]
#define __pyx_kp_u_Function_cuIpcCloseMemHandle_not __pyx_string_tab[229]
#define __pyx_kp_u_Function_cuIpcGetEventHandle_not __pyx_string_tab[230]
#define __pyx_kp_u_Function_cuIpcGetMemHandle_not_f __pyx_string_tab[231]
#define __pyx_kp_u_Function_cuIpcOpenEventHandle_no __pyx_string_tab[232]
#define __pyx_kp_u_Function_cuIpcOpenMemHandle_v2_n __pyx_string_tab[233]
#define __pyx_kp_u_Function_cuKernelGetAttribute_no __pyx_string_tab[234]
#define __pyx_kp_u_Function_cuKernelGetFunction_not __pyx_string_tab[235]
#define __pyx_kp_u_Function_cuKernelGetLibrary_not __pyx_string_tab[236]
#define __pyx_kp_u_Function_cuKernelGetName_not_fou __pyx_string_tab[237]
#define __pyx_kp_u_Function_cuKernelGetParamInfo_no __pyx_string_tab[238]
#define __pyx_kp_u_Function_cuKernelSetAttribute_no __pyx_string_tab[239]
#define __pyx_kp_u_Function_cuKernelSetCacheConfig __pyx_string_tab[240]
#define __pyx_kp_u_Function_cuLaunchCooperativeKern __pyx_string_tab[241]
#define __pyx_kp_u_Function_cuLaunchCooperativeKern_2 __pyx_string_tab[242]
#define __pyx_kp_u_Function_cuLaunchGridAsync_not_f __pyx_string_tab[243]
#define __pyx_kp_u_Function_cuLaunchGrid_not_found __pyx_string_tab[244]
#define __pyx_kp_u_Function_cuLaunchHostFunc_not_fo __pyx_string_tab[245]
#define __pyx_kp_u_Function_cuLaunchKernelEx_not_fo __pyx_string_tab[246]
#define __pyx_kp_u_Function_cuLaunchKernel_not_foun __pyx_string_tab[247]
#define __pyx_kp_u_Function_cuLaunch_not_found __pyx_string_tab[248]
#define __pyx_kp_u_Function_cuLibraryEnumerateKerne __pyx_string_tab[249]
#define __pyx_kp_u_Function_cuLibraryGetGlobal_not __pyx_string_tab[250]
#define __pyx_kp_u_Function_cuLibraryGetKernelCount __pyx_string_tab[251]
#define __pyx_kp_u_Function_cuLibraryGetKernel_not __pyx_string_tab[252]
#define __pyx_kp_u_Function_cuLibraryGetManaged_not __pyx_string_tab[253]
#define __pyx_kp_u_Function_cuLibraryGetModule_not __pyx_string_tab[254]
#define __pyx_kp_u_Function_cuLibraryGetUnifiedFunc __pyx_string_tab[255]
#define __pyx_kp_u_Function_cuLibraryLoadData_not_f __pyx_string_tab[256]
#define __pyx_kp_u_Function_cuLibraryLoadFromFile_n __pyx_string_tab[257]
#define __pyx_kp_u_Function_cuLibraryUnload_not_fou __pyx_string_tab[258]
#define __pyx_kp_u_Function_cuLinkAddData_v2_not_fo __pyx_string_tab[259]
#define __pyx_kp_u_Function_cuLinkAddFile_v2_not_fo __pyx_string_tab[260]
#define __pyx_kp_u_Function_cuLinkComplete_not_foun __pyx_string_tab[261]
#define __pyx_kp_u_Function_cuLinkCreate_v2_not_fou __pyx_string_tab[262]
#define __pyx_kp_u_Function_cuLinkDestroy_not_found __pyx_string_tab[263]
#define __pyx_kp_u_Function_cuLogsCurrent_not_found __pyx_string_tab[264]
#define __pyx_kp_u_Function_cuLogsDumpToFile_not_fo __pyx_string_tab[265]
#define __pyx_kp_u_Function_cuLogsDumpToMemory_not __pyx_string_tab[266]
#define __pyx_kp_u_Function_cuLogsRegisterCallback __pyx_string_tab[267]
#define __pyx_kp_u_Function_cuLogsUnregisterCallbac __pyx_string_tab[268]
#define __pyx_kp_u_Function_cuMemAddressFree_not_fo __pyx_string_tab[269]
#define __pyx_kp_u_Function_cuMemAddressReserve_not __pyx_string_tab[270]
#define __pyx_kp_u_Function_cuMemAdvise_v2_not_foun __pyx_string_tab[271]
#define __pyx_kp_u_Function_cuMemAllocAsync_not_fou __pyx_string_tab[272]
#define __pyx_kp_u_Function_cuMemAllocFromPoolAsync __pyx_string_tab[273]
#define __pyx_kp_u_Function_cuMemAllocHost_v2_not_f __pyx_string_tab[274]
#define __pyx_kp_u_Function_cuMemAllocManaged_not_f __pyx_string_tab[275]
#define __pyx_kp_u_Function_cuMemAllocPitch_v2_not __pyx_string_tab[276]
#define __pyx_kp_u_Function_cuMemAlloc_v2_not_found __pyx_string_tab[277]
#define __pyx_kp_u_Function_cuMemBatchDecompressAsy __pyx_string_tab[278]
#define __pyx_kp_u_Function_cuMemCreate_not_found __pyx_string_tab[279]
#define __pyx_kp_u_Function_cuMemDiscardAndPrefetch __pyx_string_tab[280]
#define __pyx_kp_u_Function_cuMemDiscardBatchAsync __pyx_string_tab[281]
#define __pyx_kp_u_Function_cuMemExportToShareableH __pyx_string_tab[282]
#define __pyx_kp_u_Function_cuMemFreeAsync_not_foun __pyx_string_tab[283]
#define __pyx_kp_u_Function_cuMemFreeHost_not_found __pyx_string_tab[284]
#define __pyx_kp_u_Function_cuMemFree_v2_not_found __pyx_string_tab[285]
#define __pyx_kp_u_Function_cuMemGetAccess_not_foun __pyx_string_tab[286]
#define __pyx_kp_u_Function_cuMemGetAddressRange_v2 __pyx_string_tab[287]
#define __pyx_kp_u_Function_cuMemGetAllocationGranu __pyx_string_tab[288]
#define __pyx_kp_u_Function_cuMemGetAllocationPrope __pyx_string_tab[289]
#define __pyx_kp_u_Function_cuMemGetDefaultMemPool __pyx_string_tab[290]
#define __pyx_kp_u_Function_cuMemGetHandleForAddres __pyx_string_tab[291]
#define __pyx_kp_u_Function_cuMemGetInfo_v2_not_fou __pyx_string_tab[292]
#define __pyx_kp_u_Function_cuMemGetMemPool_not_fou __pyx_string_tab[293]
#define __pyx_kp_u_Function_cuMemHostAlloc_not_foun __pyx_string_tab[294]
#define __pyx_kp_u_Function_cuMemHostGetDevicePoint __pyx_string_tab[295]
#define __pyx_kp_u_Function_cuMemHostGetFlags_not_f __pyx_string_tab[296]
#define __pyx_kp_u_Function_cuMemHostRegister_v2_no __pyx_string_tab[297]
#define __pyx_kp_u_Function_cuMemHostUnregister_not __pyx_string_tab[298]
#define __pyx_kp_u_Function_cuMemImportFromShareabl __pyx_string_tab[299]
#define __pyx_kp_u_Function_cuMemMapArrayAsync_not __pyx_string_tab[300]
#define __pyx_kp_u_Function_cuMemMap_not_found __pyx_string_tab[301]
#define __pyx_kp_u_Function_cuMemPoolCreate_not_fou __pyx_string_tab[302]
#define __pyx_kp_u_Function_cuMemPoolDestroy_not_fo __pyx_string_tab[303]
#define __pyx_kp_u_Function_cuMemPoolExportPointer __pyx_string_tab[304]
#define __pyx_kp_u_Function_cuMemPoolExportToSharea __pyx_string_tab[305]
#define __pyx_kp_u_Function_cuMemPoolGetAccess_not __pyx_string_tab[306]
#define __pyx_kp_u_Function_cuMemPoolGetAttribute_n __pyx_string_tab[307]
#define __pyx_kp_u_Function_cuMemPoolImportFromShar __pyx_string_tab[308]
#define __pyx_kp_u_Function_cuMemPoolImportPointer __pyx_string_tab[309]
#define __pyx_kp_u_Function_cuMemPoolSetAccess_not __pyx_string_tab[310]
#define __pyx_kp_u_Function_cuMemPoolSetAttribute_n __pyx_string_tab[311]
#define __pyx_kp_u_Function_cuMemPoolTrimTo_not_fou __pyx_string_tab[312]
#define __pyx_kp_u_Function_cuMemPrefetchAsync_v2_n __pyx_string_tab[313]
#define __pyx_kp_u_Function_cuMemPrefetchBatchAsync __pyx_string_tab[314]
#define __pyx_kp_u_Function_cuMemRangeGetAttribute __pyx_string_tab[315]
#define __pyx_kp_u_Function_cuMemRangeGetAttributes __pyx_string_tab[316]
#define __pyx_kp_u_Function_cuMemRelease_not_found __pyx_string_tab[317]
#define __pyx_kp_u_Function_cuMemRetainAllocationHa __pyx_string_tab[318]
#define __pyx_kp_u_Function_cuMemSetAccess_not_foun __pyx_string_tab[319]
#define __pyx_kp_u_Function_cuMemSetMemPool_not_fou __pyx_string_tab[320]
#define __pyx_kp_u_Function_cuMemUnmap_not_found __pyx_string_tab[321]
#define __pyx_kp_u_Function_cuMemcpy2DAsync_v2_not __pyx_string_tab[322]
#define __pyx_kp_u_Function_cuMemcpy2DUnaligned_v2 __pyx_string_tab[323]
#define __pyx_kp_u_Function_cuMemcpy2D_v2_not_found __pyx_string_tab[324]
#define __pyx_kp_u_Function_cuMemcpy3DAsync_v2_not __pyx_string_tab[325]
#define __pyx_kp_u_Function_cuMemcpy3DBatchAsync_v2 __pyx_string_tab[326]
#define __pyx_kp_u_Function_cuMemcpy3DPeerAsync_not __pyx_string_tab[327]
#define __pyx_kp_u_Function_cuMemcpy3DPeer_not_foun __pyx_string_tab[328]
#define __pyx_kp_u_Function_cuMemcpy3D_v2_not_found __pyx_string_tab[329]
#define __pyx_kp_u_Function_cuMemcpyAsync_not_found __pyx_string_tab[330]
#define __pyx_kp_u_Function_cuMemcpyAtoA_v2_not_fou __pyx_string_tab[331]
#define __pyx_kp_u_Function_cuMemcpyAtoD_v2_not_fou __pyx_string_tab[332]
#define __pyx_kp_u_Function_cuMemcpyAtoHAsync_v2_no __pyx_string_tab[333]
#define __pyx_kp_u_Function_cuMemcpyAtoH_v2_not_fou __pyx_string_tab[334]
#define __pyx_kp_u_Function_cuMemcpyBatchAsync_v2_n __pyx_string_tab[335]
#define __pyx_kp_u_Function_cuMemcpyDtoA_v2_not_fou __pyx_string_tab[336]
#define __pyx_kp_u_Function_cuMemcpyDtoDAsync_v2_no __pyx_string_tab[337]
#define __pyx_kp_u_Function_cuMemcpyDtoD_v2_not_fou __pyx_string_tab[338]
#define __pyx_kp_u_Function_cuMemcpyDtoHAsync_v2_no __pyx_string_tab[339]
#define __pyx_kp_u_Function_cuMemcpyDtoH_v2_not_fou __pyx_string_tab[340]
#define __pyx_kp_u_Function_cuMemcpyHtoAAsync_v2_no __pyx_string_tab[341]
#define __pyx_kp_u_Function_cuMemcpyHtoA_v2_not_fou __pyx_string_tab[342]
#define __pyx_kp_u_Function_cuMemcpyHtoDAsync_v2_no __pyx_string_tab[343]
#define __pyx_kp_u_Function_cuMemcpyHtoD_v2_not_fou __pyx_string_tab[344]
#define __pyx_kp_u_Function_cuMemcpyPeerAsync_not_f __pyx_string_tab[345]
#define __pyx_kp_u_Function_cuMemcpyPeer_not_found __pyx_string_tab[346]
#define __pyx_kp_u_Function_cuMemcpy_not_found __pyx_string_tab[347]
#define __pyx_kp_u_Function_cuMemsetD16Async_not_fo __pyx_string_tab[348]
#define __pyx_kp_u_Function_cuMemsetD16_v2_not_foun __pyx_string_tab[349]
#define __pyx_kp_u_Function_cuMemsetD2D16Async_not __pyx_string_tab[350]
#define __pyx_kp_u_Function_cuMemsetD2D16_v2_not_fo __pyx_string_tab[351]
#define __pyx_kp_u_Function_cuMemsetD2D32Async_not __pyx_string_tab[352]
#define __pyx_kp_u_Function_cuMemsetD2D32_v2_not_fo __pyx_string_tab[353]
#define __pyx_kp_u_Function_cuMemsetD2D8Async_not_f __pyx_string_tab[354]
#define __pyx_kp_u_Function_cuMemsetD2D8_v2_not_fou __pyx_string_tab[355]
#define __pyx_kp_u_Function_cuMemsetD32Async_not_fo __pyx_string_tab[356]
#define __pyx_kp_u_Function_cuMemsetD32_v2_not_foun __pyx_string_tab[357]
#define __pyx_kp_u_Function_cuMemsetD8Async_not_fou __pyx_string_tab[358]
#define __pyx_kp_u_Function_cuMemsetD8_v2_not_found __pyx_string_tab[359]
#define __pyx_kp_u_Function_cuMipmappedArrayCreate __pyx_string_tab[360]
#define __pyx_kp_u_Function_cuMipmappedArrayDestroy __pyx_string_tab[361]
#define __pyx_kp_u_Function_cuMipmappedArrayGetLeve __pyx_string_tab[362]
#define __pyx_kp_u_Function_cuMipmappedArrayGetMemo __pyx_string_tab[363]
#define __pyx_kp_u_Function_cuMipmappedArrayGetSpar __pyx_string_tab[364]
#define __pyx_kp_u_Function_cuModuleEnumerateFuncti __pyx_string_tab[365]
#define __pyx_kp_u_Function_cuModuleGetFunctionCoun __pyx_string_tab[366]
#define __pyx_kp_u_Function_cuModuleGetFunction_not __pyx_string_tab[367]
#define __pyx_kp_u_Function_cuModuleGetGlobal_v2_no __pyx_string_tab[368]
#define __pyx_kp_u_Function_cuModuleGetLoadingMode __pyx_string_tab[369]
#define __pyx_kp_u_Function_cuModuleGetSurfRef_not __pyx_string_tab[370]
#define __pyx_kp_u_Function_cuModuleGetTexRef_not_f __pyx_string_tab[371]
#define __pyx_kp_u_Function_cuModuleLoadDataEx_not __pyx_string_tab[372]
#define __pyx_kp_u_Function_cuModuleLoadData_not_fo __pyx_string_tab[373]
#define __pyx_kp_u_Function_cuModuleLoadFatBinary_n __pyx_string_tab[374]
#define __pyx_kp_u_Function_cuModuleLoad_not_found __pyx_string_tab[375]
#define __pyx_kp_u_Function_cuModuleUnload_not_foun __pyx_string_tab[376]
#define __pyx_kp_u_Function_cuMulticastAddDevice_no __pyx_string_tab[377]
#define __pyx_kp_u_Function_cuMulticastBindAddr_not __pyx_string_tab[378]
#define __pyx_kp_u_Function_cuMulticastBindAddr_v2 __pyx_string_tab[379]
#define __pyx_kp_u_Function_cuMulticastBindMem_not __pyx_string_tab[380]
#define __pyx_kp_u_Function_cuMulticastBindMem_v2_n __pyx_string_tab[381]
#define __pyx_kp_u_Function_cuMulticastCreate_not_f __pyx_string_tab[382]
#define __pyx_kp_u_Function_cuMulticastGetGranulari __pyx_string_tab[383]
#define __pyx_kp_u_Function_cuMulticastUnbind_not_f __pyx_string_tab[384]
#define __pyx_kp_u_Function_cuOccupancyAvailableDyn __pyx_string_tab[385]
#define __pyx_kp_u_Function_cuOccupancyMaxActiveBlo __pyx_string_tab[386]
#define __pyx_kp_u_Function_cuOccupancyMaxActiveBlo_2 __pyx_string_tab[387]
#define __pyx_kp_u_Function_cuOccupancyMaxActiveClu __pyx_string_tab[388]
#define __pyx_kp_u_Function_cuOccupancyMaxPotential __pyx_string_tab[389]
#define __pyx_kp_u_Function_cuOccupancyMaxPotential_2 __pyx_string_tab[390]
#define __pyx_kp_u_Function_cuOccupancyMaxPotential_3 __pyx_string_tab[391]
#define __pyx_kp_u_Function_cuParamSetSize_not_foun __pyx_string_tab[392]
#define __pyx_kp_u_Function_cuParamSetTexRef_not_fo __pyx_string_tab[393]
#define __pyx_kp_u_Function_cuParamSetf_not_found __pyx_string_tab[394]
#define __pyx_kp_u_Function_cuParamSeti_not_found __pyx_string_tab[395]
#define __pyx_kp_u_Function_cuParamSetv_not_found __pyx_string_tab[396]
#define __pyx_kp_u_Function_cuPointerGetAttribute_n __pyx_string_tab[397]
#define __pyx_kp_u_Function_cuPointerGetAttributes __pyx_string_tab[398]
#define __pyx_kp_u_Function_cuPointerSetAttribute_n __pyx_string_tab[399]
#define __pyx_kp_u_Function_cuProfilerStart_not_fou __pyx_string_tab[400]
#define __pyx_kp_u_Function_cuProfilerStop_not_foun __pyx_string_tab[401]
#define __pyx_kp_u_Function_cuSignalExternalSemapho __pyx_string_tab[402]
#define __pyx_kp_u_Function_cuStreamAddCallback_not __pyx_string_tab[403]
#define __pyx_kp_u_Function_cuStreamAttachMemAsync __pyx_string_tab[404]
#define __pyx_kp_u_Function_cuStreamBatchMemOp_v2_n __pyx_string_tab[405]
#define __pyx_kp_u_Function_cuStreamBeginCaptureToG __pyx_string_tab[406]
#define __pyx_kp_u_Function_cuStreamBeginCapture_v2 __pyx_string_tab[407]
#define __pyx_kp_u_Function_cuStreamCopyAttributes __pyx_string_tab[408]
#define __pyx_kp_u_Function_cuStreamCreateWithPrior __pyx_string_tab[409]
#define __pyx_kp_u_Function_cuStreamCreate_not_foun __pyx_string_tab[410]
#define __pyx_kp_u_Function_cuStreamDestroy_v2_not __pyx_string_tab[411]
#define __pyx_kp_u_Function_cuStreamEndCapture_not __pyx_string_tab[412]
#define __pyx_kp_u_Function_cuStreamGetAttribute_no __pyx_string_tab[413]
#define __pyx_kp_u_Function_cuStreamGetCaptureInfo __pyx_string_tab[414]
#define __pyx_kp_u_Function_cuStreamGetCtx_not_foun __pyx_string_tab[415]
#define __pyx_kp_u_Function_cuStreamGetCtx_v2_not_f __pyx_string_tab[416]
#define __pyx_kp_u_Function_cuStreamGetDevResource __pyx_string_tab[417]
#define __pyx_kp_u_Function_cuStreamGetDevice_not_f __pyx_string_tab[418]
#define __pyx_kp_u_Function_cuStreamGetFlags_not_fo __pyx_string_tab[419]
#define __pyx_kp_u_Function_cuStreamGetGreenCtx_not __pyx_string_tab[420]
#define __pyx_kp_u_Function_cuStreamGetId_not_found __pyx_string_tab[421]
#define __pyx_kp_u_Function_cuStreamGetPriority_not __pyx_string_tab[422]
#define __pyx_kp_u_Function_cuStreamIsCapturing_not __pyx_string_tab[423]
#define __pyx_kp_u_Function_cuStreamQuery_not_found __pyx_string_tab[424]
#define __pyx_kp_u_Function_cuStreamSetAttribute_no __pyx_string_tab[425]
#define __pyx_kp_u_Function_cuStreamSynchronize_not __pyx_string_tab[426]
#define __pyx_kp_u_Function_cuStreamUpdateCaptureDe __pyx_string_tab[427]
#define __pyx_kp_u_Function_cuStreamWaitEvent_not_f __pyx_string_tab[428]
#define __pyx_kp_u_Function_cuStreamWaitValue32_v2 __pyx_string_tab[429]
#define __pyx_kp_u_Function_cuStreamWaitValue64_v2 __pyx_string_tab[430]
#define __pyx_kp_u_Function_cuStreamWriteValue32_v2 __pyx_string_tab[431]
#define __pyx_kp_u_Function_cuStreamWriteValue64_v2 __pyx_string_tab[432]
#define __pyx_kp_u_Function_cuSurfObjectCreate_not __pyx_string_tab[433]
#define __pyx_kp_u_Function_cuSurfObjectDestroy_not __pyx_string_tab[434]
#define __pyx_kp_u_Function_cuSurfObjectGetResource __pyx_string_tab[435]
#define __pyx_kp_u_Function_cuSurfRefGetArray_not_f __pyx_string_tab[436]
#define __pyx_kp_u_Function_cuSurfRefSetArray_not_f __pyx_string_tab[437]
#define __pyx_kp_u_Function_cuTensorMapEncodeIm2col __pyx_string_tab[438]
#define __pyx_kp_u_Function_cuTensorMapEncodeIm2col_2 __pyx_string_tab[439]
#define __pyx_kp_u_Function_cuTensorMapEncodeTiled __pyx_string_tab[440]
#define __pyx_kp_u_Function_cuTensorMapReplaceAddre __pyx_string_tab[441]
#define __pyx_kp_u_Function_cuTexObjectCreate_not_f __pyx_string_tab[442]
#define __pyx_kp_u_Function_cuTexObjectDestroy_not __pyx_string_tab[443]
#define __pyx_kp_u_Function_cuTexObjectGetResourceD __pyx_string_tab[444]
#define __pyx_kp_u_Function_cuTexObjectGetResourceV __pyx_string_tab[445]
#define __pyx_kp_u_Function_cuTexObjectGetTextureDe __pyx_string_tab[446]
#define __pyx_kp_u_Function_cuTexRefCreate_not_foun __pyx_string_tab[447]
#define __pyx_kp_u_Function_cuTexRefDestroy_not_fou __pyx_string_tab[448]
#define __pyx_kp_u_Function_cuTexRefGetAddressMode __pyx_string_tab[449]
#define __pyx_kp_u_Function_cuTexRefGetAddress_v2_n __pyx_string_tab[450]
#define __pyx_kp_u_Function_cuTexRefGetArray_not_fo __pyx_string_tab[451]
#define __pyx_kp_u_Function_cuTexRefGetBorderColor __pyx_string_tab[452]
#define __pyx_kp_u_Function_cuTexRefGetFilterMode_n __pyx_string_tab[453]
#define __pyx_kp_u_Function_cuTexRefGetFlags_not_fo __pyx_string_tab[454]
#define __pyx_kp_u_Function_cuTexRefGetFormat_not_f __pyx_string_tab[455]
#define __pyx_kp_u_Function_cuTexRefGetMaxAnisotrop __pyx_string_tab[456]
#define __pyx_kp_u_Function_cuTexRefGetMipmapFilter __pyx_string_tab[457]
#define __pyx_kp_u_Function_cuTexRefGetMipmapLevelB __pyx_string_tab[458]
#define __pyx_kp_u_Function_cuTexRefGetMipmapLevelC __pyx_string_tab[459]
#define __pyx_kp_u_Function_cuTexRefGetMipmappedArr __pyx_string_tab[460]
#define __pyx_kp_u_Function_cuTexRefSetAddress2D_v3 __pyx_string_tab[461]
#define __pyx_kp_u_Function_cuTexRefSetAddressMode __pyx_string_tab[462]
#define __pyx_kp_u_Function_cuTexRefSetAddress_v2_n __pyx_string_tab[463]
#define __pyx_kp_u_Function_cuTexRefSetArray_not_fo __pyx_string_tab[464]
#define __pyx_kp_u_Function_cuTexRefSetBorderColor __pyx_string_tab[465]
#define __pyx_kp_u_Function_cuTexRefSetFilterMode_n __pyx_string_tab[466]
#define __pyx_kp_u_Function_cuTexRefSetFlags_not_fo __pyx_string_tab[467]
#define __pyx_kp_u_Function_cuTexRefSetFormat_not_f __pyx_string_tab[468]
#define __pyx_kp_u_Function_cuTexRefSetMaxAnisotrop __pyx_string_tab[469]
#define __pyx_kp_u_Function_cuTexRefSetMipmapFilter __pyx_string_tab[470]
#define __pyx_kp_u_Function_cuTexRefSetMipmapLevelB __pyx_string_tab[471]
#define __pyx_kp_u_Function_cuTexRefSetMipmapLevelC __pyx_string_tab[472]
#define __pyx_kp_u_Function_cuTexRefSetMipmappedArr __pyx_string_tab[473]
#define __pyx_kp_u_Function_cuThreadExchangeStreamC __pyx_string_tab[474]
#define __pyx_kp_u_Function_cuUserObjectCreate_not __pyx_string_tab[475]
#define __pyx_kp_u_Function_cuUserObjectRelease_not __pyx_string_tab[476]
#define __pyx_kp_u_Function_cuUserObjectRetain_not __pyx_string_tab[477]
#define __pyx_kp_u_Function_cuVDPAUCtxCreate_v2_not __pyx_string_tab[478]
#define __pyx_kp_u_Function_cuVDPAUGetDevice_not_fo __pyx_string_tab[479]
#define __pyx_kp_u_Function_cuWaitExternalSemaphore __pyx_string_tab[480]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[481]
#define __pyx_kp_u_add_note __pyx_string_tab[482]
#define __pyx_kp_u_cuda_bindings__bindings_cydriver_2 __pyx_string_tab[483]
#define __pyx_kp_u_libcuda_so_1 __pyx_string_tab[484]
#define __pyx_kp_u_utf_8 __pyx_string_tab[485]
#define __pyx_n_u_CUDA_PYTHON_CUDA_PER_THREAD_DEFA __pyx_string_tab[486]
#define __pyx_n_u_Lock __pyx_string_tab[487]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[488]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[489]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[490]
#define __pyx_n_u_cuArray3DCreate_v2_2 __pyx_string_tab[491]
#define __pyx_n_u_cuArray3DGetDescriptor_v2_2 __pyx_string_tab[492]
#define __pyx_n_u_cuArrayCreate_v2_2 __pyx_string_tab[493]
#define __pyx_n_u_cuArrayDestroy_2 __pyx_string_tab[494]
#define __pyx_n_u_cuArrayGetDescriptor_v2_2 __pyx_string_tab[495]
#define __pyx_n_u_cuArrayGetMemoryRequirements_2 __pyx_string_tab[496]
#define __pyx_n_u_cuArrayGetPlane_2 __pyx_string_tab[497]
#define __pyx_n_u_cuArrayGetSparseProperties_2 __pyx_string_tab[498]
#define __pyx_n_u_cuCheckpointProcessCheckpoint_2 __pyx_string_tab[499]
#define __pyx_n_u_cuCheckpointProcessGetRestoreT __pyx_string_tab[500]
#define __pyx_n_u_cuCheckpointProcessGetState_2 __pyx_string_tab[501]
#define __pyx_n_u_cuCheckpointProcessLock_2 __pyx_string_tab[502]
#define __pyx_n_u_cuCheckpointProcessRestore_2 __pyx_string_tab[503]
#define __pyx_n_u_cuCheckpointProcessUnlock_2 __pyx_string_tab[504]
#define __pyx_n_u_cuCoredumpGetAttributeGlobal_2 __pyx_string_tab[505]
#define __pyx_n_u_cuCoredumpGetAttribute_2 __pyx_string_tab[506]
#define __pyx_n_u_cuCoredumpSetAttributeGlobal_2 __pyx_string_tab[507]
#define __pyx_n_u_cuCoredumpSetAttribute_2 __pyx_string_tab[508]
#define __pyx_n_u_cuCtxAttach_2 __pyx_string_tab[509]
#define __pyx_n_u_cuCtxCreate_v4_2 __pyx_string_tab[510]
#define __pyx_n_u_cuCtxDestroy_v2_2 __pyx_string_tab[511]
#define __pyx_n_u_cuCtxDetach_2 __pyx_string_tab[512]
#define __pyx_n_u_cuCtxDisablePeerAccess_2 __pyx_string_tab[513]
#define __pyx_n_u_cuCtxEnablePeerAccess_2 __pyx_string_tab[514]
#define __pyx_n_u_cuCtxFromGreenCtx_2 __pyx_string_tab[515]
#define __pyx_n_u_cuCtxGetApiVersion_2 __pyx_string_tab[516]
#define __pyx_n_u_cuCtxGetCacheConfig_2 __pyx_string_tab[517]
#define __pyx_n_u_cuCtxGetCurrent_2 __pyx_string_tab[518]
#define __pyx_n_u_cuCtxGetDevResource_2 __pyx_string_tab[519]
#define __pyx_n_u_cuCtxGetDevice_2 __pyx_string_tab[520]
#define __pyx_n_u_cuCtxGetDevice_v2_2 __pyx_string_tab[521]
#define __pyx_n_u_cuCtxGetExecAffinity_2 __pyx_string_tab[522]
#define __pyx_n_u_cuCtxGetFlags_2 __pyx_string_tab[523]
#define __pyx_n_u_cuCtxGetId_2 __pyx_string_tab[524]
#define __pyx_n_u_cuCtxGetLimit_2 __pyx_string_tab[525]
#define __pyx_n_u_cuCtxGetSharedMemConfig_2 __pyx_string_tab[526]
#define __pyx_n_u_cuCtxGetStreamPriorityRange_2 __pyx_string_tab[527]
#define __pyx_n_u_cuCtxPopCurrent_v2_2 __pyx_string_tab[528]
#define __pyx_n_u_cuCtxPushCurrent_v2_2 __pyx_string_tab[529]
#define __pyx_n_u_cuCtxRecordEvent_2 __pyx_string_tab[530]
#define __pyx_n_u_cuCtxResetPersistingL2Cache_2 __pyx_string_tab[531]
#define __pyx_n_u_cuCtxSetCacheConfig_2 __pyx_string_tab[532]
#define __pyx_n_u_cuCtxSetCurrent_2 __pyx_string_tab[533]
#define __pyx_n_u_cuCtxSetFlags_2 __pyx_string_tab[534]
#define __pyx_n_u_cuCtxSetLimit_2 __pyx_string_tab[535]
#define __pyx_n_u_cuCtxSetSharedMemConfig_2 __pyx_string_tab[536]
#define __pyx_n_u_cuCtxSynchronize_2 __pyx_string_tab[537]
#define __pyx_n_u_cuCtxSynchronize_v2_2 __pyx_string_tab[538]
#define __pyx_n_u_cuCtxWaitEvent_2 __pyx_string_tab[539]
#define __pyx_n_u_cuDestroyExternalMemory_2 __pyx_string_tab[540]
#define __pyx_n_u_cuDestroyExternalSemaphore_2 __pyx_string_tab[541]
#define __pyx_n_u_cuDevResourceGenerateDesc_2 __pyx_string_tab[542]
#define __pyx_n_u_cuDevSmResourceSplitByCount_2 __pyx_string_tab[543]
#define __pyx_n_u_cuDevSmResourceSplit_2 __pyx_string_tab[544]
#define __pyx_n_u_cuDeviceCanAccessPeer_2 __pyx_string_tab[545]
#define __pyx_n_u_cuDeviceComputeCapability_2 __pyx_string_tab[546]
#define __pyx_n_u_cuDeviceGetAttribute_2 __pyx_string_tab[547]
#define __pyx_n_u_cuDeviceGetByPCIBusId_2 __pyx_string_tab[548]
#define __pyx_n_u_cuDeviceGetCount_2 __pyx_string_tab[549]
#define __pyx_n_u_cuDeviceGetDefaultMemPool_2 __pyx_string_tab[550]
#define __pyx_n_u_cuDeviceGetDevResource_2 __pyx_string_tab[551]
#define __pyx_n_u_cuDeviceGetExecAffinitySupport_2 __pyx_string_tab[552]
#define __pyx_n_u_cuDeviceGetGraphMemAttribute_2 __pyx_string_tab[553]
#define __pyx_n_u_cuDeviceGetHostAtomicCapabilit __pyx_string_tab[554]
#define __pyx_n_u_cuDeviceGetLuid_2 __pyx_string_tab[555]
#define __pyx_n_u_cuDeviceGetMemPool_2 __pyx_string_tab[556]
#define __pyx_n_u_cuDeviceGetName_2 __pyx_string_tab[557]
#define __pyx_n_u_cuDeviceGetNvSciSyncAttributes_2 __pyx_string_tab[558]
#define __pyx_n_u_cuDeviceGetP2PAtomicCapabiliti __pyx_string_tab[559]
#define __pyx_n_u_cuDeviceGetP2PAttribute_2 __pyx_string_tab[560]
#define __pyx_n_u_cuDeviceGetPCIBusId_2 __pyx_string_tab[561]
#define __pyx_n_u_cuDeviceGetProperties_2 __pyx_string_tab[562]
#define __pyx_n_u_cuDeviceGetTexture1DLinearMaxW __pyx_string_tab[563]
#define __pyx_n_u_cuDeviceGetUuid_v2_2 __pyx_string_tab[564]
#define __pyx_n_u_cuDeviceGet_2 __pyx_string_tab[565]
#define __pyx_n_u_cuDeviceGraphMemTrim_2 __pyx_string_tab[566]
#define __pyx_n_u_cuDevicePrimaryCtxGetState_2 __pyx_string_tab[567]
#define __pyx_n_u_cuDevicePrimaryCtxRelease_v2_2 __pyx_string_tab[568]
#define __pyx_n_u_cuDevicePrimaryCtxReset_v2_2 __pyx_string_tab[569]
#define __pyx_n_u_cuDevicePrimaryCtxRetain_2 __pyx_string_tab[570]
#define __pyx_n_u_cuDevicePrimaryCtxSetFlags_v2_2 __pyx_string_tab[571]
#define __pyx_n_u_cuDeviceRegisterAsyncNotificat __pyx_string_tab[572]
#define __pyx_n_u_cuDeviceSetGraphMemAttribute_2 __pyx_string_tab[573]
#define __pyx_n_u_cuDeviceSetMemPool_2 __pyx_string_tab[574]
#define __pyx_n_u_cuDeviceTotalMem_v2_2 __pyx_string_tab[575]
#define __pyx_n_u_cuDeviceUnregisterAsyncNotific __pyx_string_tab[576]
#define __pyx_n_u_cuDriverGetVersion_2 __pyx_string_tab[577]
#define __pyx_n_u_cuEGLStreamConsumerAcquireFram __pyx_string_tab[578]
#define __pyx_n_u_cuEGLStreamConsumerConnectWith __pyx_string_tab[579]
#define __pyx_n_u_cuEGLStreamConsumerConnect_2 __pyx_string_tab[580]
#define __pyx_n_u_cuEGLStreamConsumerDisconnect_2 __pyx_string_tab[581]
#define __pyx_n_u_cuEGLStreamConsumerReleaseFram __pyx_string_tab[582]
#define __pyx_n_u_cuEGLStreamProducerConnect_2 __pyx_string_tab[583]
#define __pyx_n_u_cuEGLStreamProducerDisconnect_2 __pyx_string_tab[584]
#define __pyx_n_u_cuEGLStreamProducerPresentFram __pyx_string_tab[585]
#define __pyx_n_u_cuEGLStreamProducerReturnFrame_2 __pyx_string_tab[586]
#define __pyx_n_u_cuEventCreateFromEGLSync_2 __pyx_string_tab[587]
#define __pyx_n_u_cuEventCreate_2 __pyx_string_tab[588]
#define __pyx_n_u_cuEventDestroy_v2_2 __pyx_string_tab[589]
#define __pyx_n_u_cuEventElapsedTime_v2_2 __pyx_string_tab[590]
#define __pyx_n_u_cuEventQuery_2 __pyx_string_tab[591]
#define __pyx_n_u_cuEventRecordWithFlags_2 __pyx_string_tab[592]
#define __pyx_n_u_cuEventRecord_2 __pyx_string_tab[593]
#define __pyx_n_u_cuEventSynchronize_2 __pyx_string_tab[594]
#define __pyx_n_u_cuExternalMemoryGetMappedBuffe __pyx_string_tab[595]
#define __pyx_n_u_cuExternalMemoryGetMappedMipma __pyx_string_tab[596]
#define __pyx_n_u_cuFlushGPUDirectRDMAWrites_2 __pyx_string_tab[597]
#define __pyx_n_u_cuFuncGetAttribute_2 __pyx_string_tab[598]
#define __pyx_n_u_cuFuncGetModule_2 __pyx_string_tab[599]
#define __pyx_n_u_cuFuncGetName_2 __pyx_string_tab[600]
#define __pyx_n_u_cuFuncGetParamInfo_2 __pyx_string_tab[601]
#define __pyx_n_u_cuFuncIsLoaded_2 __pyx_string_tab[602]
#define __pyx_n_u_cuFuncLoad_2 __pyx_string_tab[603]
#define __pyx_n_u_cuFuncSetAttribute_2 __pyx_string_tab[604]
#define __pyx_n_u_cuFuncSetBlockShape_2 __pyx_string_tab[605]
#define __pyx_n_u_cuFuncSetCacheConfig_2 __pyx_string_tab[606]
#define __pyx_n_u_cuFuncSetSharedMemConfig_2 __pyx_string_tab[607]
#define __pyx_n_u_cuFuncSetSharedSize_2 __pyx_string_tab[608]
#define __pyx_n_u_cuGLGetDevices_v2_2 __pyx_string_tab[609]
#define __pyx_n_u_cuGetErrorName_2 __pyx_string_tab[610]
#define __pyx_n_u_cuGetErrorString_2 __pyx_string_tab[611]
#define __pyx_n_u_cuGetExportTable_2 __pyx_string_tab[612]
#define __pyx_n_u_cuGetProcAddress_v2_2 __pyx_string_tab[613]
#define __pyx_n_u_cuGraphAddBatchMemOpNode_2 __pyx_string_tab[614]
#define __pyx_n_u_cuGraphAddChildGraphNode_2 __pyx_string_tab[615]
#define __pyx_n_u_cuGraphAddDependencies_v2_2 __pyx_string_tab[616]
#define __pyx_n_u_cuGraphAddEmptyNode_2 __pyx_string_tab[617]
#define __pyx_n_u_cuGraphAddEventRecordNode_2 __pyx_string_tab[618]
#define __pyx_n_u_cuGraphAddEventWaitNode_2 __pyx_string_tab[619]
#define __pyx_n_u_cuGraphAddExternalSemaphoresSi __pyx_string_tab[620]
#define __pyx_n_u_cuGraphAddExternalSemaphoresWa __pyx_string_tab[621]
#define __pyx_n_u_cuGraphAddHostNode_2 __pyx_string_tab[622]
#define __pyx_n_u_cuGraphAddKernelNode_v2_2 __pyx_string_tab[623]
#define __pyx_n_u_cuGraphAddMemAllocNode_2 __pyx_string_tab[624]
#define __pyx_n_u_cuGraphAddMemFreeNode_2 __pyx_string_tab[625]
#define __pyx_n_u_cuGraphAddMemcpyNode_2 __pyx_string_tab[626]
#define __pyx_n_u_cuGraphAddMemsetNode_2 __pyx_string_tab[627]
#define __pyx_n_u_cuGraphAddNode_v2_2 __pyx_string_tab[628]
#define __pyx_n_u_cuGraphBatchMemOpNodeGetParams_2 __pyx_string_tab[629]
#define __pyx_n_u_cuGraphBatchMemOpNodeSetParams_2 __pyx_string_tab[630]
#define __pyx_n_u_cuGraphChildGraphNodeGetGraph_2 __pyx_string_tab[631]
#define __pyx_n_u_cuGraphClone_2 __pyx_string_tab[632]
#define __pyx_n_u_cuGraphConditionalHandleCreate_2 __pyx_string_tab[633]
#define __pyx_n_u_cuGraphCreate_2 __pyx_string_tab[634]
#define __pyx_n_u_cuGraphDebugDotPrint_2 __pyx_string_tab[635]
#define __pyx_n_u_cuGraphDestroyNode_2 __pyx_string_tab[636]
#define __pyx_n_u_cuGraphDestroy_2 __pyx_string_tab[637]
#define __pyx_n_u_cuGraphEventRecordNodeGetEvent_2 __pyx_string_tab[638]
#define __pyx_n_u_cuGraphEventRecordNodeSetEvent_2 __pyx_string_tab[639]
#define __pyx_n_u_cuGraphEventWaitNodeGetEvent_2 __pyx_string_tab[640]
#define __pyx_n_u_cuGraphEventWaitNodeSetEvent_2 __pyx_string_tab[641]
#define __pyx_n_u_cuGraphExecBatchMemOpNodeSetPa __pyx_string_tab[642]
#define __pyx_n_u_cuGraphExecChildGraphNodeSetPa __pyx_string_tab[643]
#define __pyx_n_u_cuGraphExecDestroy_2 __pyx_string_tab[644]
#define __pyx_n_u_cuGraphExecEventRecordNodeSetE __pyx_string_tab[645]
#define __pyx_n_u_cuGraphExecEventWaitNodeSetEve __pyx_string_tab[646]
#define __pyx_n_u_cuGraphExecExternalSemaphoresS __pyx_string_tab[647]
#define __pyx_n_u_cuGraphExecExternalSemaphoresW __pyx_string_tab[648]
#define __pyx_n_u_cuGraphExecGetFlags_2 __pyx_string_tab[649]
#define __pyx_n_u_cuGraphExecGetId_2 __pyx_string_tab[650]
#define __pyx_n_u_cuGraphExecHostNodeSetParams_2 __pyx_string_tab[651]
#define __pyx_n_u_cuGraphExecKernelNodeSetParams_2 __pyx_string_tab[652]
#define __pyx_n_u_cuGraphExecMemcpyNodeSetParams_2 __pyx_string_tab[653]
#define __pyx_n_u_cuGraphExecMemsetNodeSetParams_2 __pyx_string_tab[654]
#define __pyx_n_u_cuGraphExecNodeSetParams_2 __pyx_string_tab[655]
#define __pyx_n_u_cuGraphExecUpdate_v2_2 __pyx_string_tab[656]
#define __pyx_n_u_cuGraphExternalSemaphoresSigna __pyx_string_tab[657]
#define __pyx_n_u_cuGraphExternalSemaphoresSigna_2 __pyx_string_tab[658]
#define __pyx_n_u_cuGraphExternalSemaphoresWaitN __pyx_string_tab[659]
#define __pyx_n_u_cuGraphExternalSemaphoresWaitN_2 __pyx_string_tab[660]
#define __pyx_n_u_cuGraphGetEdges_v2_2 __pyx_string_tab[661]
#define __pyx_n_u_cuGraphGetId_2 __pyx_string_tab[662]
#define __pyx_n_u_cuGraphGetNodes_2 __pyx_string_tab[663]
#define __pyx_n_u_cuGraphGetRootNodes_2 __pyx_string_tab[664]
#define __pyx_n_u_cuGraphHostNodeGetParams_2 __pyx_string_tab[665]
#define __pyx_n_u_cuGraphHostNodeSetParams_2 __pyx_string_tab[666]
#define __pyx_n_u_cuGraphInstantiateWithFlags_2 __pyx_string_tab[667]
#define __pyx_n_u_cuGraphInstantiateWithParams_2 __pyx_string_tab[668]
#define __pyx_n_u_cuGraphKernelNodeCopyAttribute __pyx_string_tab[669]
#define __pyx_n_u_cuGraphKernelNodeGetAttribute_2 __pyx_string_tab[670]
#define __pyx_n_u_cuGraphKernelNodeGetParams_v2_2 __pyx_string_tab[671]
#define __pyx_n_u_cuGraphKernelNodeSetAttribute_2 __pyx_string_tab[672]
#define __pyx_n_u_cuGraphKernelNodeSetParams_v2_2 __pyx_string_tab[673]
#define __pyx_n_u_cuGraphLaunch_2 __pyx_string_tab[674]
#define __pyx_n_u_cuGraphMemAllocNodeGetParams_2 __pyx_string_tab[675]
#define __pyx_n_u_cuGraphMemFreeNodeGetParams_2 __pyx_string_tab[676]
#define __pyx_n_u_cuGraphMemcpyNodeGetParams_2 __pyx_string_tab[677]
#define __pyx_n_u_cuGraphMemcpyNodeSetParams_2 __pyx_string_tab[678]
#define __pyx_n_u_cuGraphMemsetNodeGetParams_2 __pyx_string_tab[679]
#define __pyx_n_u_cuGraphMemsetNodeSetParams_2 __pyx_string_tab[680]
#define __pyx_n_u_cuGraphNodeFindInClone_2 __pyx_string_tab[681]
#define __pyx_n_u_cuGraphNodeGetContainingGraph_2 __pyx_string_tab[682]
#define __pyx_n_u_cuGraphNodeGetDependencies_v2_2 __pyx_string_tab[683]
#define __pyx_n_u_cuGraphNodeGetDependentNodes_v __pyx_string_tab[684]
#define __pyx_n_u_cuGraphNodeGetEnabled_2 __pyx_string_tab[685]
#define __pyx_n_u_cuGraphNodeGetLocalId_2 __pyx_string_tab[686]
#define __pyx_n_u_cuGraphNodeGetToolsId_2 __pyx_string_tab[687]
#define __pyx_n_u_cuGraphNodeGetType_2 __pyx_string_tab[688]
#define __pyx_n_u_cuGraphNodeSetEnabled_2 __pyx_string_tab[689]
#define __pyx_n_u_cuGraphNodeSetParams_2 __pyx_string_tab[690]
#define __pyx_n_u_cuGraphReleaseUserObject_2 __pyx_string_tab[691]
#define __pyx_n_u_cuGraphRemoveDependencies_v2_2 __pyx_string_tab[692]
#define __pyx_n_u_cuGraphRetainUserObject_2 __pyx_string_tab[693]
#define __pyx_n_u_cuGraphUpload_2 __pyx_string_tab[694]
#define __pyx_n_u_cuGraphicsEGLRegisterImage_2 __pyx_string_tab[695]
#define __pyx_n_u_cuGraphicsGLRegisterBuffer_2 __pyx_string_tab[696]
#define __pyx_n_u_cuGraphicsGLRegisterImage_2 __pyx_string_tab[697]
#define __pyx_n_u_cuGraphicsMapResources_2 __pyx_string_tab[698]
#define __pyx_n_u_cuGraphicsResourceGetMappedEgl __pyx_string_tab[699]
#define __pyx_n_u_cuGraphicsResourceGetMappedMip __pyx_string_tab[700]
#define __pyx_n_u_cuGraphicsResourceGetMappedPoi __pyx_string_tab[701]
#define __pyx_n_u_cuGraphicsResourceSetMapFlags_2 __pyx_string_tab[702]
#define __pyx_n_u_cuGraphicsSubResourceGetMapped __pyx_string_tab[703]
#define __pyx_n_u_cuGraphicsUnmapResources_2 __pyx_string_tab[704]
#define __pyx_n_u_cuGraphicsUnregisterResource_2 __pyx_string_tab[705]
#define __pyx_n_u_cuGraphicsVDPAURegisterOutputS __pyx_string_tab[706]
#define __pyx_n_u_cuGraphicsVDPAURegisterVideoSu __pyx_string_tab[707]
#define __pyx_n_u_cuGreenCtxCreate_2 __pyx_string_tab[708]
#define __pyx_n_u_cuGreenCtxDestroy_2 __pyx_string_tab[709]
#define __pyx_n_u_cuGreenCtxGetDevResource_2 __pyx_string_tab[710]
#define __pyx_n_u_cuGreenCtxGetId_2 __pyx_string_tab[711]
#define __pyx_n_u_cuGreenCtxRecordEvent_2 __pyx_string_tab[712]
#define __pyx_n_u_cuGreenCtxStreamCreate_2 __pyx_string_tab[713]
#define __pyx_n_u_cuGreenCtxWaitEvent_2 __pyx_string_tab[714]
#define __pyx_n_u_cuImportExternalMemory_2 __pyx_string_tab[715]
#define __pyx_n_u_cuImportExternalSemaphore_2 __pyx_string_tab[716]
#define __pyx_n_u_cuInit_2 __pyx_string_tab[717]
#define __pyx_n_u_cuIpcCloseMemHandle_2 __pyx_string_tab[718]
#define __pyx_n_u_cuIpcGetEventHandle_2 __pyx_string_tab[719]
#define __pyx_n_u_cuIpcGetMemHandle_2 __pyx_string_tab[720]
#define __pyx_n_u_cuIpcOpenEventHandle_2 __pyx_string_tab[721]
#define __pyx_n_u_cuIpcOpenMemHandle_v2_2 __pyx_string_tab[722]
#define __pyx_n_u_cuKernelGetAttribute_2 __pyx_string_tab[723]
#define __pyx_n_u_cuKernelGetFunction_2 __pyx_string_tab[724]
#define __pyx_n_u_cuKernelGetLibrary_2 __pyx_string_tab[725]
#define __pyx_n_u_cuKernelGetName_2 __pyx_string_tab[726]
#define __pyx_n_u_cuKernelGetParamInfo_2 __pyx_string_tab[727]
#define __pyx_n_u_cuKernelSetAttribute_2 __pyx_string_tab[728]
#define __pyx_n_u_cuKernelSetCacheConfig_2 __pyx_string_tab[729]
#define __pyx_n_u_cuLaunchCooperativeKernelMulti __pyx_string_tab[730]
#define __pyx_n_u_cuLaunchCooperativeKernel_2 __pyx_string_tab[731]
#define __pyx_n_u_cuLaunchGridAsync_2 __pyx_string_tab[732]
#define __pyx_n_u_cuLaunchGrid_2 __pyx_string_tab[733]
#define __pyx_n_u_cuLaunchHostFunc_2 __pyx_string_tab[734]
#define __pyx_n_u_cuLaunchKernelEx_2 __pyx_string_tab[735]
#define __pyx_n_u_cuLaunchKernel_2 __pyx_string_tab[736]
#define __pyx_n_u_cuLaunch_2 __pyx_string_tab[737]
#define __pyx_n_u_cuLibraryEnumerateKernels_2 __pyx_string_tab[738]
#define __pyx_n_u_cuLibraryGetGlobal_2 __pyx_string_tab[739]
#define __pyx_n_u_cuLibraryGetKernelCount_2 __pyx_string_tab[740]
#define __pyx_n_u_cuLibraryGetKernel_2 __pyx_string_tab[741]
#define __pyx_n_u_cuLibraryGetManaged_2 __pyx_string_tab[742]
#define __pyx_n_u_cuLibraryGetModule_2 __pyx_string_tab[743]
#define __pyx_n_u_cuLibraryGetUnifiedFunction_2 __pyx_string_tab[744]
#define __pyx_n_u_cuLibraryLoadData_2 __pyx_string_tab[745]
#define __pyx_n_u_cuLibraryLoadFromFile_2 __pyx_string_tab[746]
#define __pyx_n_u_cuLibraryUnload_2 __pyx_string_tab[747]
#define __pyx_n_u_cuLinkAddData_v2_2 __pyx_string_tab[748]
#define __pyx_n_u_cuLinkAddFile_v2_2 __pyx_string_tab[749]
#define __pyx_n_u_cuLinkComplete_2 __pyx_string_tab[750]
#define __pyx_n_u_cuLinkCreate_v2_2 __pyx_string_tab[751]
#define __pyx_n_u_cuLinkDestroy_2 __pyx_string_tab[752]
#define __pyx_n_u_cuLogsCurrent_2 __pyx_string_tab[753]
#define __pyx_n_u_cuLogsDumpToFile_2 __pyx_string_tab[754]
#define __pyx_n_u_cuLogsDumpToMemory_2 __pyx_string_tab[755]
#define __pyx_n_u_cuLogsRegisterCallback_2 __pyx_string_tab[756]
#define __pyx_n_u_cuLogsUnregisterCallback_2 __pyx_string_tab[757]
#define __pyx_n_u_cuMemAddressFree_2 __pyx_string_tab[758]
#define __pyx_n_u_cuMemAddressReserve_2 __pyx_string_tab[759]
#define __pyx_n_u_cuMemAdvise_v2_2 __pyx_string_tab[760]
#define __pyx_n_u_cuMemAllocAsync_2 __pyx_string_tab[761]
#define __pyx_n_u_cuMemAllocFromPoolAsync_2 __pyx_string_tab[762]
#define __pyx_n_u_cuMemAllocHost_v2_2 __pyx_string_tab[763]
#define __pyx_n_u_cuMemAllocManaged_2 __pyx_string_tab[764]
#define __pyx_n_u_cuMemAllocPitch_v2_2 __pyx_string_tab[765]
#define __pyx_n_u_cuMemAlloc_v2_2 __pyx_string_tab[766]
#define __pyx_n_u_cuMemBatchDecompressAsync_2 __pyx_string_tab[767]
#define __pyx_n_u_cuMemCreate_2 __pyx_string_tab[768]
#define __pyx_n_u_cuMemDiscardAndPrefetchBatchAs __pyx_string_tab[769]
#define __pyx_n_u_cuMemDiscardBatchAsync_2 __pyx_string_tab[770]
#define __pyx_n_u_cuMemExportToShareableHandle_2 __pyx_string_tab[771]
#define __pyx_n_u_cuMemFreeAsync_2 __pyx_string_tab[772]
#define __pyx_n_u_cuMemFreeHost_2 __pyx_string_tab[773]
#define __pyx_n_u_cuMemFree_v2_2 __pyx_string_tab[774]
#define __pyx_n_u_cuMemGetAccess_2 __pyx_string_tab[775]
#define __pyx_n_u_cuMemGetAddressRange_v2_2 __pyx_string_tab[776]
#define __pyx_n_u_cuMemGetAllocationGranularity_2 __pyx_string_tab[777]
#define __pyx_n_u_cuMemGetAllocationPropertiesFr __pyx_string_tab[778]
#define __pyx_n_u_cuMemGetDefaultMemPool_2 __pyx_string_tab[779]
#define __pyx_n_u_cuMemGetHandleForAddressRange_2 __pyx_string_tab[780]
#define __pyx_n_u_cuMemGetInfo_v2_2 __pyx_string_tab[781]
#define __pyx_n_u_cuMemGetMemPool_2 __pyx_string_tab[782]
#define __pyx_n_u_cuMemHostAlloc_2 __pyx_string_tab[783]
#define __pyx_n_u_cuMemHostGetDevicePointer_v2_2 __pyx_string_tab[784]
#define __pyx_n_u_cuMemHostGetFlags_2 __pyx_string_tab[785]
#define __pyx_n_u_cuMemHostRegister_v2_2 __pyx_string_tab[786]
#define __pyx_n_u_cuMemHostUnregister_2 __pyx_string_tab[787]
#define __pyx_n_u_cuMemImportFromShareableHandle_2 __pyx_string_tab[788]
#define __pyx_n_u_cuMemMapArrayAsync_2 __pyx_string_tab[789]
#define __pyx_n_u_cuMemMap_2 __pyx_string_tab[790]
#define __pyx_n_u_cuMemPoolCreate_2 __pyx_string_tab[791]
#define __pyx_n_u_cuMemPoolDestroy_2 __pyx_string_tab[792]
#define __pyx_n_u_cuMemPoolExportPointer_2 __pyx_string_tab[793]
#define __pyx_n_u_cuMemPoolExportToShareableHand __pyx_string_tab[794]
#define __pyx_n_u_cuMemPoolGetAccess_2 __pyx_string_tab[795]
#define __pyx_n_u_cuMemPoolGetAttribute_2 __pyx_string_tab[796]
#define __pyx_n_u_cuMemPoolImportFromShareableHa __pyx_string_tab[797]
#define __pyx_n_u_cuMemPoolImportPointer_2 __pyx_string_tab[798]
#define __pyx_n_u_cuMemPoolSetAccess_2 __pyx_string_tab[799]
#define __pyx_n_u_cuMemPoolSetAttribute_2 __pyx_string_tab[800]
#define __pyx_n_u_cuMemPoolTrimTo_2 __pyx_string_tab[801]
#define __pyx_n_u_cuMemPrefetchAsync_v2_2 __pyx_string_tab[802]
#define __pyx_n_u_cuMemPrefetchBatchAsync_2 __pyx_string_tab[803]
#define __pyx_n_u_cuMemRangeGetAttribute_2 __pyx_string_tab[804]
#define __pyx_n_u_cuMemRangeGetAttributes_2 __pyx_string_tab[805]
#define __pyx_n_u_cuMemRelease_2 __pyx_string_tab[806]
#define __pyx_n_u_cuMemRetainAllocationHandle_2 __pyx_string_tab[807]
#define __pyx_n_u_cuMemSetAccess_2 __pyx_string_tab[808]
#define __pyx_n_u_cuMemSetMemPool_2 __pyx_string_tab[809]
#define __pyx_n_u_cuMemUnmap_2 __pyx_string_tab[810]
#define __pyx_n_u_cuMemcpy2DAsync_v2_2 __pyx_string_tab[811]
#define __pyx_n_u_cuMemcpy2DUnaligned_v2_2 __pyx_string_tab[812]
#define __pyx_n_u_cuMemcpy2D_v2_2 __pyx_string_tab[813]
#define __pyx_n_u_cuMemcpy3DAsync_v2_2 __pyx_string_tab[814]
#define __pyx_n_u_cuMemcpy3DBatchAsync_v2_2 __pyx_string_tab[815]
#define __pyx_n_u_cuMemcpy3DPeerAsync_2 __pyx_string_tab[816]
#define __pyx_n_u_cuMemcpy3DPeer_2 __pyx_string_tab[817]
#define __pyx_n_u_cuMemcpy3D_v2_2 __pyx_string_tab[818]
#define __pyx_n_u_cuMemcpyAsync_2 __pyx_string_tab[819]
#define __pyx_n_u_cuMemcpyAtoA_v2_2 __pyx_string_tab[820]
#define __pyx_n_u_cuMemcpyAtoD_v2_2 __pyx_string_tab[821]
#define __pyx_n_u_cuMemcpyAtoHAsync_v2_2 __pyx_string_tab[822]
#define __pyx_n_u_cuMemcpyAtoH_v2_2 __pyx_string_tab[823]
#define __pyx_n_u_cuMemcpyBatchAsync_v2_2 __pyx_string_tab[824]
#define __pyx_n_u_cuMemcpyDtoA_v2_2 __pyx_string_tab[825]
#define __pyx_n_u_cuMemcpyDtoDAsync_v2_2 __pyx_string_tab[826]
#define __pyx_n_u_cuMemcpyDtoD_v2_2 __pyx_string_tab[827]
#define __pyx_n_u_cuMemcpyDtoHAsync_v2_2 __pyx_string_tab[828]
#define __pyx_n_u_cuMemcpyDtoH_v2_2 __pyx_string_tab[829]
#define __pyx_n_u_cuMemcpyHtoAAsync_v2_2 __pyx_string_tab[830]
#define __pyx_n_u_cuMemcpyHtoA_v2_2 __pyx_string_tab[831]
#define __pyx_n_u_cuMemcpyHtoDAsync_v2_2 __pyx_string_tab[832]
#define __pyx_n_u_cuMemcpyHtoD_v2_2 __pyx_string_tab[833]
#define __pyx_n_u_cuMemcpyPeerAsync_2 __pyx_string_tab[834]
#define __pyx_n_u_cuMemcpyPeer_2 __pyx_string_tab[835]
#define __pyx_n_u_cuMemcpy_2 __pyx_string_tab[836]
#define __pyx_n_u_cuMemsetD16Async_2 __pyx_string_tab[837]
#define __pyx_n_u_cuMemsetD16_v2_2 __pyx_string_tab[838]
#define __pyx_n_u_cuMemsetD2D16Async_2 __pyx_string_tab[839]
#define __pyx_n_u_cuMemsetD2D16_v2_2 __pyx_string_tab[840]
#define __pyx_n_u_cuMemsetD2D32Async_2 __pyx_string_tab[841]
#define __pyx_n_u_cuMemsetD2D32_v2_2 __pyx_string_tab[842]
#define __pyx_n_u_cuMemsetD2D8Async_2 __pyx_string_tab[843]
#define __pyx_n_u_cuMemsetD2D8_v2_2 __pyx_string_tab[844]
#define __pyx_n_u_cuMemsetD32Async_2 __pyx_string_tab[845]
#define __pyx_n_u_cuMemsetD32_v2_2 __pyx_string_tab[846]
#define __pyx_n_u_cuMemsetD8Async_2 __pyx_string_tab[847]
#define __pyx_n_u_cuMemsetD8_v2_2 __pyx_string_tab[848]
#define __pyx_n_u_cuMipmappedArrayCreate_2 __pyx_string_tab[849]
#define __pyx_n_u_cuMipmappedArrayDestroy_2 __pyx_string_tab[850]
#define __pyx_n_u_cuMipmappedArrayGetLevel_2 __pyx_string_tab[851]
#define __pyx_n_u_cuMipmappedArrayGetMemoryRequi __pyx_string_tab[852]
#define __pyx_n_u_cuMipmappedArrayGetSparsePrope __pyx_string_tab[853]
#define __pyx_n_u_cuModuleEnumerateFunctions_2 __pyx_string_tab[854]
#define __pyx_n_u_cuModuleGetFunctionCount_2 __pyx_string_tab[855]
#define __pyx_n_u_cuModuleGetFunction_2 __pyx_string_tab[856]
#define __pyx_n_u_cuModuleGetGlobal_v2_2 __pyx_string_tab[857]
#define __pyx_n_u_cuModuleGetLoadingMode_2 __pyx_string_tab[858]
#define __pyx_n_u_cuModuleGetSurfRef_2 __pyx_string_tab[859]
#define __pyx_n_u_cuModuleGetTexRef_2 __pyx_string_tab[860]
#define __pyx_n_u_cuModuleLoadDataEx_2 __pyx_string_tab[861]
#define __pyx_n_u_cuModuleLoadData_2 __pyx_string_tab[862]
#define __pyx_n_u_cuModuleLoadFatBinary_2 __pyx_string_tab[863]
#define __pyx_n_u_cuModuleLoad_2 __pyx_string_tab[864]
#define __pyx_n_u_cuModuleUnload_2 __pyx_string_tab[865]
#define __pyx_n_u_cuMulticastAddDevice_2 __pyx_string_tab[866]
#define __pyx_n_u_cuMulticastBindAddr_2 __pyx_string_tab[867]
#define __pyx_n_u_cuMulticastBindAddr_v2_2 __pyx_string_tab[868]
#define __pyx_n_u_cuMulticastBindMem_2 __pyx_string_tab[869]
#define __pyx_n_u_cuMulticastBindMem_v2_2 __pyx_string_tab[870]
#define __pyx_n_u_cuMulticastCreate_2 __pyx_string_tab[871]
#define __pyx_n_u_cuMulticastGetGranularity_2 __pyx_string_tab[872]
#define __pyx_n_u_cuMulticastUnbind_2 __pyx_string_tab[873]
#define __pyx_n_u_cuOccupancyAvailableDynamicSMe __pyx_string_tab[874]
#define __pyx_n_u_cuOccupancyMaxActiveBlocksPerM __pyx_string_tab[875]
#define __pyx_n_u_cuOccupancyMaxActiveBlocksPerM_2 __pyx_string_tab[876]
#define __pyx_n_u_cuOccupancyMaxActiveClusters_2 __pyx_string_tab[877]
#define __pyx_n_u_cuOccupancyMaxPotentialBlockSi __pyx_string_tab[878]
#define __pyx_n_u_cuOccupancyMaxPotentialBlockSi_2 __pyx_string_tab[879]
#define __pyx_n_u_cuOccupancyMaxPotentialCluster __pyx_string_tab[880]
#define __pyx_n_u_cuParamSetSize_2 __pyx_string_tab[881]
#define __pyx_n_u_cuParamSetTexRef_2 __pyx_string_tab[882]
#define __pyx_n_u_cuParamSetf_2 __pyx_string_tab[883]
#define __pyx_n_u_cuParamSeti_2 __pyx_string_tab[884]
#define __pyx_n_u_cuParamSetv_2 __pyx_string_tab[885]
#define __pyx_n_u_cuPointerGetAttribute_2 __pyx_string_tab[886]
#define __pyx_n_u_cuPointerGetAttributes_2 __pyx_string_tab[887]
#define __pyx_n_u_cuPointerSetAttribute_2 __pyx_string_tab[888]
#define __pyx_n_u_cuProfilerStart_2 __pyx_string_tab[889]
#define __pyx_n_u_cuProfilerStop_2 __pyx_string_tab[890]
#define __pyx_n_u_cuSignalExternalSemaphoresAsyn __pyx_string_tab[891]
#define __pyx_n_u_cuStreamAddCallback_2 __pyx_string_tab[892]
#define __pyx_n_u_cuStreamAttachMemAsync_2 __pyx_string_tab[893]
#define __pyx_n_u_cuStreamBatchMemOp_v2_2 __pyx_string_tab[894]
#define __pyx_n_u_cuStreamBeginCaptureToGraph_2 __pyx_string_tab[895]
#define __pyx_n_u_cuStreamBeginCapture_v2_2 __pyx_string_tab[896]
#define __pyx_n_u_cuStreamCopyAttributes_2 __pyx_string_tab[897]
#define __pyx_n_u_cuStreamCreateWithPriority_2 __pyx_string_tab[898]
#define __pyx_n_u_cuStreamCreate_2 __pyx_string_tab[899]
#define __pyx_n_u_cuStreamDestroy_v2_2 __pyx_string_tab[900]
#define __pyx_n_u_cuStreamEndCapture_2 __pyx_string_tab[901]
#define __pyx_n_u_cuStreamGetAttribute_2 __pyx_string_tab[902]
#define __pyx_n_u_cuStreamGetCaptureInfo_v3_2 __pyx_string_tab[903]
#define __pyx_n_u_cuStreamGetCtx_2 __pyx_string_tab[904]
#define __pyx_n_u_cuStreamGetCtx_v2_2 __pyx_string_tab[905]
#define __pyx_n_u_cuStreamGetDevResource_2 __pyx_string_tab[906]
#define __pyx_n_u_cuStreamGetDevice_2 __pyx_string_tab[907]
#define __pyx_n_u_cuStreamGetFlags_2 __pyx_string_tab[908]
#define __pyx_n_u_cuStreamGetGreenCtx_2 __pyx_string_tab[909]
#define __pyx_n_u_cuStreamGetId_2 __pyx_string_tab[910]
#define __pyx_n_u_cuStreamGetPriority_2 __pyx_string_tab[911]
#define __pyx_n_u_cuStreamIsCapturing_2 __pyx_string_tab[912]
#define __pyx_n_u_cuStreamQuery_2 __pyx_string_tab[913]
#define __pyx_n_u_cuStreamSetAttribute_2 __pyx_string_tab[914]
#define __pyx_n_u_cuStreamSynchronize_2 __pyx_string_tab[915]
#define __pyx_n_u_cuStreamUpdateCaptureDependenc __pyx_string_tab[916]
#define __pyx_n_u_cuStreamWaitEvent_2 __pyx_string_tab[917]
#define __pyx_n_u_cuStreamWaitValue32_v2_2 __pyx_string_tab[918]
#define __pyx_n_u_cuStreamWaitValue64_v2_2 __pyx_string_tab[919]
#define __pyx_n_u_cuStreamWriteValue32_v2_2 __pyx_string_tab[920]
#define __pyx_n_u_cuStreamWriteValue64_v2_2 __pyx_string_tab[921]
#define __pyx_n_u_cuSurfObjectCreate_2 __pyx_string_tab[922]
#define __pyx_n_u_cuSurfObjectDestroy_2 __pyx_string_tab[923]
#define __pyx_n_u_cuSurfObjectGetResourceDesc_2 __pyx_string_tab[924]
#define __pyx_n_u_cuSurfRefGetArray_2 __pyx_string_tab[925]
#define __pyx_n_u_cuSurfRefSetArray_2 __pyx_string_tab[926]
#define __pyx_n_u_cuTensorMapEncodeIm2colWide_2 __pyx_string_tab[927]
#define __pyx_n_u_cuTensorMapEncodeIm2col_2 __pyx_string_tab[928]
#define __pyx_n_u_cuTensorMapEncodeTiled_2 __pyx_string_tab[929]
#define __pyx_n_u_cuTensorMapReplaceAddress_2 __pyx_string_tab[930]
#define __pyx_n_u_cuTexObjectCreate_2 __pyx_string_tab[931]
#define __pyx_n_u_cuTexObjectDestroy_2 __pyx_string_tab[932]
#define __pyx_n_u_cuTexObjectGetResourceDesc_2 __pyx_string_tab[933]
#define __pyx_n_u_cuTexObjectGetResourceViewDesc_2 __pyx_string_tab[934]
#define __pyx_n_u_cuTexObjectGetTextureDesc_2 __pyx_string_tab[935]
#define __pyx_n_u_cuTexRefCreate_2 __pyx_string_tab[936]
#define __pyx_n_u_cuTexRefDestroy_2 __pyx_string_tab[937]
#define __pyx_n_u_cuTexRefGetAddressMode_2 __pyx_string_tab[938]
#define __pyx_n_u_cuTexRefGetAddress_v2_2 __pyx_string_tab[939]
#define __pyx_n_u_cuTexRefGetArray_2 __pyx_string_tab[940]
#define __pyx_n_u_cuTexRefGetBorderColor_2 __pyx_string_tab[941]
#define __pyx_n_u_cuTexRefGetFilterMode_2 __pyx_string_tab[942]
#define __pyx_n_u_cuTexRefGetFlags_2 __pyx_string_tab[943]
#define __pyx_n_u_cuTexRefGetFormat_2 __pyx_string_tab[944]
#define __pyx_n_u_cuTexRefGetMaxAnisotropy_2 __pyx_string_tab[945]
#define __pyx_n_u_cuTexRefGetMipmapFilterMode_2 __pyx_string_tab[946]
#define __pyx_n_u_cuTexRefGetMipmapLevelBias_2 __pyx_string_tab[947]
#define __pyx_n_u_cuTexRefGetMipmapLevelClamp_2 __pyx_string_tab[948]
#define __pyx_n_u_cuTexRefGetMipmappedArray_2 __pyx_string_tab[949]
#define __pyx_n_u_cuTexRefSetAddress2D_v3_2 __pyx_string_tab[950]
#define __pyx_n_u_cuTexRefSetAddressMode_2 __pyx_string_tab[951]
#define __pyx_n_u_cuTexRefSetAddress_v2_2 __pyx_string_tab[952]
#define __pyx_n_u_cuTexRefSetArray_2 __pyx_string_tab[953]
#define __pyx_n_u_cuTexRefSetBorderColor_2 __pyx_string_tab[954]
#define __pyx_n_u_cuTexRefSetFilterMode_2 __pyx_string_tab[955]
#define __pyx_n_u_cuTexRefSetFlags_2 __pyx_string_tab[956]
#define __pyx_n_u_cuTexRefSetFormat_2 __pyx_string_tab[957]
#define __pyx_n_u_cuTexRefSetMaxAnisotropy_2 __pyx_string_tab[958]
#define __pyx_n_u_cuTexRefSetMipmapFilterMode_2 __pyx_string_tab[959]
#define __pyx_n_u_cuTexRefSetMipmapLevelBias_2 __pyx_string_tab[960]
#define __pyx_n_u_cuTexRefSetMipmapLevelClamp_2 __pyx_string_tab[961]
#define __pyx_n_u_cuTexRefSetMipmappedArray_2 __pyx_string_tab[962]
#define __pyx_n_u_cuThreadExchangeStreamCaptureM __pyx_string_tab[963]
#define __pyx_n_u_cuUserObjectCreate_2 __pyx_string_tab[964]
#define __pyx_n_u_cuUserObjectRelease_2 __pyx_string_tab[965]
#define __pyx_n_u_cuUserObjectRetain_2 __pyx_string_tab[966]
#define __pyx_n_u_cuVDPAUCtxCreate_v2_2 __pyx_string_tab[967]
#define __pyx_n_u_cuVDPAUGetDevice_2 __pyx_string_tab[968]
#define __pyx_n_u_cuWaitExternalSemaphoresAsync_2 __pyx_string_tab[969]
#define __pyx_n_u_cuda_bindings__bindings_cydriver __pyx_string_tab[970]
#define __pyx_n_u_default __pyx_string_tab[971]
#define __pyx_n_u_encoding __pyx_string_tab[972]
#define __pyx_n_u_enter __pyx_string_tab[973]
#define __pyx_n_u_exit __pyx_string_tab[974]
#define __pyx_n_u_func __pyx_string_tab[975]
#define __pyx_n_u_getenv __pyx_string_tab[976]
#define __pyx_n_u_inspect_function_pointer __pyx_string_tab[977]
#define __pyx_n_u_inspect_function_pointers __pyx_string_tab[978]
#define __pyx_n_u_is_coroutine __pyx_string_tab[979]
#define __pyx_n_u_items __pyx_string_tab[980]
#define __pyx_n_u_main __pyx_string_tab[981]
#define __pyx_n_u_maxsize __pyx_string_tab[982]
#define __pyx_n_u_module __pyx_string_tab[983]
#define __pyx_n_u_name __pyx_string_tab[984]
#define __pyx_n_u_name_2 __pyx_string_tab[985]
#define __pyx_n_u_os __pyx_string_tab[986]
#define __pyx_n_u_pop __pyx_string_tab[987]
#define __pyx_n_u_pyx_capi __pyx_string_tab[988]
#define __pyx_n_u_qualname __pyx_string_tab[989]
#define __pyx_n_u_set_name __pyx_string_tab[990]
#define __pyx_n_u_setdefault __pyx_string_tab[991]
#define __pyx_n_u_sys __pyx_string_tab[992]
#define __pyx_n_u_test __pyx_string_tab[993]
#define __pyx_n_u_threading __pyx_string_tab[994]
#define __pyx_n_u_values __pyx_string_tab[995]
#define __pyx_kp_b_CUresult_CUDA_ARRAY3D_DESCRIPTOR __pyx_string_tab[996]
#define __pyx_kp_b_iso88591_z_A_a_9AQ __pyx_string_tab[997]
#define __pyx_kp_b_iso88591_z_q_Q_1_z_z_Q_Ja_1_Q_Ja_3_Q_Zq __pyx_string_tab[998]
#define __pyx_int_0 __pyx_number_tab[0]
#define __pyx_int_4294967296 __pyx_number_tab[1]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  for (int i=0; i<1; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<2; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<999; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<2; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  for (int i=0; i<1; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<2; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<999; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<2; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "cuda/bindings/_bindings/cydriver.pyx":498
 * cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL
 * 
 * cdef int _cuPythonInit() except -1 nogil:             # <<<<<<<<<<<<<<
 *     global __cuPythonInit
 * 
*/

static int __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPythonInit(void) {
  int __pyx_v_usePTDS;
  char __pyx_v_libPath[260];
  int __pyx_v_status;
  PyObject *__pyx_v_path = NULL;
  void *__pyx_v_handle;
  __pyx_t_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2_T __pyx_v__F_cuGetProcAddress_v2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  char const *__pyx_t_13;
  CUresult __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  int __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuPythonInit", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":504
 *     cdef char libPath[260]
 * 
 *     with gil, __symbol_lock:             # <<<<<<<<<<<<<<
 *         usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {
        /*with:*/ {
          __pyx_t_1 = __Pyx_PyObject_LookupSpecial(__pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock, __pyx_mstate_global->__pyx_n_u_exit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 504, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_3 = NULL;
          __pyx_t_4 = __Pyx_PyObject_LookupSpecial(__pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 504, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_5 = 1;
          #if CYTHON_UNPACK_METHODS
          if (likely(PyMethod_Check(__pyx_t_4))) {
            __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
            assert(__pyx_t_3);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
            __pyx_t_5 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
            __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 504, __pyx_L6_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          /*try:*/ {
            {
              __Pyx_PyThreadState_declare
              __Pyx_PyThreadState_assign
              __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
              __Pyx_XGOTREF(__pyx_t_6);
              __Pyx_XGOTREF(__pyx_t_7);
              __Pyx_XGOTREF(__pyx_t_8);
              /*try:*/ {

                /* "cuda/bindings/_bindings/cydriver.pyx":505
 * 
 *     with gil, __symbol_lock:
 *         usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)             # <<<<<<<<<<<<<<
 * 
 *         # Load library
*/
                __pyx_t_4 = NULL;
                __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 505, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_3);
                __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_getenv); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 505, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_9);
                __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
                __pyx_t_5 = 1;
                #if CYTHON_UNPACK_METHODS
                if (unlikely(PyMethod_Check(__pyx_t_9))) {
                  __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9);
                  assert(__pyx_t_4);
                  PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
                  __Pyx_INCREF(__pyx_t_4);
                  __Pyx_INCREF(__pyx__function);
                  __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
                  __pyx_t_5 = 0;
                }
                #endif
                {
                  PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUDA_PYTHON_CUDA_PER_THREAD_DEFA};
                  __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 505, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_3);
                  if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_default, __pyx_mstate_global->__pyx_int_0, __pyx_t_3, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 505, __pyx_L10_error)
                  __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
                  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
                  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
                  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
                  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 505, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_2);
                }
                __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 505, __pyx_L10_error)
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                __pyx_v_usePTDS = __pyx_t_10;

                /* "cuda/bindings/_bindings/cydriver.pyx":508
 * 
 *         # Load library
 *         libPath[0] = 0             # <<<<<<<<<<<<<<
 *         status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32)
 *         if status == 0 and len(libPath) != 0:
*/
                (__pyx_v_libPath[0]) = 0;

                /* "cuda/bindings/_bindings/cydriver.pyx":509
 *         # 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')
*/
                __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_2);
                __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_maxsize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 509, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_9);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_mstate_global->__pyx_int_4294967296, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L10_error)
                __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
                __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 509, __pyx_L10_error)
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                __pyx_v_status = getCUDALibraryPath(__pyx_v_libPath, __pyx_t_10);

                /* "cuda/bindings/_bindings/cydriver.pyx":510
 *         libPath[0] = 0
 *         status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32)
 *         if status == 0 and len(libPath) != 0:             # <<<<<<<<<<<<<<
 *             path = libPath.decode('utf-8')
 *         else:
*/
                __pyx_t_11 = (__pyx_v_status == 0);
                if (__pyx_t_11) {
                } else {
                  __pyx_t_10 = __pyx_t_11;
                  goto __pyx_L17_bool_binop_done;
                }
                __pyx_t_12 = __Pyx_ssize_strlen(__pyx_v_libPath); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(0, 510, __pyx_L10_error)
                __pyx_t_11 = (__pyx_t_12 != 0);
                __pyx_t_10 = __pyx_t_11;
                __pyx_L17_bool_binop_done:;
                if (__pyx_t_10) {

                  /* "cuda/bindings/_bindings/cydriver.pyx":511
 *         status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32)
 *         if status == 0 and len(libPath) != 0:
 *             path = libPath.decode('utf-8')             # <<<<<<<<<<<<<<
 *         else:
 *             path = 'libcuda.so.1'
*/
                  __pyx_t_12 = __Pyx_ssize_strlen(__pyx_v_libPath); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(0, 511, __pyx_L10_error)
                  __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_libPath, 0, __pyx_t_12, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 511, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_2);
                  __pyx_v_path = __pyx_t_2;
                  __pyx_t_2 = 0;

                  /* "cuda/bindings/_bindings/cydriver.pyx":510
 *         libPath[0] = 0
 *         status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32)
 *         if status == 0 and len(libPath) != 0:             # <<<<<<<<<<<<<<
 *             path = libPath.decode('utf-8')
 *         else:
*/
                  goto __pyx_L16;
                }

                /* "cuda/bindings/_bindings/cydriver.pyx":513
 *             path = libPath.decode('utf-8')
 *         else:
 *             path = 'libcuda.so.1'             # <<<<<<<<<<<<<<
 *         handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
 *         if handle == NULL:
*/
                /*else*/ {
                  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_libcuda_so_1);
                  __pyx_v_path = __pyx_mstate_global->__pyx_kp_u_libcuda_so_1;
                }
                __pyx_L16:;

                /* "cuda/bindings/_bindings/cydriver.pyx":514
 *         else:
 *             path = 'libcuda.so.1'
 *         handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)             # <<<<<<<<<<<<<<
 *         if handle == NULL:
 *             raise RuntimeError('Failed to dlopen ' + path)
*/
                __pyx_t_9 = NULL;
                __pyx_t_5 = 1;
                {
                  PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_v_path};
                  __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 514, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_3);
                  if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_encoding, __pyx_mstate_global->__pyx_kp_u_utf_8, __pyx_t_3, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 514, __pyx_L10_error)
                  __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
                  __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
                  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
                  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 514, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_2);
                }
                __pyx_t_13 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(0, 514, __pyx_L10_error)
                __pyx_v_handle = dlopen(__pyx_t_13, RTLD_NOW);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

                /* "cuda/bindings/_bindings/cydriver.pyx":515
 *             path = 'libcuda.so.1'
 *         handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
 *         if handle == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Failed to dlopen ' + path)
 * 
*/
                __pyx_t_10 = (__pyx_v_handle == NULL);
                if (unlikely(__pyx_t_10)) {

                  /* "cuda/bindings/_bindings/cydriver.pyx":516
 *         handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
 *         if handle == NULL:
 *             raise RuntimeError('Failed to dlopen ' + path)             # <<<<<<<<<<<<<<
 * 
 *         # Get latest __cuGetProcAddress_v2
*/
                  __pyx_t_3 = NULL;
                  __pyx_t_9 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_Failed_to_dlopen, __pyx_v_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 516, __pyx_L10_error)
                  __Pyx_GOTREF(__pyx_t_9);
                  __pyx_t_5 = 1;
                  {
                    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
                    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
                    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
                    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 516, __pyx_L10_error)
                    __Pyx_GOTREF(__pyx_t_2);
                  }
                  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
                  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                  __PYX_ERR(0, 516, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":515
 *             path = 'libcuda.so.1'
 *         handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
 *         if handle == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Failed to dlopen ' + path)
 * 
*/
                }

                /* "cuda/bindings/_bindings/cydriver.pyx":520
 *         # Get latest __cuGetProcAddress_v2
 *         global __cuGetProcAddress_v2
 *         __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')             # <<<<<<<<<<<<<<
 * 
 *         # Load using cuGetProcAddress if available
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGetProcAddress_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":523
 * 
 *         # Load using cuGetProcAddress if available
 *         if __cuGetProcAddress_v2 != NULL:             # <<<<<<<<<<<<<<
 *             _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
 *             if usePTDS:
*/
                __pyx_t_10 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2 != NULL);
                if (__pyx_t_10) {

                  /* "cuda/bindings/_bindings/cydriver.pyx":524
 *         # 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
*/
                  __pyx_v__F_cuGetProcAddress_v2 = ((__pyx_t_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2_T)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":525
 *         if __cuGetProcAddress_v2 != NULL:
 *             _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
 *             if usePTDS:             # <<<<<<<<<<<<<<
 *                 # Get all PTDS version of functions
 *                 pass
*/
                  if (__pyx_v_usePTDS) {

                    /* "cuda/bindings/_bindings/cydriver.pyx":529
 *                 pass
 *                 global __cuMemcpy
 *                 _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 529, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":531
 *                 _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyPeer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 531, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":533
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyHtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 533, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":535
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyDtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoH, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 535, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":537
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyDtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 537, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":539
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyDtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 539, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":541
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyAtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 541, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":543
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyHtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":545
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyAtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoH, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 545, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":547
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyAtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":549
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy2D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2DUnaligned_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2D, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 549, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":551
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy2DUnaligned_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2DUnaligned, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 551, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":553
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy3D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3D, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 553, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":555
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy3DPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DPeer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":557
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 557, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":559
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyPeerAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 559, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":561
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyHtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoDAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 561, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":563
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyDtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoHAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 563, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":565
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyDtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoAAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoDAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 565, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":567
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyHtoAAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoAAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 567, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":569
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyAtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoHAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 569, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":571
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy2DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2DAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 571, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":573
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy3DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":575
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy3DPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DPeerAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 575, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":577
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpyBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2), 0x32C8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 577, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":579
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemcpy3DBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2), 0x32C8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":581
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD8, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 581, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":583
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD16, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 583, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":585
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 585, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":587
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D8, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 587, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":589
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D16, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 589, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":591
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 591, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":593
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD8Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 593, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":595
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD16Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 595, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":597
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD32Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 597, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":599
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D8Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 599, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":601
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D16Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 601, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":603
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemsetD2D32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemBatchDecompressAsync
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D32Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 603, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":605
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemBatchDecompressAsync
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemMapArrayAsync
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemBatchDecompressAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync), 0x2F1C, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 605, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":607
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemMapArrayAsync
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemFreeAsync
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemMapArrayAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync), 0x2B02, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 607, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":609
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemFreeAsync
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemAllocAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemFreeAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync), 0x2B0C, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 609, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":611
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemAllocAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemAllocFromPoolAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync), 0x2B0C, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 611, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":613
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemAllocFromPoolAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemPrefetchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocFromPoolAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync), 0x2B0C, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 613, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":615
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemPrefetchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPrefetchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2), 0x2EF4, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 615, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":617
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemDiscardBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPrefetchBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 617, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":619
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemDiscardBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemDiscardAndPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemDiscardBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 619, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":621
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuMemDiscardAndPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetPriority
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemDiscardAndPrefetchBatchAsyn, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 621, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":623
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetPriority
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetDevice
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetPriority, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 623, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":625
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetDevice
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetFlags
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice), 0x2F30, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 625, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":627
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetFlags
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetId
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 627, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":629
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetId
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCtx
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId), 0x2EE0, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 629, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":631
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetCtx
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCtx_v2
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx), 0x233C, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 631, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":633
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetCtx_v2
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitEvent
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2), 0x2F12, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 633, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":635
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamWaitEvent
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamAddCallback
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 635, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":637
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamAddCallback
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBeginCapture_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamAddCallback, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 637, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":639
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamBeginCapture_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBeginCaptureToGraph
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBeginCapture, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2), 0x271A, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":641
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamBeginCaptureToGraph
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamEndCapture
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBeginCaptureToGraph, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph), 0x2EFE, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 641, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":643
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamEndCapture
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamIsCapturing
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamEndCapture, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 643, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":645
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamIsCapturing
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCaptureInfo_v3
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamIsCapturing, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 645, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":647
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetCaptureInfo_v3
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamUpdateCaptureDependencies_v2
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCaptureInfo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3), 0x2EFE, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 647, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":649
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamUpdateCaptureDependencies_v2
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamAttachMemAsync
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamUpdateCaptureDependencie, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2), 0x2EFE, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 649, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":651
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamAttachMemAsync
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamQuery
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamAttachMemAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 651, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":653
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamQuery
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamSynchronize
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamQuery, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 653, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":655
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamSynchronize
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamCopyAttributes
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamSynchronize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 655, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":657
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamCopyAttributes
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamCopyAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes), 0x2AF8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 657, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":659
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamSetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 659, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":661
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamSetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuEventRecord
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":663
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuEventRecord
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuEventRecordWithFlags
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventRecord, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 663, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":665
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuEventRecordWithFlags
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuSignalExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventRecordWithFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags), 0x2B02, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 665, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":667
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuSignalExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuWaitExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSignalExternalSemaphoresAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":669
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuWaitExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuWaitExternalSemaphoresAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 669, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":671
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamWaitValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitValue32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2), 0x2B3E, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 671, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":673
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamWaitValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWriteValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitValue64, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2), 0x2B3E, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 673, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":675
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamWriteValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWriteValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWriteValue32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2), 0x2B3E, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 675, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":677
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamWriteValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBatchMemOp_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWriteValue64, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2), 0x2B3E, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":679
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamBatchMemOp_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBatchMemOp, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2), 0x2B3E, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 679, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":681
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuLaunchKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchKernelEx
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchKernel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 681, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":683
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuLaunchKernelEx
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchCooperativeKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchKernelEx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx), 0x2B34, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 683, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":685
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuLaunchCooperativeKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchHostFunc
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchCooperativeKernel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel), 0x2328, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 685, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":687
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuLaunchHostFunc
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphInstantiateWithParams
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchHostFunc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 687, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":689
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuGraphInstantiateWithParams
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphUpload
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphInstantiateWithParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams), 0x2EE0, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 689, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":691
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuGraphUpload
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphLaunch
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphUpload, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload), 0x2B02, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":693
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuGraphLaunch
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphicsMapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphLaunch, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch), 0x2710, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 693, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":695
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuGraphicsMapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphicsUnmapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsMapResources, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 695, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":697
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuGraphicsUnmapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetDevResource
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsUnmapResources, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources), 0x1B58, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 697, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":699
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
 *                 global __cuStreamGetDevResource
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 # Else get the regular version
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetDevResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource), 0x32D2, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 699, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":525
 *         if __cuGetProcAddress_v2 != NULL:
 *             _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
 *             if usePTDS:             # <<<<<<<<<<<<<<
 *                 # Get all PTDS version of functions
 *                 pass
*/
                    goto __pyx_L21;
                  }

                  /* "cuda/bindings/_bindings/cydriver.pyx":702
 *             else:
 *                 # Else get the regular version
 *                 pass             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy
 *                 _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  /*else*/ {

                    /* "cuda/bindings/_bindings/cydriver.pyx":704
 *                 pass
 *                 global __cuMemcpy
 *                 _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 704, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":706
 *                 _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyPeer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 706, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":708
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyHtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 708, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":710
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyDtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoH, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 710, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":712
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyDtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 712, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":714
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyDtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 714, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":716
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyAtoD_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoD, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 716, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":718
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyHtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":720
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyAtoH_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoH, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 720, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":722
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyAtoA_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoA, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":724
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy2D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2DUnaligned_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2D, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 724, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":726
 *                 _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy2DUnaligned_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2DUnaligned, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":728
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy3D_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3D, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":730
 *                 _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy3DPeer
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DPeer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 730, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":732
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 732, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":734
 *                 _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyPeerAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 734, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":736
 *                 _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyHtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoDAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 736, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":738
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyDtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyDtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoHAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 738, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":740
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyDtoDAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyHtoAAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyDtoDAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 740, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":742
 *                 _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyHtoAAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyAtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyHtoAAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 742, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":744
 *                 _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyAtoHAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy2DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyAtoHAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 744, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":746
 *                 _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy2DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy2DAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 746, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":748
 *                 _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy3DAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 748, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":750
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy3DPeerAsync
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpyBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DPeerAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 750, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":752
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpyBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemcpy3DBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpyBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 752, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":754
 *                 _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemcpy3DBatchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemcpy3DBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 754, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":756
 *                 _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD8, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 756, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":758
 *                 _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD16, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 758, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":760
 *                 _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 760, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":762
 *                 _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D8_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D8, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 762, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":764
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D16_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D16, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 764, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":766
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D32_v2
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 766, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":768
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD8Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 768, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":770
 *                 _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD16Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 770, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":772
 *                 _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD32Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 772, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":774
 *                 _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D8Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D8Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 774, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":776
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D16Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemsetD2D32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D16Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 776, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":778
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemsetD2D32Async
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemBatchDecompressAsync
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemsetD2D32Async, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 778, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":780
 *                 _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemBatchDecompressAsync
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemMapArrayAsync
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemBatchDecompressAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync), 0x2F1C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 780, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":782
 *                 _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemMapArrayAsync
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemFreeAsync
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemMapArrayAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":784
 *                 _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemFreeAsync
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemAllocAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemFreeAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 784, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":786
 *                 _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemAllocAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemAllocFromPoolAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 786, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":788
 *                 _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemAllocFromPoolAsync
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemPrefetchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocFromPoolAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 788, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":790
 *                 _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemPrefetchAsync_v2
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPrefetchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2), 0x2EF4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 790, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":792
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemDiscardBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPrefetchBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 792, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":794
 *                 _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemDiscardBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuMemDiscardAndPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemDiscardBatchAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 794, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":796
 *                 _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuMemDiscardAndPrefetchBatchAsync
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetPriority
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemDiscardAndPrefetchBatchAsyn, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 796, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":798
 *                 _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetPriority
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetDevice
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetPriority, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 798, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":800
 *                 _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetDevice
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetFlags
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 800, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":802
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetFlags
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetId
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 802, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":804
 *                 _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetId
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCtx
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 804, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":806
 *                 _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetCtx
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCtx_v2
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx), 0x233C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 806, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":808
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetCtx_v2
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitEvent
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 808, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":810
 *                 _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamWaitEvent
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamAddCallback
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 810, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":812
 *                 _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamAddCallback
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBeginCapture_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamAddCallback, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 812, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":814
 *                 _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamBeginCapture_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBeginCaptureToGraph
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBeginCapture, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2), 0x271A, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 814, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":816
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamBeginCaptureToGraph
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamEndCapture
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBeginCaptureToGraph, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 816, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":818
 *                 _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamEndCapture
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamIsCapturing
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamEndCapture, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 818, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":820
 *                 _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamIsCapturing
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetCaptureInfo_v3
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamIsCapturing, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 820, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":822
 *                 _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetCaptureInfo_v3
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamUpdateCaptureDependencies_v2
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetCaptureInfo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":824
 *                 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamUpdateCaptureDependencies_v2
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamAttachMemAsync
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamUpdateCaptureDependencie, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 824, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":826
 *                 _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamAttachMemAsync
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamQuery
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamAttachMemAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync), 0x1770, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 826, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":828
 *                 _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamQuery
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamSynchronize
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamQuery, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 828, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":830
 *                 _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamSynchronize
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamCopyAttributes
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamSynchronize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 830, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":832
 *                 _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamCopyAttributes
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamCopyAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 832, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":834
 *                 _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamSetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 834, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":836
 *                 _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamSetAttribute
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuEventRecord
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 836, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":838
 *                 _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuEventRecord
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuEventRecordWithFlags
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventRecord, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 838, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":840
 *                 _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuEventRecordWithFlags
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuSignalExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventRecordWithFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 840, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":842
 *                 _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuSignalExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuWaitExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSignalExternalSemaphoresAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 842, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":844
 *                 _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuWaitExternalSemaphoresAsync
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuWaitExternalSemaphoresAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 844, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":846
 *                 _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamWaitValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWaitValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitValue32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 846, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":848
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamWaitValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWriteValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWaitValue64, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 848, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":850
 *                 _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamWriteValue32_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamWriteValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWriteValue32, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 850, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":852
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamWriteValue64_v2
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamBatchMemOp_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamWriteValue64, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 852, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":854
 *                 _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamBatchMemOp_v2
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamBatchMemOp, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 854, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":856
 *                 _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuLaunchKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchKernelEx
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchKernel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 856, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":858
 *                 _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuLaunchKernelEx
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchCooperativeKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchKernelEx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx), 0x2B34, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 858, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":860
 *                 _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuLaunchCooperativeKernel
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuLaunchHostFunc
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchCooperativeKernel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel), 0x2328, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 860, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":862
 *                 _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuLaunchHostFunc
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphInstantiateWithParams
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchHostFunc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 862, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":864
 *                 _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuGraphInstantiateWithParams
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphUpload
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphInstantiateWithParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 864, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":866
 *                 _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuGraphUpload
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphLaunch
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphUpload, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 866, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":868
 *                 _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuGraphLaunch
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphicsMapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphLaunch, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 868, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":870
 *                 _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuGraphicsMapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuGraphicsUnmapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsMapResources, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 870, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":872
 *                 _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuGraphicsUnmapResources
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *                 global __cuStreamGetDevResource
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsUnmapResources, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 872, __pyx_L10_error)

                    /* "cuda/bindings/_bindings/cydriver.pyx":874
 *                 _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *                 global __cuStreamGetDevResource
 *                 _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             # Get remaining functions
 *             global __cuGetErrorString
*/
                    __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetDevResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 874, __pyx_L10_error)
                  }
                  __pyx_L21:;

                  /* "cuda/bindings/_bindings/cydriver.pyx":877
 *             # Get remaining functions
 *             global __cuGetErrorString
 *             _F_cuGetProcAddress_v2('cuGetErrorString', &__cuGetErrorString, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGetErrorName
 *             _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGetErrorString, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString), 0x1770, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 877, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":879
 *             _F_cuGetProcAddress_v2('cuGetErrorString', &__cuGetErrorString, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGetErrorName
 *             _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuInit
 *             _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGetErrorName, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName), 0x1770, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 879, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":881
 *             _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuInit
 *             _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDriverGetVersion
 *             _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuInit, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 881, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":883
 *             _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDriverGetVersion
 *             _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGet
 *             _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDriverGetVersion, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion), 0x7E4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 883, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":885
 *             _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGet
 *             _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetCount
 *             _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGet, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 885, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":887
 *             _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetCount
 *             _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetName
 *             _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetCount, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":889
 *             _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetName
 *             _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetUuid_v2
 *             _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetName, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 889, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":891
 *             _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetUuid_v2
 *             _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetLuid
 *             _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetUuid, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 891, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":893
 *             _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetLuid
 *             _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceTotalMem_v2
 *             _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetLuid, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 893, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":895
 *             _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceTotalMem_v2
 *             _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetTexture1DLinearMaxWidth
 *             _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceTotalMem, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":897
 *             _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetTexture1DLinearMaxWidth
 *             _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetTexture1DLinearMaxWid, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 897, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":899
 *             _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetHostAtomicCapabilities
 *             _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 899, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":901
 *             _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetHostAtomicCapabilities
 *             _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetNvSciSyncAttributes
 *             _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetHostAtomicCapabilitie, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 901, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":903
 *             _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetNvSciSyncAttributes
 *             _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceSetMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetNvSciSyncAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 903, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":905
 *             _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceSetMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceSetMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 905, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":907
 *             _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetDefaultMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 907, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":909
 *             _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetDefaultMemPool
 *             _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetExecAffinitySupport
 *             _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetDefaultMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 909, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":911
 *             _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetExecAffinitySupport
 *             _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFlushGPUDirectRDMAWrites
 *             _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetExecAffinitySupport, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 911, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":913
 *             _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFlushGPUDirectRDMAWrites
 *             _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetProperties
 *             _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFlushGPUDirectRDMAWrites, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 913, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":915
 *             _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetProperties
 *             _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceComputeCapability
 *             _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetProperties, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 915, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":917
 *             _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceComputeCapability
 *             _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevicePrimaryCtxRetain
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceComputeCapability, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 917, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":919
 *             _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevicePrimaryCtxRetain
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevicePrimaryCtxRelease_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevicePrimaryCtxRetain, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 919, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":921
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevicePrimaryCtxRelease_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevicePrimaryCtxSetFlags_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevicePrimaryCtxRelease, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 921, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":923
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevicePrimaryCtxSetFlags_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevicePrimaryCtxGetState
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevicePrimaryCtxSetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 923, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":925
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevicePrimaryCtxGetState
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevicePrimaryCtxReset_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevicePrimaryCtxGetState, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 925, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":927
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevicePrimaryCtxReset_v2
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxCreate_v4
 *             _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevicePrimaryCtxReset, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 927, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":929
 *             _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxCreate_v4
 *             _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxDestroy_v2
 *             _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 929, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":931
 *             _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxDestroy_v2
 *             _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxPushCurrent_v2
 *             _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 931, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":933
 *             _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxPushCurrent_v2
 *             _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxPopCurrent_v2
 *             _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxPushCurrent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 933, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":935
 *             _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxPopCurrent_v2
 *             _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSetCurrent
 *             _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxPopCurrent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 935, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":937
 *             _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSetCurrent
 *             _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetCurrent
 *             _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSetCurrent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 937, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":939
 *             _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetCurrent
 *             _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetDevice
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetCurrent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 939, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":941
 *             _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetDevice
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetDevice_v2
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 941, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":943
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetDevice_v2
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetFlags
 *             _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 943, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":945
 *             _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetFlags
 *             _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSetFlags
 *             _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 945, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":947
 *             _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSetFlags
 *             _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetId
 *             _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 947, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":949
 *             _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetId
 *             _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSynchronize
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 949, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":951
 *             _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSynchronize
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSynchronize_v2
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSynchronize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 951, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":953
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSynchronize_v2
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSetLimit
 *             _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSynchronize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 953, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":955
 *             _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSetLimit
 *             _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetLimit
 *             _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSetLimit, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit), 0xBC2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 955, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":957
 *             _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetLimit
 *             _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetCacheConfig
 *             _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetLimit, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit), 0xBC2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 957, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":959
 *             _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetCacheConfig
 *             _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetCacheConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 959, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":961
 *             _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetApiVersion
 *             _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSetCacheConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 961, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":963
 *             _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetApiVersion
 *             _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetStreamPriorityRange
 *             _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetApiVersion, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 963, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":965
 *             _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetStreamPriorityRange
 *             _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxResetPersistingL2Cache
 *             _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetStreamPriorityRange, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 965, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":967
 *             _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxResetPersistingL2Cache
 *             _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetExecAffinity
 *             _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxResetPersistingL2Cache, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 967, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":969
 *             _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetExecAffinity
 *             _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxRecordEvent
 *             _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetExecAffinity, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 969, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":971
 *             _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxRecordEvent
 *             _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxWaitEvent
 *             _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxRecordEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 971, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":973
 *             _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxWaitEvent
 *             _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxAttach
 *             _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxWaitEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 973, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":975
 *             _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxAttach
 *             _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxDetach
 *             _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxAttach, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 975, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":977
 *             _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxDetach
 *             _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxDetach, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 977, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":979
 *             _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxSetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetSharedMemConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig), 0xFB4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 979, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":981
 *             _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxSetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleLoad
 *             _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxSetSharedMemConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig), 0xFB4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 981, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":983
 *             _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleLoad
 *             _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleLoadData
 *             _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleLoad, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 983, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":985
 *             _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleLoadData
 *             _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleLoadDataEx
 *             _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleLoadData, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 985, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":987
 *             _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleLoadDataEx
 *             _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleLoadFatBinary
 *             _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleLoadDataEx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx), 0x7DA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 987, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":989
 *             _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleLoadFatBinary
 *             _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleUnload
 *             _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleLoadFatBinary, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 989, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":991
 *             _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleUnload
 *             _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetLoadingMode
 *             _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleUnload, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 991, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":993
 *             _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetLoadingMode
 *             _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetFunction
 *             _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetLoadingMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":995
 *             _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetFunction
 *             _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetFunctionCount
 *             _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetFunction, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 995, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":997
 *             _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetFunctionCount
 *             _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleEnumerateFunctions
 *             _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetFunctionCount, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 997, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":999
 *             _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleEnumerateFunctions
 *             _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetGlobal_v2
 *             _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleEnumerateFunctions, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1001
 *             _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetGlobal_v2
 *             _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLinkCreate_v2
 *             _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetGlobal, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1001, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1003
 *             _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLinkCreate_v2
 *             _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLinkAddData_v2
 *             _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLinkCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1003, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1005
 *             _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLinkAddData_v2
 *             _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLinkAddFile_v2
 *             _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLinkAddData, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1005, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1007
 *             _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLinkAddFile_v2
 *             _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLinkComplete
 *             _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLinkAddFile, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1007, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1009
 *             _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLinkComplete
 *             _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLinkDestroy
 *             _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLinkComplete, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1009, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1011
 *             _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLinkDestroy
 *             _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetTexRef
 *             _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLinkDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1011, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1013
 *             _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetTexRef
 *             _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuModuleGetSurfRef
 *             _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetTexRef, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1013, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1015
 *             _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuModuleGetSurfRef
 *             _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryLoadData
 *             _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuModuleGetSurfRef, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1015, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1017
 *             _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryLoadData
 *             _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryLoadFromFile
 *             _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryLoadData, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1017, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1019
 *             _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryLoadFromFile
 *             _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryUnload
 *             _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryLoadFromFile, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1019, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1021
 *             _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryUnload
 *             _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetKernel
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryUnload, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1021, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1023
 *             _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetKernel
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetKernelCount
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetKernel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1023, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1025
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetKernelCount
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryEnumerateKernels
 *             _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetKernelCount, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1025, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1027
 *             _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryEnumerateKernels
 *             _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetModule
 *             _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryEnumerateKernels, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1027, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1029
 *             _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetModule
 *             _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelGetFunction
 *             _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetModule, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1029, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1031
 *             _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelGetFunction
 *             _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelGetLibrary
 *             _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelGetFunction, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1031, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1033
 *             _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelGetLibrary
 *             _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetGlobal
 *             _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelGetLibrary, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1033, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1035
 *             _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetGlobal
 *             _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetManaged
 *             _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetGlobal, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1035, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1037
 *             _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetManaged
 *             _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLibraryGetUnifiedFunction
 *             _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetManaged, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1037, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1039
 *             _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLibraryGetUnifiedFunction
 *             _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelGetAttribute
 *             _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLibraryGetUnifiedFunction, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1039, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1041
 *             _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelGetAttribute
 *             _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelSetAttribute
 *             _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1041, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1043
 *             _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelSetAttribute
 *             _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1045
 *             _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelGetName
 *             _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelSetCacheConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1045, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1047
 *             _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelGetName
 *             _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuKernelGetParamInfo
 *             _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelGetName, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1047, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1049
 *             _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuKernelGetParamInfo
 *             _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetInfo_v2
 *             _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuKernelGetParamInfo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1051
 *             _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetInfo_v2
 *             _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAlloc_v2
 *             _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetInfo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1051, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1053
 *             _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAlloc_v2
 *             _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAllocPitch_v2
 *             _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAlloc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1053, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1055
 *             _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAllocPitch_v2
 *             _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemFree_v2
 *             _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocPitch, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1055, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1057
 *             _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemFree_v2
 *             _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetAddressRange_v2
 *             _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemFree, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1057, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1059
 *             _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetAddressRange_v2
 *             _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAllocHost_v2
 *             _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetAddressRange, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1059, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1061
 *             _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAllocHost_v2
 *             _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemFreeHost
 *             _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocHost, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1061, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1063
 *             _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemFreeHost
 *             _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemHostAlloc
 *             _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemFreeHost, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1063, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1065
 *             _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemHostAlloc
 *             _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemHostGetDevicePointer_v2
 *             _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemHostAlloc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc), 0x7E4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1065, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1067
 *             _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemHostGetDevicePointer_v2
 *             _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemHostGetFlags
 *             _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemHostGetDevicePointer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1067, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1069
 *             _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemHostGetFlags
 *             _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAllocManaged
 *             _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemHostGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags), 0x7EE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1069, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1071
 *             _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAllocManaged
 *             _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceRegisterAsyncNotification
 *             _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAllocManaged, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged), 0x1770, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1071, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1073
 *             _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceRegisterAsyncNotification
 *             _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceUnregisterAsyncNotification
 *             _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceRegisterAsyncNotificatio, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1073, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1075
 *             _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceUnregisterAsyncNotification
 *             _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetByPCIBusId
 *             _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceUnregisterAsyncNotificat, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1075, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1077
 *             _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetByPCIBusId
 *             _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetPCIBusId
 *             _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetByPCIBusId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1077, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1079
 *             _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetPCIBusId
 *             _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuIpcGetEventHandle
 *             _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetPCIBusId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1079, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1081
 *             _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuIpcGetEventHandle
 *             _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuIpcOpenEventHandle
 *             _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuIpcGetEventHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1081, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1083
 *             _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuIpcOpenEventHandle
 *             _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuIpcGetMemHandle
 *             _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuIpcOpenEventHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1083, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1085
 *             _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuIpcGetMemHandle
 *             _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuIpcOpenMemHandle_v2
 *             _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuIpcGetMemHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1085, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1087
 *             _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuIpcOpenMemHandle_v2
 *             _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuIpcCloseMemHandle
 *             _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuIpcOpenMemHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1087, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1089
 *             _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuIpcCloseMemHandle
 *             _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemHostRegister_v2
 *             _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuIpcCloseMemHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1089, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1091
 *             _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemHostRegister_v2
 *             _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemHostUnregister
 *             _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemHostRegister, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1091, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1093
 *             _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemHostUnregister
 *             _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayCreate_v2
 *             _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemHostUnregister, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1093, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1095
 *             _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayCreate_v2
 *             _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayGetDescriptor_v2
 *             _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1095, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1097
 *             _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayGetDescriptor_v2
 *             _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayGetSparseProperties
 *             _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayGetDescriptor, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1097, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1099
 *             _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayGetSparseProperties
 *             _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMipmappedArrayGetSparseProperties
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayGetSparseProperties, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1099, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1101
 *             _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMipmappedArrayGetSparseProperties
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayGetMemoryRequirements
 *             _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMipmappedArrayGetSparsePropert, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1101, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1103
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayGetMemoryRequirements
 *             _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMipmappedArrayGetMemoryRequirements
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayGetMemoryRequirements, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements), 0x2B34, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1103, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1105
 *             _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMipmappedArrayGetMemoryRequirements
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayGetPlane
 *             _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMipmappedArrayGetMemoryRequire, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements), 0x2B34, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1105, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1107
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayGetPlane
 *             _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArrayDestroy
 *             _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayGetPlane, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1107, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1109
 *             _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArrayDestroy
 *             _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArray3DCreate_v2
 *             _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArrayDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1109, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1111
 *             _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArray3DCreate_v2
 *             _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuArray3DGetDescriptor_v2
 *             _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArray3DCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1111, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1113
 *             _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuArray3DGetDescriptor_v2
 *             _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMipmappedArrayCreate
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuArray3DGetDescriptor, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1113, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1115
 *             _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMipmappedArrayCreate
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMipmappedArrayGetLevel
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMipmappedArrayCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1115, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1117
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMipmappedArrayGetLevel
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMipmappedArrayDestroy
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMipmappedArrayGetLevel, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1117, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1119
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMipmappedArrayDestroy
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetHandleForAddressRange
 *             _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMipmappedArrayDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1119, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1121
 *             _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetHandleForAddressRange
 *             _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAddressReserve
 *             _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetHandleForAddressRange, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1121, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1123
 *             _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAddressReserve
 *             _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAddressFree
 *             _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAddressReserve, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1123, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1125
 *             _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAddressFree
 *             _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemCreate
 *             _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAddressFree, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1125, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1127
 *             _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemCreate
 *             _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemRelease
 *             _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1127, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1129
 *             _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemRelease
 *             _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemMap
 *             _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemRelease, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1129, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1131
 *             _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemMap
 *             _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemUnmap
 *             _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemMap, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1131, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1133
 *             _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemUnmap
 *             _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemSetAccess
 *             _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemUnmap, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1133, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1135
 *             _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemSetAccess
 *             _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetAccess
 *             _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemSetAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1135, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1137
 *             _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetAccess
 *             _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemExportToShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1139
 *             _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemExportToShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemImportFromShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemExportToShareableHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1139, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1141
 *             _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemImportFromShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetAllocationGranularity
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemImportFromShareableHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1141, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1143
 *             _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetAllocationGranularity
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetAllocationPropertiesFromHandle
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetAllocationGranularity, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1143, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1145
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetAllocationPropertiesFromHandle
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemRetainAllocationHandle
 *             _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetAllocationPropertiesFrom, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1145, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1147
 *             _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemRetainAllocationHandle
 *             _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolTrimTo
 *             _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemRetainAllocationHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1147, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1149
 *             _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolTrimTo
 *             _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolSetAttribute
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolTrimTo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1149, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1151
 *             _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolSetAttribute
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolGetAttribute
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1151, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1153
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolGetAttribute
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolSetAccess
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1153, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1155
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolSetAccess
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolGetAccess
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolSetAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1155, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1157
 *             _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolGetAccess
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolCreate
 *             _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolGetAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1157, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1159
 *             _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolCreate
 *             _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolDestroy
 *             _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1159, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1161
 *             _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolDestroy
 *             _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetDefaultMemPool
 *             _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1161, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1163
 *             _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetDefaultMemPool
 *             _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemGetMemPool
 *             _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetDefaultMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1163, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1165
 *             _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemGetMemPool
 *             _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemSetMemPool
 *             _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemGetMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1165, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1167
 *             _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemSetMemPool
 *             _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolExportToShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemSetMemPool, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1167, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1169
 *             _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolExportToShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolImportFromShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolExportToShareableHandle, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1169, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1171
 *             _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolImportFromShareableHandle
 *             _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolExportPointer
 *             _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolImportFromShareableHand, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1171, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1173
 *             _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolExportPointer
 *             _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemPoolImportPointer
 *             _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolExportPointer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1173, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1175
 *             _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemPoolImportPointer
 *             _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastCreate
 *             _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemPoolImportPointer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1175, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1177
 *             _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastCreate
 *             _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastAddDevice
 *             _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1177, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1179
 *             _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastAddDevice
 *             _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastBindMem
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastAddDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1179, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1181
 *             _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastBindMem
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastBindMem_v2
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastBindMem, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1181, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1183
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastBindMem_v2
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastBindAddr
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastBindMem, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1183, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1185
 *             _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastBindAddr
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastBindAddr_v2
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastBindAddr, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1185, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1187
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastBindAddr_v2
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastUnbind
 *             _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastBindAddr, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1187, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1189
 *             _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastUnbind
 *             _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMulticastGetGranularity
 *             _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastUnbind, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1189, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1191
 *             _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMulticastGetGranularity
 *             _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuPointerGetAttribute
 *             _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMulticastGetGranularity, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1191, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1193
 *             _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuPointerGetAttribute
 *             _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemAdvise_v2
 *             _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuPointerGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1193, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1195
 *             _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemAdvise_v2
 *             _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemRangeGetAttribute
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemAdvise, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2), 0x2EF4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1195, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1197
 *             _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemRangeGetAttribute
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuMemRangeGetAttributes
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemRangeGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1197, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1199
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuMemRangeGetAttributes
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuPointerSetAttribute
 *             _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuMemRangeGetAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1199, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1201
 *             _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuPointerSetAttribute
 *             _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuPointerGetAttributes
 *             _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuPointerSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute), 0x1770, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1201, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1203
 *             _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuPointerGetAttributes
 *             _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuStreamCreate
 *             _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuPointerGetAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1203, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1205
 *             _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuStreamCreate
 *             _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuStreamCreateWithPriority
 *             _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1205, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1207
 *             _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuStreamCreateWithPriority
 *             _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuThreadExchangeStreamCaptureMode
 *             _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamCreateWithPriority, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority), 0x13BA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1207, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1209
 *             _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuThreadExchangeStreamCaptureMode
 *             _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuStreamDestroy_v2
 *             _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuThreadExchangeStreamCaptureMod, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode), 0x271A, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1209, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1211
 *             _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuStreamDestroy_v2
 *             _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventCreate
 *             _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1211, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1213
 *             _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventCreate
 *             _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventQuery
 *             _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1213, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1215
 *             _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventQuery
 *             _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventSynchronize
 *             _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventQuery, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1215, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1217
 *             _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventSynchronize
 *             _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventDestroy_v2
 *             _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventSynchronize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1217, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1219
 *             _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventDestroy_v2
 *             _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventElapsedTime_v2
 *             _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1219, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1221
 *             _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventElapsedTime_v2
 *             _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuImportExternalMemory
 *             _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventElapsedTime, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1221, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1223
 *             _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuImportExternalMemory
 *             _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuExternalMemoryGetMappedBuffer
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuImportExternalMemory, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1223, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1225
 *             _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuExternalMemoryGetMappedBuffer
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuExternalMemoryGetMappedMipmappedArray
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuExternalMemoryGetMappedBuffer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1225, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1227
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuExternalMemoryGetMappedMipmappedArray
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDestroyExternalMemory
 *             _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuExternalMemoryGetMappedMipmapp, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1227, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1229
 *             _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDestroyExternalMemory
 *             _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuImportExternalSemaphore
 *             _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDestroyExternalMemory, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1229, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1231
 *             _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuImportExternalSemaphore
 *             _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDestroyExternalSemaphore
 *             _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuImportExternalSemaphore, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1231, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1233
 *             _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDestroyExternalSemaphore
 *             _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncGetAttribute
 *             _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDestroyExternalSemaphore, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1233, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1235
 *             _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncGetAttribute
 *             _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncSetAttribute
 *             _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute), 0x7E4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1235, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1237
 *             _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncSetAttribute
 *             _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute), 0x2328, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1237, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1239
 *             _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncSetCacheConfig
 *             _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncGetModule
 *             _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncSetCacheConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1239, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1241
 *             _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncGetModule
 *             _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncGetName
 *             _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncGetModule, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1241, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1243
 *             _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncGetName
 *             _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncGetParamInfo
 *             _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncGetName, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1243, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1245
 *             _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncGetParamInfo
 *             _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncIsLoaded
 *             _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncGetParamInfo, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1245, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1247
 *             _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncIsLoaded
 *             _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncLoad
 *             _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncIsLoaded, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1247, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1249
 *             _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncLoad
 *             _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLaunchCooperativeKernelMultiDevice
 *             _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncLoad, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1249, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1251
 *             _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLaunchCooperativeKernelMultiDevice
 *             _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncSetBlockShape
 *             _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchCooperativeKernelMultiDe, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice), 0x2328, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1251, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1253
 *             _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncSetBlockShape
 *             _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncSetSharedSize
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncSetBlockShape, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1253, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1255
 *             _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncSetSharedSize
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuParamSetSize
 *             _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncSetSharedSize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1255, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1257
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuParamSetSize
 *             _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuParamSeti
 *             _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuParamSetSize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1257, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1259
 *             _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuParamSeti
 *             _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuParamSetf
 *             _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuParamSeti, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1259, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1261
 *             _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuParamSetf
 *             _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuParamSetv
 *             _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuParamSetf, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1261, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1263
 *             _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuParamSetv
 *             _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLaunch
 *             _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuParamSetv, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1263, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1265
 *             _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLaunch
 *             _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLaunchGrid
 *             _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunch, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1265, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1267
 *             _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLaunchGrid
 *             _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLaunchGridAsync
 *             _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchGrid, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1267, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1269
 *             _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLaunchGridAsync
 *             _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuParamSetTexRef
 *             _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLaunchGridAsync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1269, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1271
 *             _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuParamSetTexRef
 *             _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuFuncSetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuParamSetTexRef, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1271, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1273
 *             _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuFuncSetSharedMemConfig
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphCreate
 *             _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuFuncSetSharedMemConfig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig), 0xFB4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1273, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1275
 *             _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphCreate
 *             _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddKernelNode_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1275, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1277
 *             _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddKernelNode_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphKernelNodeGetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddKernelNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1277, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1279
 *             _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphKernelNodeGetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphKernelNodeSetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphKernelNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1279, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1281
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphKernelNodeSetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddMemcpyNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphKernelNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1281, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1283
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddMemcpyNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemcpyNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddMemcpyNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1283, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1285
 *             _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemcpyNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemcpyNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemcpyNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1285, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1287
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemcpyNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddMemsetNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemcpyNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1287, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1289
 *             _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddMemsetNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemsetNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddMemsetNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1289, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1291
 *             _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemsetNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemsetNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemsetNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1291, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1293
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemsetNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddHostNode
 *             _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemsetNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1293, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1295
 *             _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddHostNode
 *             _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphHostNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddHostNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1295, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1297
 *             _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphHostNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphHostNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphHostNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1297, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1299
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphHostNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddChildGraphNode
 *             _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphHostNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1299, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1301
 *             _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddChildGraphNode
 *             _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphChildGraphNodeGetGraph
 *             _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddChildGraphNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1301, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1303
 *             _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphChildGraphNodeGetGraph
 *             _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddEmptyNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphChildGraphNodeGetGraph, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1303, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1305
 *             _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddEmptyNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddEventRecordNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddEmptyNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1305, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1307
 *             _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddEventRecordNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphEventRecordNodeGetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddEventRecordNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1307, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1309
 *             _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphEventRecordNodeGetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphEventRecordNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphEventRecordNodeGetEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1309, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1311
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphEventRecordNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddEventWaitNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphEventRecordNodeSetEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1311, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1313
 *             _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddEventWaitNode
 *             _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphEventWaitNodeGetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddEventWaitNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1313, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1315
 *             _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphEventWaitNodeGetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphEventWaitNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphEventWaitNodeGetEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1315, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1317
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphEventWaitNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddExternalSemaphoresSignalNode
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphEventWaitNodeSetEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1317, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1319
 *             _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddExternalSemaphoresSignalNode
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExternalSemaphoresSignalNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddExternalSemaphoresSign, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1319, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1321
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExternalSemaphoresSignalNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExternalSemaphoresSignalNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExternalSemaphoresSignalN, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1321, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1323
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExternalSemaphoresSignalNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddExternalSemaphoresWaitNode
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExternalSemaphoresSignalN_2, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1323, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1325
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddExternalSemaphoresWaitNode
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExternalSemaphoresWaitNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddExternalSemaphoresWait, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1325, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1327
 *             _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExternalSemaphoresWaitNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExternalSemaphoresWaitNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExternalSemaphoresWaitNod, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1327, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1329
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExternalSemaphoresWaitNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddBatchMemOpNode
 *             _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExternalSemaphoresWaitNod_2, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1329, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1331
 *             _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddBatchMemOpNode
 *             _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphBatchMemOpNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddBatchMemOpNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1331, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1333
 *             _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphBatchMemOpNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphBatchMemOpNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphBatchMemOpNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1333, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1335
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphBatchMemOpNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecBatchMemOpNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphBatchMemOpNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1335, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1337
 *             _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecBatchMemOpNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddMemAllocNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecBatchMemOpNodeSetPara, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1337, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1339
 *             _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddMemAllocNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemAllocNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddMemAllocNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1339, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1341
 *             _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemAllocNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddMemFreeNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemAllocNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1341, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1343
 *             _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddMemFreeNode
 *             _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphMemFreeNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddMemFreeNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1343, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1345
 *             _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphMemFreeNodeGetParams
 *             _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGraphMemTrim
 *             _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphMemFreeNodeGetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1345, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1347
 *             _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGraphMemTrim
 *             _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetGraphMemAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGraphMemTrim, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1347, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1349
 *             _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetGraphMemAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceSetGraphMemAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetGraphMemAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1349, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1351
 *             _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceSetGraphMemAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphClone
 *             _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceSetGraphMemAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1351, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1353
 *             _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphClone
 *             _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeFindInClone
 *             _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphClone, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1353, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1355
 *             _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeFindInClone
 *             _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetType
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeFindInClone, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1355, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1357
 *             _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetType
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetContainingGraph
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetContainingGraph', &__cuGraphNodeGetContainingGraph, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetType, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1357, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1359
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetContainingGraph
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetContainingGraph', &__cuGraphNodeGetContainingGraph, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetLocalId
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetLocalId', &__cuGraphNodeGetLocalId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetContainingGraph, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1359, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1361
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetContainingGraph', &__cuGraphNodeGetContainingGraph, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetLocalId
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetLocalId', &__cuGraphNodeGetLocalId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetToolsId
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetToolsId', &__cuGraphNodeGetToolsId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetLocalId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1361, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1363
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetLocalId', &__cuGraphNodeGetLocalId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetToolsId
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetToolsId', &__cuGraphNodeGetToolsId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphGetId
 *             _F_cuGetProcAddress_v2('cuGraphGetId', &__cuGraphGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetToolsId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1363, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1365
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetToolsId', &__cuGraphNodeGetToolsId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphGetId
 *             _F_cuGetProcAddress_v2('cuGraphGetId', &__cuGraphGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecGetId
 *             _F_cuGetProcAddress_v2('cuGraphExecGetId', &__cuGraphExecGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1365, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1367
 *             _F_cuGetProcAddress_v2('cuGraphGetId', &__cuGraphGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecGetId
 *             _F_cuGetProcAddress_v2('cuGraphExecGetId', &__cuGraphExecGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphGetNodes
 *             _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1367, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1369
 *             _F_cuGetProcAddress_v2('cuGraphExecGetId', &__cuGraphExecGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphGetNodes
 *             _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphGetRootNodes
 *             _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphGetNodes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1369, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1371
 *             _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphGetRootNodes
 *             _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphGetEdges_v2
 *             _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphGetRootNodes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1371, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1373
 *             _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphGetEdges_v2
 *             _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphGetEdges, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1373, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1375
 *             _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetDependentNodes_v2
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetDependencies, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1375, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1377
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetDependentNodes_v2
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetDependentNodes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1377, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1379
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphRemoveDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddDependencies, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1379, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1381
 *             _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphRemoveDependencies_v2
 *             _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphDestroyNode
 *             _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphRemoveDependencies, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1381, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1383
 *             _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphDestroyNode
 *             _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphInstantiateWithFlags
 *             _F_cuGetProcAddress_v2('cuGraphInstantiateWithFlags', &__cuGraphInstantiateWithFlags, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphDestroyNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1383, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1385
 *             _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphInstantiateWithFlags
 *             _F_cuGetProcAddress_v2('cuGraphInstantiateWithFlags', &__cuGraphInstantiateWithFlags, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecGetFlags
 *             _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphInstantiateWithFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags), 0x2B20, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1385, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1387
 *             _F_cuGetProcAddress_v2('cuGraphInstantiateWithFlags', &__cuGraphInstantiateWithFlags, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecGetFlags
 *             _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecKernelNodeSetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1387, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1389
 *             _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecKernelNodeSetParams_v2
 *             _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecMemcpyNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecKernelNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1389, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1391
 *             _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecMemcpyNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecMemsetNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecMemcpyNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1391, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1393
 *             _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecMemsetNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecHostNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecMemsetNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1393, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1395
 *             _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecHostNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecChildGraphNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecHostNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1395, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1397
 *             _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecChildGraphNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecEventRecordNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecChildGraphNodeSetPara, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1397, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1399
 *             _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecEventRecordNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecEventWaitNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecEventRecordNodeSetEve, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1399, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1401
 *             _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecEventWaitNodeSetEvent
 *             _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecEventWaitNodeSetEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent), 0x2B02, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1401, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1403
 *             _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecExternalSemaphoresSig, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1403, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1405
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeSetEnabled
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecExternalSemaphoresWai, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams), 0x2B0C, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1405, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1407
 *             _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeSetEnabled
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeGetEnabled
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeSetEnabled, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled), 0x2B34, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1407, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1409
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeGetEnabled
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecDestroy
 *             _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeGetEnabled, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled), 0x2B34, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1409, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1411
 *             _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecDestroy
 *             _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphDestroy
 *             _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1411, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1413
 *             _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphDestroy
 *             _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecUpdate_v2
 *             _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy), 0x2710, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1413, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1415
 *             _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecUpdate_v2
 *             _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphKernelNodeCopyAttributes
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecUpdate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1415, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1417
 *             _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphKernelNodeCopyAttributes
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphKernelNodeGetAttribute
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphKernelNodeCopyAttributes, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1417, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1419
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphKernelNodeGetAttribute
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphKernelNodeSetAttribute
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphKernelNodeGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1419, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1421
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphKernelNodeSetAttribute
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphDebugDotPrint
 *             _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphKernelNodeSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute), 0x2AF8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1421, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1423
 *             _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphDebugDotPrint
 *             _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuUserObjectCreate
 *             _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphDebugDotPrint, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1425
 *             _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuUserObjectCreate
 *             _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuUserObjectRetain
 *             _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuUserObjectCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1425, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1427
 *             _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuUserObjectRetain
 *             _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuUserObjectRelease
 *             _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuUserObjectRetain, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1427, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1429
 *             _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuUserObjectRelease
 *             _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphRetainUserObject
 *             _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuUserObjectRelease, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1429, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1431
 *             _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphRetainUserObject
 *             _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphReleaseUserObject
 *             _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphRetainUserObject, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1431, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1433
 *             _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphReleaseUserObject
 *             _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphAddNode_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphReleaseUserObject, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject), 0x2B16, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1433, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1435
 *             _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphAddNode_v2
 *             _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphAddNode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1435, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1437
 *             _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphExecNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams), 0x2EF4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1437, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1439
 *             _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphExecNodeSetParams
 *             _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphConditionalHandleCreate
 *             _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphExecNodeSetParams, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams), 0x2EF4, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1439, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1441
 *             _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphConditionalHandleCreate
 *             _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphConditionalHandleCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate), 0x2EFE, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1441, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1443
 *             _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxActiveBlocksPerMul, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1443, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1445
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxPotentialBlockSize
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxActiveBlocksPerMul_2, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1445, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1447
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxPotentialBlockSize
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxPotentialBlockSize, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1447, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1449
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyAvailableDynamicSMemPerBlock
 *             _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxPotentialBlockSize_2, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1449, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1451
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyAvailableDynamicSMemPerBlock
 *             _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxPotentialClusterSize
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyAvailableDynamicSMemP, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock), 0x2724, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1451, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1453
 *             _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxPotentialClusterSize
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuOccupancyMaxActiveClusters
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxPotentialClusterSi, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1453, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1455
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuOccupancyMaxActiveClusters
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetArray
 *             _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuOccupancyMaxActiveClusters, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters), 0x2B3E, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1455, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1457
 *             _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetArray
 *             _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetMipmappedArray
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1457, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1459
 *             _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetMipmappedArray
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetAddress_v2
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetMipmappedArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1459, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1461
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetAddress_v2
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetAddress2D_v3
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetAddress, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1461, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1463
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetAddress2D_v3
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetFormat
 *             _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetAddress2D, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3), 0xFAA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1463, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1465
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetFormat
 *             _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetAddressMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetFormat, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1465, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1467
 *             _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetAddressMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetAddressMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1467, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1469
 *             _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetMipmapFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetFilterMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1469, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1471
 *             _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetMipmapFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetMipmapLevelBias
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetMipmapFilterMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1471, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1473
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetMipmapLevelBias
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetMipmapLevelClamp
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetMipmapLevelBias, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1473, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1475
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetMipmapLevelClamp
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetMaxAnisotropy
 *             _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetMipmapLevelClamp, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1475, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1477
 *             _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetMaxAnisotropy
 *             _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetBorderColor
 *             _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetMaxAnisotropy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1477, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1479
 *             _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetBorderColor
 *             _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefSetFlags
 *             _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetBorderColor, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1479, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1481
 *             _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefSetFlags
 *             _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetAddress_v2
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefSetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1481, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1483
 *             _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetAddress_v2
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetArray
 *             _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetAddress, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1483, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1485
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetArray
 *             _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetMipmappedArray
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1485, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1487
 *             _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetMipmappedArray
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetAddressMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetMipmappedArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1487, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1489
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetAddressMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetAddressMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1489, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1491
 *             _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetFormat
 *             _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetFilterMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1491, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1493
 *             _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetFormat
 *             _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetMipmapFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetFormat, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1493, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1495
 *             _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetMipmapFilterMode
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetMipmapLevelBias
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetMipmapFilterMode, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1497
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetMipmapLevelBias
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetMipmapLevelClamp
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetMipmapLevelBias, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1497, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1499
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetMipmapLevelClamp
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetMaxAnisotropy
 *             _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetMipmapLevelClamp, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1499, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1501
 *             _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetMaxAnisotropy
 *             _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetBorderColor
 *             _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetMaxAnisotropy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1501, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1503
 *             _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetBorderColor
 *             _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefGetFlags
 *             _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetBorderColor, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1503, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1505
 *             _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefGetFlags
 *             _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefCreate
 *             _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefGetFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1505, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1507
 *             _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefCreate
 *             _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexRefDestroy
 *             _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1507, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1509
 *             _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexRefDestroy
 *             _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuSurfRefSetArray
 *             _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexRefDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy), 0x7D0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1509, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1511
 *             _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuSurfRefSetArray
 *             _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuSurfRefGetArray
 *             _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSurfRefSetArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1511, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1513
 *             _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuSurfRefGetArray
 *             _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexObjectCreate
 *             _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSurfRefGetArray, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1513, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1515
 *             _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexObjectCreate
 *             _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexObjectDestroy
 *             _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexObjectCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1515, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1517
 *             _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexObjectDestroy
 *             _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexObjectGetResourceDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexObjectDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1517, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1519
 *             _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexObjectGetResourceDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexObjectGetTextureDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexObjectGetResourceDesc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1521
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexObjectGetTextureDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTexObjectGetResourceViewDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexObjectGetTextureDesc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1521, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1523
 *             _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTexObjectGetResourceViewDesc
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuSurfObjectCreate
 *             _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTexObjectGetResourceViewDesc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1523, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1525
 *             _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuSurfObjectCreate
 *             _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuSurfObjectDestroy
 *             _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSurfObjectCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1525, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1527
 *             _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuSurfObjectDestroy
 *             _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuSurfObjectGetResourceDesc
 *             _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSurfObjectDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1527, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1529
 *             _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuSurfObjectGetResourceDesc
 *             _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTensorMapEncodeTiled
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuSurfObjectGetResourceDesc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1529, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1531
 *             _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTensorMapEncodeTiled
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTensorMapEncodeIm2col
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTensorMapEncodeTiled, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1531, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1533
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTensorMapEncodeIm2col
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTensorMapEncodeIm2colWide
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTensorMapEncodeIm2col, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1533, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1535
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTensorMapEncodeIm2colWide
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuTensorMapReplaceAddress
 *             _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTensorMapEncodeIm2colWide, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1535, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1537
 *             _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuTensorMapReplaceAddress
 *             _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceCanAccessPeer
 *             _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuTensorMapReplaceAddress, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1537, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1539
 *             _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceCanAccessPeer
 *             _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxEnablePeerAccess
 *             _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceCanAccessPeer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1539, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1541
 *             _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxEnablePeerAccess
 *             _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxDisablePeerAccess
 *             _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxEnablePeerAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1541, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1543
 *             _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxDisablePeerAccess
 *             _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetP2PAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxDisablePeerAccess, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1543, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1545
 *             _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetP2PAttribute
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetP2PAtomicCapabilities
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetP2PAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1545, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1547
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetP2PAtomicCapabilities
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsUnregisterResource
 *             _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetP2PAtomicCapabilities, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities), 0x32C8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1547, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1549
 *             _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsUnregisterResource
 *             _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsSubResourceGetMappedArray
 *             _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsUnregisterResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1549, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1551
 *             _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsSubResourceGetMappedArray
 *             _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsResourceGetMappedMipmappedArray
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsSubResourceGetMappedAr, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1551, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1553
 *             _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsResourceGetMappedMipmappedArray
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsResourceGetMappedPointer_v2
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsResourceGetMappedMipma, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray), 0x1388, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1553, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1555
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsResourceGetMappedPointer_v2
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsResourceSetMapFlags_v2
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsResourceGetMappedPoint, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1555, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1557
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsResourceSetMapFlags_v2
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGetProcAddress_v2
 *             _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsResourceSetMapFlags, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1557, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1559
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGetProcAddress_v2
 *             _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCoredumpGetAttribute
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGetProcAddress, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2), 0x2EE0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1559, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1561
 *             _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCoredumpGetAttribute
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCoredumpGetAttributeGlobal
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCoredumpGetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1561, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1563
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCoredumpGetAttributeGlobal
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCoredumpSetAttribute
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCoredumpGetAttributeGlobal, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1563, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1565
 *             _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCoredumpSetAttribute
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCoredumpSetAttributeGlobal
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCoredumpSetAttribute, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1565, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1567
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCoredumpSetAttributeGlobal
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGetExportTable
 *             _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCoredumpSetAttributeGlobal, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal), 0x2EEA, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1567, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1569
 *             _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGetExportTable
 *             _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxCreate
 *             _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGetExportTable, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1569, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1571
 *             _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxCreate
 *             _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxDestroy
 *             _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1571, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1573
 *             _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxDestroy
 *             _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxFromGreenCtx
 *             _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxDestroy, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1573, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1575
 *             _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxFromGreenCtx
 *             _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDeviceGetDevResource
 *             _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxFromGreenCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1575, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1577
 *             _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDeviceGetDevResource
 *             _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCtxGetDevResource
 *             _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDeviceGetDevResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1577, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1579
 *             _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCtxGetDevResource
 *             _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxGetDevResource
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCtxGetDevResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1579, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1581
 *             _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxGetDevResource
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevSmResourceSplitByCount
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxGetDevResource, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1581, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1583
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevSmResourceSplitByCount
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevSmResourceSplit
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplit', &__cuDevSmResourceSplit, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevSmResourceSplitByCount, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1583, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1585
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevSmResourceSplit
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplit', &__cuDevSmResourceSplit, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuDevResourceGenerateDesc
 *             _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevSmResourceSplit, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit), 0x32D2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1585, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1587
 *             _F_cuGetProcAddress_v2('cuDevSmResourceSplit', &__cuDevSmResourceSplit, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuDevResourceGenerateDesc
 *             _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxRecordEvent
 *             _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuDevResourceGenerateDesc, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1587, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1589
 *             _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxRecordEvent
 *             _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxWaitEvent
 *             _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxRecordEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1589, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1591
 *             _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxWaitEvent
 *             _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuStreamGetGreenCtx
 *             _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxWaitEvent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1591, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1593
 *             _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuStreamGetGreenCtx
 *             _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxStreamCreate
 *             _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuStreamGetGreenCtx, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx), 0x2F08, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1593, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1595
 *             _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxStreamCreate
 *             _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGreenCtxGetId
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 12090, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxStreamCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate), 0x2F12, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1595, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1597
 *             _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGreenCtxGetId
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 12090, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLogsRegisterCallback
 *             _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGreenCtxGetId, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId), 0x2F3A, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1597, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1599
 *             _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 12090, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLogsRegisterCallback
 *             _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLogsUnregisterCallback
 *             _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLogsRegisterCallback, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1599, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1601
 *             _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLogsUnregisterCallback
 *             _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLogsCurrent
 *             _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLogsUnregisterCallback, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1601, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1603
 *             _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLogsCurrent
 *             _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLogsDumpToFile
 *             _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLogsCurrent, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1603, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1605
 *             _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLogsDumpToFile
 *             _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuLogsDumpToMemory
 *             _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLogsDumpToFile, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1605, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1607
 *             _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuLogsDumpToMemory
 *             _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessGetRestoreThreadId
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuLogsDumpToMemory, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1607, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1609
 *             _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessGetRestoreThreadId
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessGetState
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessGetRestoreThr, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1609, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1611
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessGetState
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessLock
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessGetState, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1611, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1613
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessLock
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessCheckpoint
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessLock, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1613, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1615
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessCheckpoint
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessRestore
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessCheckpoint, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1615, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1617
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessRestore
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuCheckpointProcessUnlock
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessRestore, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1617, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1619
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuCheckpointProcessUnlock
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuProfilerStart
 *             _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuCheckpointProcessUnlock, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock), 0x2F30, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1619, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1621
 *             _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuProfilerStart
 *             _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuProfilerStop
 *             _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuProfilerStart, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1621, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1623
 *             _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuProfilerStop
 *             _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsEGLRegisterImage
 *             _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuProfilerStop, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop), 0xFA0, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1623, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1625
 *             _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsEGLRegisterImage
 *             _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamConsumerConnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsEGLRegisterImage, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1625, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1627
 *             _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamConsumerConnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamConsumerConnectWithFlags
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamConsumerConnect, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1627, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1629
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamConsumerConnectWithFlags
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamConsumerDisconnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamConsumerConnectWithFl, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags), 0x1F40, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1629, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1631
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamConsumerDisconnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamConsumerAcquireFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamConsumerDisconnect, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1631, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1633
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamConsumerAcquireFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamConsumerReleaseFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamConsumerAcquireFrame, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1633, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1635
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamConsumerReleaseFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamProducerConnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamConsumerReleaseFrame, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1635, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1637
 *             _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamProducerConnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamProducerDisconnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamProducerConnect, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1637, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1639
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamProducerDisconnect
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamProducerPresentFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamProducerDisconnect, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1639, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1641
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamProducerPresentFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEGLStreamProducerReturnFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamProducerPresentFrame, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1641, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1643
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEGLStreamProducerReturnFrame
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsResourceGetMappedEglFrame
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEGLStreamProducerReturnFrame, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1643, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1645
 *             _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsResourceGetMappedEglFrame
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuEventCreateFromEGLSync
 *             _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsResourceGetMappedEglFr, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame), 0x1B58, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1645, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1647
 *             _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuEventCreateFromEGLSync
 *             _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsGLRegisterBuffer
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuEventCreateFromEGLSync, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync), 0x2328, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1647, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1649
 *             _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsGLRegisterBuffer
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsGLRegisterImage
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsGLRegisterBuffer, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1649, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1651
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsGLRegisterImage
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGLGetDevices_v2
 *             _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsGLRegisterImage, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage), 0xBB8, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1651, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1653
 *             _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGLGetDevices_v2
 *             _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuVDPAUGetDevice
 *             _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGLGetDevices, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2), 0x17A2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1653, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1655
 *             _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuVDPAUGetDevice
 *             _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuVDPAUCtxCreate_v2
 *             _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuVDPAUGetDevice, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice), 0xBC2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1655, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1657
 *             _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuVDPAUCtxCreate_v2
 *             _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsVDPAURegisterVideoSurface
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuVDPAUCtxCreate, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2), 0xBCC, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1657, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1659
 *             _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsVDPAURegisterVideoSurface
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             global __cuGraphicsVDPAURegisterOutputSurface
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsVDPAURegisterVideoSurf, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface), 0xBC2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1659, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1661
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             global __cuGraphicsVDPAURegisterOutputSurface
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)             # <<<<<<<<<<<<<<
 *             __cuPythonInit = True
 *             return 0
*/
                  __pyx_t_14 = __pyx_v__F_cuGetProcAddress_v2(__pyx_k_cuGraphicsVDPAURegisterOutputSur, (&__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface), 0xBC2, CU_GET_PROC_ADDRESS_DEFAULT, NULL); if (unlikely(__pyx_t_14 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && PyErr_Occurred())) __PYX_ERR(0, 1661, __pyx_L10_error)

                  /* "cuda/bindings/_bindings/cydriver.pyx":1662
 *             global __cuGraphicsVDPAURegisterOutputSurface
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             __cuPythonInit = True             # <<<<<<<<<<<<<<
 *             return 0
 * 
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPythonInit = 1;

                  /* "cuda/bindings/_bindings/cydriver.pyx":1663
 *             _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
 *             __cuPythonInit = True
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # Load using dlsym
*/
                  __pyx_r = 0;
                  goto __pyx_L14_try_return;

                  /* "cuda/bindings/_bindings/cydriver.pyx":523
 * 
 *         # Load using cuGetProcAddress if available
 *         if __cuGetProcAddress_v2 != NULL:             # <<<<<<<<<<<<<<
 *             _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
 *             if usePTDS:
*/
                }

                /* "cuda/bindings/_bindings/cydriver.pyx":1666
 * 
 *         # Load using dlsym
 *         if usePTDS:             # <<<<<<<<<<<<<<
 *             # Get all PTDS version of functions
 *             pass
*/
                if (__pyx_v_usePTDS) {

                  /* "cuda/bindings/_bindings/cydriver.pyx":1670
 *             pass
 *             global __cuMemcpy
 *             __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyPeer
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1672
 *             __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy_ptds')
 *             global __cuMemcpyPeer
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoD_v2
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyPeer_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1674
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer_ptds')
 *             global __cuMemcpyHtoD_v2
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoH_v2
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoD_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1676
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2_ptds')
 *             global __cuMemcpyDtoH_v2
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoD_v2
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoH_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1678
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2_ptds')
 *             global __cuMemcpyDtoD_v2
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoA_v2
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoD_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1680
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2_ptds')
 *             global __cuMemcpyDtoA_v2
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoD_v2
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoA_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1682
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2_ptds')
 *             global __cuMemcpyAtoD_v2
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoA_v2
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoD_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1684
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2_ptds')
 *             global __cuMemcpyHtoA_v2
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoH_v2
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoA_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1686
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2_ptds')
 *             global __cuMemcpyAtoH_v2
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoA_v2
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoH_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1688
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2_ptds')
 *             global __cuMemcpyAtoA_v2
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2D_v2
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoA_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1690
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2_ptds')
 *             global __cuMemcpy2D_v2
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2DUnaligned_v2
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2D_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1692
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2_ptds')
 *             global __cuMemcpy2DUnaligned_v2
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3D_v2
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2DUnaligned_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1694
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2_ptds')
 *             global __cuMemcpy3D_v2
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DPeer
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3D_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1696
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2_ptds')
 *             global __cuMemcpy3DPeer
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAsync
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DPeer_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1698
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer_ptds')
 *             global __cuMemcpyAsync
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyPeerAsync
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1700
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync_ptsz')
 *             global __cuMemcpyPeerAsync
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoDAsync_v2
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyPeerAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1702
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync_ptsz')
 *             global __cuMemcpyHtoDAsync_v2
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoHAsync_v2
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoDAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1704
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2_ptsz')
 *             global __cuMemcpyDtoHAsync_v2
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoDAsync_v2
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoHAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1706
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2_ptsz')
 *             global __cuMemcpyDtoDAsync_v2
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoAAsync_v2
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoDAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1708
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2_ptsz')
 *             global __cuMemcpyHtoAAsync_v2
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoHAsync_v2
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoAAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1710
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2_ptsz')
 *             global __cuMemcpyAtoHAsync_v2
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2DAsync_v2
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoHAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1712
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2_ptsz')
 *             global __cuMemcpy2DAsync_v2
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DAsync_v2
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2DAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1714
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2_ptsz')
 *             global __cuMemcpy3DAsync_v2
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DPeerAsync
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1716
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2_ptsz')
 *             global __cuMemcpy3DPeerAsync
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyBatchAsync_v2
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DPeerAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1718
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync_ptsz')
 *             global __cuMemcpyBatchAsync_v2
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DBatchAsync_v2
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyBatchAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1720
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2_ptsz')
 *             global __cuMemcpy3DBatchAsync_v2
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD8_v2
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DBatchAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1722
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2_ptsz')
 *             global __cuMemsetD8_v2
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD16_v2
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD8_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1724
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2_ptds')
 *             global __cuMemsetD16_v2
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD32_v2
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD16_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1726
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2_ptds')
 *             global __cuMemsetD32_v2
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D8_v2
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD32_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1728
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2_ptds')
 *             global __cuMemsetD2D8_v2
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D16_v2
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D8_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1730
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2_ptds')
 *             global __cuMemsetD2D16_v2
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D32_v2
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2_ptds')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D16_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1732
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2_ptds')
 *             global __cuMemsetD2D32_v2
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2_ptds')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD8Async
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D32_v2_ptds);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1734
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2_ptds')
 *             global __cuMemsetD8Async
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD16Async
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD8Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1736
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async_ptsz')
 *             global __cuMemsetD16Async
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD32Async
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD16Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1738
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async_ptsz')
 *             global __cuMemsetD32Async
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D8Async
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD32Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1740
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async_ptsz')
 *             global __cuMemsetD2D8Async
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D16Async
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D8Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1742
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async_ptsz')
 *             global __cuMemsetD2D16Async
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D32Async
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D16Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1744
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async_ptsz')
 *             global __cuMemsetD2D32Async
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemBatchDecompressAsync
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D32Async_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1746
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async_ptsz')
 *             global __cuMemBatchDecompressAsync
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemMapArrayAsync
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemBatchDecompressAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1748
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync_ptsz')
 *             global __cuMemMapArrayAsync
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemFreeAsync
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemMapArrayAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1750
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync_ptsz')
 *             global __cuMemFreeAsync
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemAllocAsync
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemFreeAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1752
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync_ptsz')
 *             global __cuMemAllocAsync
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemAllocFromPoolAsync
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1754
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync_ptsz')
 *             global __cuMemAllocFromPoolAsync
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemPrefetchAsync_v2
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocFromPoolAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1756
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync_ptsz')
 *             global __cuMemPrefetchAsync_v2
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemPrefetchBatchAsync
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemPrefetchAsync_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1758
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2_ptsz')
 *             global __cuMemPrefetchBatchAsync
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemDiscardBatchAsync
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemPrefetchBatchAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1760
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync_ptsz')
 *             global __cuMemDiscardBatchAsync
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuMemDiscardAndPrefetchBatchAsync
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemDiscardBatchAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1762
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync_ptsz')
 *             global __cuMemDiscardAndPrefetchBatchAsync
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetPriority
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemDiscardAndPrefetchBatchAsyn_2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1764
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz')
 *             global __cuStreamGetPriority
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetDevice
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetPriority_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1766
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority_ptsz')
 *             global __cuStreamGetDevice
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetFlags
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetDevice_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1768
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice_ptsz')
 *             global __cuStreamGetFlags
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetId
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetFlags_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1770
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags_ptsz')
 *             global __cuStreamGetId
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCtx
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetId_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1772
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId_ptsz')
 *             global __cuStreamGetCtx
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCtx_v2
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCtx_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1774
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx_ptsz')
 *             global __cuStreamGetCtx_v2
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitEvent
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCtx_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1776
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2_ptsz')
 *             global __cuStreamWaitEvent
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamAddCallback
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitEvent_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1778
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent_ptsz')
 *             global __cuStreamAddCallback
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamBeginCapture_v2
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback = dlsym(__pyx_v_handle, __pyx_k_cuStreamAddCallback_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1780
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback_ptsz')
 *             global __cuStreamBeginCapture_v2
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamBeginCaptureToGraph
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamBeginCapture_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1782
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2_ptsz')
 *             global __cuStreamBeginCaptureToGraph
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamEndCapture
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph = dlsym(__pyx_v_handle, __pyx_k_cuStreamBeginCaptureToGraph_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1784
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph_ptsz')
 *             global __cuStreamEndCapture
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamIsCapturing
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture = dlsym(__pyx_v_handle, __pyx_k_cuStreamEndCapture_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1786
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture_ptsz')
 *             global __cuStreamIsCapturing
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCaptureInfo_v3
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing = dlsym(__pyx_v_handle, __pyx_k_cuStreamIsCapturing_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1788
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing_ptsz')
 *             global __cuStreamGetCaptureInfo_v3
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamUpdateCaptureDependencies_v2
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3 = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCaptureInfo_v3_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1790
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3_ptsz')
 *             global __cuStreamUpdateCaptureDependencies_v2
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamAttachMemAsync
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamUpdateCaptureDependencie_2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1792
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz')
 *             global __cuStreamAttachMemAsync
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamQuery
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync = dlsym(__pyx_v_handle, __pyx_k_cuStreamAttachMemAsync_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1794
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync_ptsz')
 *             global __cuStreamQuery
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamSynchronize
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery = dlsym(__pyx_v_handle, __pyx_k_cuStreamQuery_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1796
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery_ptsz')
 *             global __cuStreamSynchronize
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamCopyAttributes
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize = dlsym(__pyx_v_handle, __pyx_k_cuStreamSynchronize_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1798
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize_ptsz')
 *             global __cuStreamCopyAttributes
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetAttribute
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes = dlsym(__pyx_v_handle, __pyx_k_cuStreamCopyAttributes_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1800
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes_ptsz')
 *             global __cuStreamGetAttribute
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamSetAttribute
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetAttribute_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1802
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute_ptsz')
 *             global __cuStreamSetAttribute
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuEventRecord
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuStreamSetAttribute_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1804
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute_ptsz')
 *             global __cuEventRecord
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuEventRecordWithFlags
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord = dlsym(__pyx_v_handle, __pyx_k_cuEventRecord_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1806
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord_ptsz')
 *             global __cuEventRecordWithFlags
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuSignalExternalSemaphoresAsync
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuEventRecordWithFlags_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1808
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags_ptsz')
 *             global __cuSignalExternalSemaphoresAsync
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuWaitExternalSemaphoresAsync
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync = dlsym(__pyx_v_handle, __pyx_k_cuSignalExternalSemaphoresAsync_2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1810
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync_ptsz')
 *             global __cuWaitExternalSemaphoresAsync
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitValue32_v2
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync = dlsym(__pyx_v_handle, __pyx_k_cuWaitExternalSemaphoresAsync_pt);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1812
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync_ptsz')
 *             global __cuStreamWaitValue32_v2
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitValue64_v2
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitValue32_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1814
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2_ptsz')
 *             global __cuStreamWaitValue64_v2
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamWriteValue32_v2
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitValue64_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1816
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2_ptsz')
 *             global __cuStreamWriteValue32_v2
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamWriteValue64_v2
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWriteValue32_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1818
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2_ptsz')
 *             global __cuStreamWriteValue64_v2
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamBatchMemOp_v2
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWriteValue64_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1820
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2_ptsz')
 *             global __cuStreamBatchMemOp_v2
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuLaunchKernel
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamBatchMemOp_v2_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1822
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2_ptsz')
 *             global __cuLaunchKernel
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuLaunchKernelEx
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel = dlsym(__pyx_v_handle, __pyx_k_cuLaunchKernel_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1824
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel_ptsz')
 *             global __cuLaunchKernelEx
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuLaunchCooperativeKernel
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx = dlsym(__pyx_v_handle, __pyx_k_cuLaunchKernelEx_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1826
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx_ptsz')
 *             global __cuLaunchCooperativeKernel
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuLaunchHostFunc
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel = dlsym(__pyx_v_handle, __pyx_k_cuLaunchCooperativeKernel_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1828
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel_ptsz')
 *             global __cuLaunchHostFunc
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuGraphInstantiateWithParams
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc = dlsym(__pyx_v_handle, __pyx_k_cuLaunchHostFunc_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1830
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc_ptsz')
 *             global __cuGraphInstantiateWithParams
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuGraphUpload
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphInstantiateWithParams_pts);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1832
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams_ptsz')
 *             global __cuGraphUpload
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuGraphLaunch
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload = dlsym(__pyx_v_handle, __pyx_k_cuGraphUpload_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1834
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload_ptsz')
 *             global __cuGraphLaunch
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuGraphicsMapResources
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch = dlsym(__pyx_v_handle, __pyx_k_cuGraphLaunch_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1836
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch_ptsz')
 *             global __cuGraphicsMapResources
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuGraphicsUnmapResources
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsMapResources_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1838
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources_ptsz')
 *             global __cuGraphicsUnmapResources
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources_ptsz')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetDevResource
 *             __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource_ptsz')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsUnmapResources_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1840
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources_ptsz')
 *             global __cuStreamGetDevResource
 *             __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource_ptsz')             # <<<<<<<<<<<<<<
 *         else:
 *             # Else get the regular version
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetDevResource_ptsz);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1666
 * 
 *         # Load using dlsym
 *         if usePTDS:             # <<<<<<<<<<<<<<
 *             # Get all PTDS version of functions
 *             pass
*/
                  goto __pyx_L22;
                }

                /* "cuda/bindings/_bindings/cydriver.pyx":1843
 *         else:
 *             # Else get the regular version
 *             pass             # <<<<<<<<<<<<<<
 *             global __cuMemcpy
 *             __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy')
*/
                /*else*/ {

                  /* "cuda/bindings/_bindings/cydriver.pyx":1845
 *             pass
 *             global __cuMemcpy
 *             __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyPeer
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1847
 *             __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy')
 *             global __cuMemcpyPeer
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoD_v2
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyPeer);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1849
 *             __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer')
 *             global __cuMemcpyHtoD_v2
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoH_v2
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoD_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1851
 *             __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2')
 *             global __cuMemcpyDtoH_v2
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoD_v2
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoH_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1853
 *             __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2')
 *             global __cuMemcpyDtoD_v2
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoA_v2
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoD_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1855
 *             __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2')
 *             global __cuMemcpyDtoA_v2
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoD_v2
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoA_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1857
 *             __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2')
 *             global __cuMemcpyAtoD_v2
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoA_v2
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoD_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1859
 *             __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2')
 *             global __cuMemcpyHtoA_v2
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoH_v2
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoA_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1861
 *             __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2')
 *             global __cuMemcpyAtoH_v2
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoA_v2
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoH_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1863
 *             __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2')
 *             global __cuMemcpyAtoA_v2
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2D_v2
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoA_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1865
 *             __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2')
 *             global __cuMemcpy2D_v2
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2DUnaligned_v2
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2D_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1867
 *             __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2')
 *             global __cuMemcpy2DUnaligned_v2
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3D_v2
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2DUnaligned_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1869
 *             __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2')
 *             global __cuMemcpy3D_v2
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DPeer
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3D_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1871
 *             __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2')
 *             global __cuMemcpy3DPeer
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAsync
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DPeer);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1873
 *             __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer')
 *             global __cuMemcpyAsync
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyPeerAsync
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1875
 *             __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync')
 *             global __cuMemcpyPeerAsync
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoDAsync_v2
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyPeerAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1877
 *             __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync')
 *             global __cuMemcpyHtoDAsync_v2
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoHAsync_v2
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoDAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1879
 *             __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2')
 *             global __cuMemcpyDtoHAsync_v2
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyDtoDAsync_v2
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoHAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1881
 *             __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2')
 *             global __cuMemcpyDtoDAsync_v2
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyHtoAAsync_v2
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyDtoDAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1883
 *             __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2')
 *             global __cuMemcpyHtoAAsync_v2
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyAtoHAsync_v2
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyHtoAAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1885
 *             __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2')
 *             global __cuMemcpyAtoHAsync_v2
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy2DAsync_v2
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyAtoHAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1887
 *             __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2')
 *             global __cuMemcpy2DAsync_v2
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DAsync_v2
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy2DAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1889
 *             __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2')
 *             global __cuMemcpy3DAsync_v2
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DPeerAsync
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1891
 *             __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2')
 *             global __cuMemcpy3DPeerAsync
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemcpyBatchAsync_v2
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DPeerAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1893
 *             __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync')
 *             global __cuMemcpyBatchAsync_v2
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemcpy3DBatchAsync_v2
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpyBatchAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1895
 *             __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2')
 *             global __cuMemcpy3DBatchAsync_v2
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD8_v2
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemcpy3DBatchAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1897
 *             __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2')
 *             global __cuMemsetD8_v2
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD16_v2
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD8_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1899
 *             __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2')
 *             global __cuMemsetD16_v2
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD32_v2
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD16_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1901
 *             __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2')
 *             global __cuMemsetD32_v2
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D8_v2
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD32_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1903
 *             __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2')
 *             global __cuMemsetD2D8_v2
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D16_v2
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D8_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1905
 *             __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2')
 *             global __cuMemsetD2D16_v2
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D32_v2
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D16_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1907
 *             __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2')
 *             global __cuMemsetD2D32_v2
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD8Async
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D32_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1909
 *             __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2')
 *             global __cuMemsetD8Async
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD16Async
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD8Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1911
 *             __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async')
 *             global __cuMemsetD16Async
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD32Async
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD16Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1913
 *             __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async')
 *             global __cuMemsetD32Async
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D8Async
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD32Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1915
 *             __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async')
 *             global __cuMemsetD2D8Async
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D16Async
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D8Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1917
 *             __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async')
 *             global __cuMemsetD2D16Async
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async')             # <<<<<<<<<<<<<<
 *             global __cuMemsetD2D32Async
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D16Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1919
 *             __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async')
 *             global __cuMemsetD2D32Async
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async')             # <<<<<<<<<<<<<<
 *             global __cuMemBatchDecompressAsync
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async = dlsym(__pyx_v_handle, __pyx_k_cuMemsetD2D32Async);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1921
 *             __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async')
 *             global __cuMemBatchDecompressAsync
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemMapArrayAsync
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemBatchDecompressAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1923
 *             __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync')
 *             global __cuMemMapArrayAsync
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemFreeAsync
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemMapArrayAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1925
 *             __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync')
 *             global __cuMemFreeAsync
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemAllocAsync
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemFreeAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1927
 *             __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync')
 *             global __cuMemAllocAsync
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemAllocFromPoolAsync
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1929
 *             __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync')
 *             global __cuMemAllocFromPoolAsync
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemPrefetchAsync_v2
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocFromPoolAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1931
 *             __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync')
 *             global __cuMemPrefetchAsync_v2
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2')             # <<<<<<<<<<<<<<
 *             global __cuMemPrefetchBatchAsync
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemPrefetchAsync_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1933
 *             __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2')
 *             global __cuMemPrefetchBatchAsync
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemDiscardBatchAsync
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemPrefetchBatchAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1935
 *             __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync')
 *             global __cuMemDiscardBatchAsync
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync')             # <<<<<<<<<<<<<<
 *             global __cuMemDiscardAndPrefetchBatchAsync
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemDiscardBatchAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1937
 *             __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync')
 *             global __cuMemDiscardAndPrefetchBatchAsync
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetPriority
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync = dlsym(__pyx_v_handle, __pyx_k_cuMemDiscardAndPrefetchBatchAsyn);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1939
 *             __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync')
 *             global __cuStreamGetPriority
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetDevice
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetPriority);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1941
 *             __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority')
 *             global __cuStreamGetDevice
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetFlags
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetDevice);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1943
 *             __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice')
 *             global __cuStreamGetFlags
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetId
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetFlags);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1945
 *             __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags')
 *             global __cuStreamGetId
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCtx
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetId);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1947
 *             __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId')
 *             global __cuStreamGetCtx
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCtx_v2
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCtx);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1949
 *             __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx')
 *             global __cuStreamGetCtx_v2
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitEvent
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCtx_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1951
 *             __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2')
 *             global __cuStreamWaitEvent
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent')             # <<<<<<<<<<<<<<
 *             global __cuStreamAddCallback
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitEvent);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1953
 *             __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent')
 *             global __cuStreamAddCallback
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback')             # <<<<<<<<<<<<<<
 *             global __cuStreamBeginCapture_v2
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback = dlsym(__pyx_v_handle, __pyx_k_cuStreamAddCallback);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1955
 *             __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback')
 *             global __cuStreamBeginCapture_v2
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamBeginCaptureToGraph
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamBeginCapture_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1957
 *             __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2')
 *             global __cuStreamBeginCaptureToGraph
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph')             # <<<<<<<<<<<<<<
 *             global __cuStreamEndCapture
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph = dlsym(__pyx_v_handle, __pyx_k_cuStreamBeginCaptureToGraph);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1959
 *             __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph')
 *             global __cuStreamEndCapture
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture')             # <<<<<<<<<<<<<<
 *             global __cuStreamIsCapturing
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture = dlsym(__pyx_v_handle, __pyx_k_cuStreamEndCapture);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1961
 *             __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture')
 *             global __cuStreamIsCapturing
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetCaptureInfo_v3
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing = dlsym(__pyx_v_handle, __pyx_k_cuStreamIsCapturing);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1963
 *             __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing')
 *             global __cuStreamGetCaptureInfo_v3
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3')             # <<<<<<<<<<<<<<
 *             global __cuStreamUpdateCaptureDependencies_v2
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3 = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetCaptureInfo_v3);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1965
 *             __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3')
 *             global __cuStreamUpdateCaptureDependencies_v2
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamAttachMemAsync
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamUpdateCaptureDependencie_3);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1967
 *             __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2')
 *             global __cuStreamAttachMemAsync
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync')             # <<<<<<<<<<<<<<
 *             global __cuStreamQuery
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync = dlsym(__pyx_v_handle, __pyx_k_cuStreamAttachMemAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1969
 *             __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync')
 *             global __cuStreamQuery
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery')             # <<<<<<<<<<<<<<
 *             global __cuStreamSynchronize
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery = dlsym(__pyx_v_handle, __pyx_k_cuStreamQuery);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1971
 *             __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery')
 *             global __cuStreamSynchronize
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize')             # <<<<<<<<<<<<<<
 *             global __cuStreamCopyAttributes
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize = dlsym(__pyx_v_handle, __pyx_k_cuStreamSynchronize);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1973
 *             __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize')
 *             global __cuStreamCopyAttributes
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetAttribute
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes = dlsym(__pyx_v_handle, __pyx_k_cuStreamCopyAttributes);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1975
 *             __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes')
 *             global __cuStreamGetAttribute
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute')             # <<<<<<<<<<<<<<
 *             global __cuStreamSetAttribute
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetAttribute);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1977
 *             __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute')
 *             global __cuStreamSetAttribute
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute')             # <<<<<<<<<<<<<<
 *             global __cuEventRecord
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuStreamSetAttribute);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1979
 *             __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute')
 *             global __cuEventRecord
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord')             # <<<<<<<<<<<<<<
 *             global __cuEventRecordWithFlags
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord = dlsym(__pyx_v_handle, __pyx_k_cuEventRecord);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1981
 *             __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord')
 *             global __cuEventRecordWithFlags
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags')             # <<<<<<<<<<<<<<
 *             global __cuSignalExternalSemaphoresAsync
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuEventRecordWithFlags);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1983
 *             __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags')
 *             global __cuSignalExternalSemaphoresAsync
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync')             # <<<<<<<<<<<<<<
 *             global __cuWaitExternalSemaphoresAsync
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync = dlsym(__pyx_v_handle, __pyx_k_cuSignalExternalSemaphoresAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1985
 *             __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync')
 *             global __cuWaitExternalSemaphoresAsync
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitValue32_v2
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync = dlsym(__pyx_v_handle, __pyx_k_cuWaitExternalSemaphoresAsync);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1987
 *             __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync')
 *             global __cuStreamWaitValue32_v2
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamWaitValue64_v2
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitValue32_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1989
 *             __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2')
 *             global __cuStreamWaitValue64_v2
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamWriteValue32_v2
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWaitValue64_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1991
 *             __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2')
 *             global __cuStreamWriteValue32_v2
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamWriteValue64_v2
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWriteValue32_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1993
 *             __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2')
 *             global __cuStreamWriteValue64_v2
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2')             # <<<<<<<<<<<<<<
 *             global __cuStreamBatchMemOp_v2
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamWriteValue64_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1995
 *             __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2')
 *             global __cuStreamBatchMemOp_v2
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2')             # <<<<<<<<<<<<<<
 *             global __cuLaunchKernel
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamBatchMemOp_v2);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1997
 *             __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2')
 *             global __cuLaunchKernel
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel')             # <<<<<<<<<<<<<<
 *             global __cuLaunchKernelEx
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel = dlsym(__pyx_v_handle, __pyx_k_cuLaunchKernel);

                  /* "cuda/bindings/_bindings/cydriver.pyx":1999
 *             __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel')
 *             global __cuLaunchKernelEx
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx')             # <<<<<<<<<<<<<<
 *             global __cuLaunchCooperativeKernel
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx = dlsym(__pyx_v_handle, __pyx_k_cuLaunchKernelEx);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2001
 *             __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx')
 *             global __cuLaunchCooperativeKernel
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel')             # <<<<<<<<<<<<<<
 *             global __cuLaunchHostFunc
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel = dlsym(__pyx_v_handle, __pyx_k_cuLaunchCooperativeKernel);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2003
 *             __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel')
 *             global __cuLaunchHostFunc
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc')             # <<<<<<<<<<<<<<
 *             global __cuGraphInstantiateWithParams
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc = dlsym(__pyx_v_handle, __pyx_k_cuLaunchHostFunc);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2005
 *             __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc')
 *             global __cuGraphInstantiateWithParams
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams')             # <<<<<<<<<<<<<<
 *             global __cuGraphUpload
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphInstantiateWithParams);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2007
 *             __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams')
 *             global __cuGraphUpload
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload')             # <<<<<<<<<<<<<<
 *             global __cuGraphLaunch
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload = dlsym(__pyx_v_handle, __pyx_k_cuGraphUpload);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2009
 *             __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload')
 *             global __cuGraphLaunch
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch')             # <<<<<<<<<<<<<<
 *             global __cuGraphicsMapResources
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch = dlsym(__pyx_v_handle, __pyx_k_cuGraphLaunch);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2011
 *             __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch')
 *             global __cuGraphicsMapResources
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources')             # <<<<<<<<<<<<<<
 *             global __cuGraphicsUnmapResources
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsMapResources);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2013
 *             __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources')
 *             global __cuGraphicsUnmapResources
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources')             # <<<<<<<<<<<<<<
 *             global __cuStreamGetDevResource
 *             __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource')
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsUnmapResources);

                  /* "cuda/bindings/_bindings/cydriver.pyx":2015
 *             __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources')
 *             global __cuStreamGetDevResource
 *             __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource')             # <<<<<<<<<<<<<<
 *         # Get remaining functions
 *         global __cuGetErrorString
*/
                  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetDevResource);
                }
                __pyx_L22:;

                /* "cuda/bindings/_bindings/cydriver.pyx":2018
 *         # Get remaining functions
 *         global __cuGetErrorString
 *         __cuGetErrorString = dlfcn.dlsym(handle, 'cuGetErrorString')             # <<<<<<<<<<<<<<
 *         global __cuGetErrorName
 *         __cuGetErrorName = dlfcn.dlsym(handle, 'cuGetErrorName')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString = dlsym(__pyx_v_handle, __pyx_k_cuGetErrorString);

                /* "cuda/bindings/_bindings/cydriver.pyx":2020
 *         __cuGetErrorString = dlfcn.dlsym(handle, 'cuGetErrorString')
 *         global __cuGetErrorName
 *         __cuGetErrorName = dlfcn.dlsym(handle, 'cuGetErrorName')             # <<<<<<<<<<<<<<
 *         global __cuInit
 *         __cuInit = dlfcn.dlsym(handle, 'cuInit')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName = dlsym(__pyx_v_handle, __pyx_k_cuGetErrorName);

                /* "cuda/bindings/_bindings/cydriver.pyx":2022
 *         __cuGetErrorName = dlfcn.dlsym(handle, 'cuGetErrorName')
 *         global __cuInit
 *         __cuInit = dlfcn.dlsym(handle, 'cuInit')             # <<<<<<<<<<<<<<
 *         global __cuDriverGetVersion
 *         __cuDriverGetVersion = dlfcn.dlsym(handle, 'cuDriverGetVersion')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit = dlsym(__pyx_v_handle, __pyx_k_cuInit);

                /* "cuda/bindings/_bindings/cydriver.pyx":2024
 *         __cuInit = dlfcn.dlsym(handle, 'cuInit')
 *         global __cuDriverGetVersion
 *         __cuDriverGetVersion = dlfcn.dlsym(handle, 'cuDriverGetVersion')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGet
 *         __cuDeviceGet = dlfcn.dlsym(handle, 'cuDeviceGet')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion = dlsym(__pyx_v_handle, __pyx_k_cuDriverGetVersion);

                /* "cuda/bindings/_bindings/cydriver.pyx":2026
 *         __cuDriverGetVersion = dlfcn.dlsym(handle, 'cuDriverGetVersion')
 *         global __cuDeviceGet
 *         __cuDeviceGet = dlfcn.dlsym(handle, 'cuDeviceGet')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetCount
 *         __cuDeviceGetCount = dlfcn.dlsym(handle, 'cuDeviceGetCount')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGet);

                /* "cuda/bindings/_bindings/cydriver.pyx":2028
 *         __cuDeviceGet = dlfcn.dlsym(handle, 'cuDeviceGet')
 *         global __cuDeviceGetCount
 *         __cuDeviceGetCount = dlfcn.dlsym(handle, 'cuDeviceGetCount')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetName
 *         __cuDeviceGetName = dlfcn.dlsym(handle, 'cuDeviceGetName')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetCount);

                /* "cuda/bindings/_bindings/cydriver.pyx":2030
 *         __cuDeviceGetCount = dlfcn.dlsym(handle, 'cuDeviceGetCount')
 *         global __cuDeviceGetName
 *         __cuDeviceGetName = dlfcn.dlsym(handle, 'cuDeviceGetName')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetUuid_v2
 *         __cuDeviceGetUuid_v2 = dlfcn.dlsym(handle, 'cuDeviceGetUuid_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetName);

                /* "cuda/bindings/_bindings/cydriver.pyx":2032
 *         __cuDeviceGetName = dlfcn.dlsym(handle, 'cuDeviceGetName')
 *         global __cuDeviceGetUuid_v2
 *         __cuDeviceGetUuid_v2 = dlfcn.dlsym(handle, 'cuDeviceGetUuid_v2')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetLuid
 *         __cuDeviceGetLuid = dlfcn.dlsym(handle, 'cuDeviceGetLuid')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2 = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetUuid_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2034
 *         __cuDeviceGetUuid_v2 = dlfcn.dlsym(handle, 'cuDeviceGetUuid_v2')
 *         global __cuDeviceGetLuid
 *         __cuDeviceGetLuid = dlfcn.dlsym(handle, 'cuDeviceGetLuid')             # <<<<<<<<<<<<<<
 *         global __cuDeviceTotalMem_v2
 *         __cuDeviceTotalMem_v2 = dlfcn.dlsym(handle, 'cuDeviceTotalMem_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetLuid);

                /* "cuda/bindings/_bindings/cydriver.pyx":2036
 *         __cuDeviceGetLuid = dlfcn.dlsym(handle, 'cuDeviceGetLuid')
 *         global __cuDeviceTotalMem_v2
 *         __cuDeviceTotalMem_v2 = dlfcn.dlsym(handle, 'cuDeviceTotalMem_v2')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetTexture1DLinearMaxWidth
 *         __cuDeviceGetTexture1DLinearMaxWidth = dlfcn.dlsym(handle, 'cuDeviceGetTexture1DLinearMaxWidth')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2 = dlsym(__pyx_v_handle, __pyx_k_cuDeviceTotalMem_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2038
 *         __cuDeviceTotalMem_v2 = dlfcn.dlsym(handle, 'cuDeviceTotalMem_v2')
 *         global __cuDeviceGetTexture1DLinearMaxWidth
 *         __cuDeviceGetTexture1DLinearMaxWidth = dlfcn.dlsym(handle, 'cuDeviceGetTexture1DLinearMaxWidth')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetAttribute
 *         __cuDeviceGetAttribute = dlfcn.dlsym(handle, 'cuDeviceGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetTexture1DLinearMaxWid);

                /* "cuda/bindings/_bindings/cydriver.pyx":2040
 *         __cuDeviceGetTexture1DLinearMaxWidth = dlfcn.dlsym(handle, 'cuDeviceGetTexture1DLinearMaxWidth')
 *         global __cuDeviceGetAttribute
 *         __cuDeviceGetAttribute = dlfcn.dlsym(handle, 'cuDeviceGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetHostAtomicCapabilities
 *         __cuDeviceGetHostAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetHostAtomicCapabilities')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2042
 *         __cuDeviceGetAttribute = dlfcn.dlsym(handle, 'cuDeviceGetAttribute')
 *         global __cuDeviceGetHostAtomicCapabilities
 *         __cuDeviceGetHostAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetHostAtomicCapabilities')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetNvSciSyncAttributes
 *         __cuDeviceGetNvSciSyncAttributes = dlfcn.dlsym(handle, 'cuDeviceGetNvSciSyncAttributes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetHostAtomicCapabilitie);

                /* "cuda/bindings/_bindings/cydriver.pyx":2044
 *         __cuDeviceGetHostAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetHostAtomicCapabilities')
 *         global __cuDeviceGetNvSciSyncAttributes
 *         __cuDeviceGetNvSciSyncAttributes = dlfcn.dlsym(handle, 'cuDeviceGetNvSciSyncAttributes')             # <<<<<<<<<<<<<<
 *         global __cuDeviceSetMemPool
 *         __cuDeviceSetMemPool = dlfcn.dlsym(handle, 'cuDeviceSetMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetNvSciSyncAttributes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2046
 *         __cuDeviceGetNvSciSyncAttributes = dlfcn.dlsym(handle, 'cuDeviceGetNvSciSyncAttributes')
 *         global __cuDeviceSetMemPool
 *         __cuDeviceSetMemPool = dlfcn.dlsym(handle, 'cuDeviceSetMemPool')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetMemPool
 *         __cuDeviceGetMemPool = dlfcn.dlsym(handle, 'cuDeviceGetMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool = dlsym(__pyx_v_handle, __pyx_k_cuDeviceSetMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2048
 *         __cuDeviceSetMemPool = dlfcn.dlsym(handle, 'cuDeviceSetMemPool')
 *         global __cuDeviceGetMemPool
 *         __cuDeviceGetMemPool = dlfcn.dlsym(handle, 'cuDeviceGetMemPool')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetDefaultMemPool
 *         __cuDeviceGetDefaultMemPool = dlfcn.dlsym(handle, 'cuDeviceGetDefaultMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2050
 *         __cuDeviceGetMemPool = dlfcn.dlsym(handle, 'cuDeviceGetMemPool')
 *         global __cuDeviceGetDefaultMemPool
 *         __cuDeviceGetDefaultMemPool = dlfcn.dlsym(handle, 'cuDeviceGetDefaultMemPool')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetExecAffinitySupport
 *         __cuDeviceGetExecAffinitySupport = dlfcn.dlsym(handle, 'cuDeviceGetExecAffinitySupport')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetDefaultMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2052
 *         __cuDeviceGetDefaultMemPool = dlfcn.dlsym(handle, 'cuDeviceGetDefaultMemPool')
 *         global __cuDeviceGetExecAffinitySupport
 *         __cuDeviceGetExecAffinitySupport = dlfcn.dlsym(handle, 'cuDeviceGetExecAffinitySupport')             # <<<<<<<<<<<<<<
 *         global __cuFlushGPUDirectRDMAWrites
 *         __cuFlushGPUDirectRDMAWrites = dlfcn.dlsym(handle, 'cuFlushGPUDirectRDMAWrites')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetExecAffinitySupport);

                /* "cuda/bindings/_bindings/cydriver.pyx":2054
 *         __cuDeviceGetExecAffinitySupport = dlfcn.dlsym(handle, 'cuDeviceGetExecAffinitySupport')
 *         global __cuFlushGPUDirectRDMAWrites
 *         __cuFlushGPUDirectRDMAWrites = dlfcn.dlsym(handle, 'cuFlushGPUDirectRDMAWrites')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetProperties
 *         __cuDeviceGetProperties = dlfcn.dlsym(handle, 'cuDeviceGetProperties')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites = dlsym(__pyx_v_handle, __pyx_k_cuFlushGPUDirectRDMAWrites);

                /* "cuda/bindings/_bindings/cydriver.pyx":2056
 *         __cuFlushGPUDirectRDMAWrites = dlfcn.dlsym(handle, 'cuFlushGPUDirectRDMAWrites')
 *         global __cuDeviceGetProperties
 *         __cuDeviceGetProperties = dlfcn.dlsym(handle, 'cuDeviceGetProperties')             # <<<<<<<<<<<<<<
 *         global __cuDeviceComputeCapability
 *         __cuDeviceComputeCapability = dlfcn.dlsym(handle, 'cuDeviceComputeCapability')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetProperties);

                /* "cuda/bindings/_bindings/cydriver.pyx":2058
 *         __cuDeviceGetProperties = dlfcn.dlsym(handle, 'cuDeviceGetProperties')
 *         global __cuDeviceComputeCapability
 *         __cuDeviceComputeCapability = dlfcn.dlsym(handle, 'cuDeviceComputeCapability')             # <<<<<<<<<<<<<<
 *         global __cuDevicePrimaryCtxRetain
 *         __cuDevicePrimaryCtxRetain = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRetain')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability = dlsym(__pyx_v_handle, __pyx_k_cuDeviceComputeCapability);

                /* "cuda/bindings/_bindings/cydriver.pyx":2060
 *         __cuDeviceComputeCapability = dlfcn.dlsym(handle, 'cuDeviceComputeCapability')
 *         global __cuDevicePrimaryCtxRetain
 *         __cuDevicePrimaryCtxRetain = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRetain')             # <<<<<<<<<<<<<<
 *         global __cuDevicePrimaryCtxRelease_v2
 *         __cuDevicePrimaryCtxRelease_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRelease_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain = dlsym(__pyx_v_handle, __pyx_k_cuDevicePrimaryCtxRetain);

                /* "cuda/bindings/_bindings/cydriver.pyx":2062
 *         __cuDevicePrimaryCtxRetain = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRetain')
 *         global __cuDevicePrimaryCtxRelease_v2
 *         __cuDevicePrimaryCtxRelease_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRelease_v2')             # <<<<<<<<<<<<<<
 *         global __cuDevicePrimaryCtxSetFlags_v2
 *         __cuDevicePrimaryCtxSetFlags_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxSetFlags_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2 = dlsym(__pyx_v_handle, __pyx_k_cuDevicePrimaryCtxRelease_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2064
 *         __cuDevicePrimaryCtxRelease_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRelease_v2')
 *         global __cuDevicePrimaryCtxSetFlags_v2
 *         __cuDevicePrimaryCtxSetFlags_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxSetFlags_v2')             # <<<<<<<<<<<<<<
 *         global __cuDevicePrimaryCtxGetState
 *         __cuDevicePrimaryCtxGetState = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxGetState')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2 = dlsym(__pyx_v_handle, __pyx_k_cuDevicePrimaryCtxSetFlags_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2066
 *         __cuDevicePrimaryCtxSetFlags_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxSetFlags_v2')
 *         global __cuDevicePrimaryCtxGetState
 *         __cuDevicePrimaryCtxGetState = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxGetState')             # <<<<<<<<<<<<<<
 *         global __cuDevicePrimaryCtxReset_v2
 *         __cuDevicePrimaryCtxReset_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxReset_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState = dlsym(__pyx_v_handle, __pyx_k_cuDevicePrimaryCtxGetState);

                /* "cuda/bindings/_bindings/cydriver.pyx":2068
 *         __cuDevicePrimaryCtxGetState = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxGetState')
 *         global __cuDevicePrimaryCtxReset_v2
 *         __cuDevicePrimaryCtxReset_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxReset_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxCreate_v4
 *         __cuCtxCreate_v4 = dlfcn.dlsym(handle, 'cuCtxCreate_v4')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2 = dlsym(__pyx_v_handle, __pyx_k_cuDevicePrimaryCtxReset_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2070
 *         __cuDevicePrimaryCtxReset_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxReset_v2')
 *         global __cuCtxCreate_v4
 *         __cuCtxCreate_v4 = dlfcn.dlsym(handle, 'cuCtxCreate_v4')             # <<<<<<<<<<<<<<
 *         global __cuCtxDestroy_v2
 *         __cuCtxDestroy_v2 = dlfcn.dlsym(handle, 'cuCtxDestroy_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4 = dlsym(__pyx_v_handle, __pyx_k_cuCtxCreate_v4);

                /* "cuda/bindings/_bindings/cydriver.pyx":2072
 *         __cuCtxCreate_v4 = dlfcn.dlsym(handle, 'cuCtxCreate_v4')
 *         global __cuCtxDestroy_v2
 *         __cuCtxDestroy_v2 = dlfcn.dlsym(handle, 'cuCtxDestroy_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxPushCurrent_v2
 *         __cuCtxPushCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPushCurrent_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2 = dlsym(__pyx_v_handle, __pyx_k_cuCtxDestroy_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2074
 *         __cuCtxDestroy_v2 = dlfcn.dlsym(handle, 'cuCtxDestroy_v2')
 *         global __cuCtxPushCurrent_v2
 *         __cuCtxPushCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPushCurrent_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxPopCurrent_v2
 *         __cuCtxPopCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPopCurrent_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2 = dlsym(__pyx_v_handle, __pyx_k_cuCtxPushCurrent_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2076
 *         __cuCtxPushCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPushCurrent_v2')
 *         global __cuCtxPopCurrent_v2
 *         __cuCtxPopCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPopCurrent_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxSetCurrent
 *         __cuCtxSetCurrent = dlfcn.dlsym(handle, 'cuCtxSetCurrent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2 = dlsym(__pyx_v_handle, __pyx_k_cuCtxPopCurrent_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2078
 *         __cuCtxPopCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPopCurrent_v2')
 *         global __cuCtxSetCurrent
 *         __cuCtxSetCurrent = dlfcn.dlsym(handle, 'cuCtxSetCurrent')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetCurrent
 *         __cuCtxGetCurrent = dlfcn.dlsym(handle, 'cuCtxGetCurrent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent = dlsym(__pyx_v_handle, __pyx_k_cuCtxSetCurrent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2080
 *         __cuCtxSetCurrent = dlfcn.dlsym(handle, 'cuCtxSetCurrent')
 *         global __cuCtxGetCurrent
 *         __cuCtxGetCurrent = dlfcn.dlsym(handle, 'cuCtxGetCurrent')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetDevice
 *         __cuCtxGetDevice = dlfcn.dlsym(handle, 'cuCtxGetDevice')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetCurrent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2082
 *         __cuCtxGetCurrent = dlfcn.dlsym(handle, 'cuCtxGetCurrent')
 *         global __cuCtxGetDevice
 *         __cuCtxGetDevice = dlfcn.dlsym(handle, 'cuCtxGetDevice')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetDevice_v2
 *         __cuCtxGetDevice_v2 = dlfcn.dlsym(handle, 'cuCtxGetDevice_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetDevice);

                /* "cuda/bindings/_bindings/cydriver.pyx":2084
 *         __cuCtxGetDevice = dlfcn.dlsym(handle, 'cuCtxGetDevice')
 *         global __cuCtxGetDevice_v2
 *         __cuCtxGetDevice_v2 = dlfcn.dlsym(handle, 'cuCtxGetDevice_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetFlags
 *         __cuCtxGetFlags = dlfcn.dlsym(handle, 'cuCtxGetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2 = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetDevice_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2086
 *         __cuCtxGetDevice_v2 = dlfcn.dlsym(handle, 'cuCtxGetDevice_v2')
 *         global __cuCtxGetFlags
 *         __cuCtxGetFlags = dlfcn.dlsym(handle, 'cuCtxGetFlags')             # <<<<<<<<<<<<<<
 *         global __cuCtxSetFlags
 *         __cuCtxSetFlags = dlfcn.dlsym(handle, 'cuCtxSetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2088
 *         __cuCtxGetFlags = dlfcn.dlsym(handle, 'cuCtxGetFlags')
 *         global __cuCtxSetFlags
 *         __cuCtxSetFlags = dlfcn.dlsym(handle, 'cuCtxSetFlags')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetId
 *         __cuCtxGetId = dlfcn.dlsym(handle, 'cuCtxGetId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags = dlsym(__pyx_v_handle, __pyx_k_cuCtxSetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2090
 *         __cuCtxSetFlags = dlfcn.dlsym(handle, 'cuCtxSetFlags')
 *         global __cuCtxGetId
 *         __cuCtxGetId = dlfcn.dlsym(handle, 'cuCtxGetId')             # <<<<<<<<<<<<<<
 *         global __cuCtxSynchronize
 *         __cuCtxSynchronize = dlfcn.dlsym(handle, 'cuCtxSynchronize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2092
 *         __cuCtxGetId = dlfcn.dlsym(handle, 'cuCtxGetId')
 *         global __cuCtxSynchronize
 *         __cuCtxSynchronize = dlfcn.dlsym(handle, 'cuCtxSynchronize')             # <<<<<<<<<<<<<<
 *         global __cuCtxSynchronize_v2
 *         __cuCtxSynchronize_v2 = dlfcn.dlsym(handle, 'cuCtxSynchronize_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize = dlsym(__pyx_v_handle, __pyx_k_cuCtxSynchronize);

                /* "cuda/bindings/_bindings/cydriver.pyx":2094
 *         __cuCtxSynchronize = dlfcn.dlsym(handle, 'cuCtxSynchronize')
 *         global __cuCtxSynchronize_v2
 *         __cuCtxSynchronize_v2 = dlfcn.dlsym(handle, 'cuCtxSynchronize_v2')             # <<<<<<<<<<<<<<
 *         global __cuCtxSetLimit
 *         __cuCtxSetLimit = dlfcn.dlsym(handle, 'cuCtxSetLimit')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2 = dlsym(__pyx_v_handle, __pyx_k_cuCtxSynchronize_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2096
 *         __cuCtxSynchronize_v2 = dlfcn.dlsym(handle, 'cuCtxSynchronize_v2')
 *         global __cuCtxSetLimit
 *         __cuCtxSetLimit = dlfcn.dlsym(handle, 'cuCtxSetLimit')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetLimit
 *         __cuCtxGetLimit = dlfcn.dlsym(handle, 'cuCtxGetLimit')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit = dlsym(__pyx_v_handle, __pyx_k_cuCtxSetLimit);

                /* "cuda/bindings/_bindings/cydriver.pyx":2098
 *         __cuCtxSetLimit = dlfcn.dlsym(handle, 'cuCtxSetLimit')
 *         global __cuCtxGetLimit
 *         __cuCtxGetLimit = dlfcn.dlsym(handle, 'cuCtxGetLimit')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetCacheConfig
 *         __cuCtxGetCacheConfig = dlfcn.dlsym(handle, 'cuCtxGetCacheConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetLimit);

                /* "cuda/bindings/_bindings/cydriver.pyx":2100
 *         __cuCtxGetLimit = dlfcn.dlsym(handle, 'cuCtxGetLimit')
 *         global __cuCtxGetCacheConfig
 *         __cuCtxGetCacheConfig = dlfcn.dlsym(handle, 'cuCtxGetCacheConfig')             # <<<<<<<<<<<<<<
 *         global __cuCtxSetCacheConfig
 *         __cuCtxSetCacheConfig = dlfcn.dlsym(handle, 'cuCtxSetCacheConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetCacheConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2102
 *         __cuCtxGetCacheConfig = dlfcn.dlsym(handle, 'cuCtxGetCacheConfig')
 *         global __cuCtxSetCacheConfig
 *         __cuCtxSetCacheConfig = dlfcn.dlsym(handle, 'cuCtxSetCacheConfig')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetApiVersion
 *         __cuCtxGetApiVersion = dlfcn.dlsym(handle, 'cuCtxGetApiVersion')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig = dlsym(__pyx_v_handle, __pyx_k_cuCtxSetCacheConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2104
 *         __cuCtxSetCacheConfig = dlfcn.dlsym(handle, 'cuCtxSetCacheConfig')
 *         global __cuCtxGetApiVersion
 *         __cuCtxGetApiVersion = dlfcn.dlsym(handle, 'cuCtxGetApiVersion')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetStreamPriorityRange
 *         __cuCtxGetStreamPriorityRange = dlfcn.dlsym(handle, 'cuCtxGetStreamPriorityRange')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetApiVersion);

                /* "cuda/bindings/_bindings/cydriver.pyx":2106
 *         __cuCtxGetApiVersion = dlfcn.dlsym(handle, 'cuCtxGetApiVersion')
 *         global __cuCtxGetStreamPriorityRange
 *         __cuCtxGetStreamPriorityRange = dlfcn.dlsym(handle, 'cuCtxGetStreamPriorityRange')             # <<<<<<<<<<<<<<
 *         global __cuCtxResetPersistingL2Cache
 *         __cuCtxResetPersistingL2Cache = dlfcn.dlsym(handle, 'cuCtxResetPersistingL2Cache')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetStreamPriorityRange);

                /* "cuda/bindings/_bindings/cydriver.pyx":2108
 *         __cuCtxGetStreamPriorityRange = dlfcn.dlsym(handle, 'cuCtxGetStreamPriorityRange')
 *         global __cuCtxResetPersistingL2Cache
 *         __cuCtxResetPersistingL2Cache = dlfcn.dlsym(handle, 'cuCtxResetPersistingL2Cache')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetExecAffinity
 *         __cuCtxGetExecAffinity = dlfcn.dlsym(handle, 'cuCtxGetExecAffinity')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache = dlsym(__pyx_v_handle, __pyx_k_cuCtxResetPersistingL2Cache);

                /* "cuda/bindings/_bindings/cydriver.pyx":2110
 *         __cuCtxResetPersistingL2Cache = dlfcn.dlsym(handle, 'cuCtxResetPersistingL2Cache')
 *         global __cuCtxGetExecAffinity
 *         __cuCtxGetExecAffinity = dlfcn.dlsym(handle, 'cuCtxGetExecAffinity')             # <<<<<<<<<<<<<<
 *         global __cuCtxRecordEvent
 *         __cuCtxRecordEvent = dlfcn.dlsym(handle, 'cuCtxRecordEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetExecAffinity);

                /* "cuda/bindings/_bindings/cydriver.pyx":2112
 *         __cuCtxGetExecAffinity = dlfcn.dlsym(handle, 'cuCtxGetExecAffinity')
 *         global __cuCtxRecordEvent
 *         __cuCtxRecordEvent = dlfcn.dlsym(handle, 'cuCtxRecordEvent')             # <<<<<<<<<<<<<<
 *         global __cuCtxWaitEvent
 *         __cuCtxWaitEvent = dlfcn.dlsym(handle, 'cuCtxWaitEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent = dlsym(__pyx_v_handle, __pyx_k_cuCtxRecordEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2114
 *         __cuCtxRecordEvent = dlfcn.dlsym(handle, 'cuCtxRecordEvent')
 *         global __cuCtxWaitEvent
 *         __cuCtxWaitEvent = dlfcn.dlsym(handle, 'cuCtxWaitEvent')             # <<<<<<<<<<<<<<
 *         global __cuCtxAttach
 *         __cuCtxAttach = dlfcn.dlsym(handle, 'cuCtxAttach')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent = dlsym(__pyx_v_handle, __pyx_k_cuCtxWaitEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2116
 *         __cuCtxWaitEvent = dlfcn.dlsym(handle, 'cuCtxWaitEvent')
 *         global __cuCtxAttach
 *         __cuCtxAttach = dlfcn.dlsym(handle, 'cuCtxAttach')             # <<<<<<<<<<<<<<
 *         global __cuCtxDetach
 *         __cuCtxDetach = dlfcn.dlsym(handle, 'cuCtxDetach')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach = dlsym(__pyx_v_handle, __pyx_k_cuCtxAttach);

                /* "cuda/bindings/_bindings/cydriver.pyx":2118
 *         __cuCtxAttach = dlfcn.dlsym(handle, 'cuCtxAttach')
 *         global __cuCtxDetach
 *         __cuCtxDetach = dlfcn.dlsym(handle, 'cuCtxDetach')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetSharedMemConfig
 *         __cuCtxGetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxGetSharedMemConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach = dlsym(__pyx_v_handle, __pyx_k_cuCtxDetach);

                /* "cuda/bindings/_bindings/cydriver.pyx":2120
 *         __cuCtxDetach = dlfcn.dlsym(handle, 'cuCtxDetach')
 *         global __cuCtxGetSharedMemConfig
 *         __cuCtxGetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxGetSharedMemConfig')             # <<<<<<<<<<<<<<
 *         global __cuCtxSetSharedMemConfig
 *         __cuCtxSetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxSetSharedMemConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetSharedMemConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2122
 *         __cuCtxGetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxGetSharedMemConfig')
 *         global __cuCtxSetSharedMemConfig
 *         __cuCtxSetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxSetSharedMemConfig')             # <<<<<<<<<<<<<<
 *         global __cuModuleLoad
 *         __cuModuleLoad = dlfcn.dlsym(handle, 'cuModuleLoad')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig = dlsym(__pyx_v_handle, __pyx_k_cuCtxSetSharedMemConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2124
 *         __cuCtxSetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxSetSharedMemConfig')
 *         global __cuModuleLoad
 *         __cuModuleLoad = dlfcn.dlsym(handle, 'cuModuleLoad')             # <<<<<<<<<<<<<<
 *         global __cuModuleLoadData
 *         __cuModuleLoadData = dlfcn.dlsym(handle, 'cuModuleLoadData')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad = dlsym(__pyx_v_handle, __pyx_k_cuModuleLoad);

                /* "cuda/bindings/_bindings/cydriver.pyx":2126
 *         __cuModuleLoad = dlfcn.dlsym(handle, 'cuModuleLoad')
 *         global __cuModuleLoadData
 *         __cuModuleLoadData = dlfcn.dlsym(handle, 'cuModuleLoadData')             # <<<<<<<<<<<<<<
 *         global __cuModuleLoadDataEx
 *         __cuModuleLoadDataEx = dlfcn.dlsym(handle, 'cuModuleLoadDataEx')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData = dlsym(__pyx_v_handle, __pyx_k_cuModuleLoadData);

                /* "cuda/bindings/_bindings/cydriver.pyx":2128
 *         __cuModuleLoadData = dlfcn.dlsym(handle, 'cuModuleLoadData')
 *         global __cuModuleLoadDataEx
 *         __cuModuleLoadDataEx = dlfcn.dlsym(handle, 'cuModuleLoadDataEx')             # <<<<<<<<<<<<<<
 *         global __cuModuleLoadFatBinary
 *         __cuModuleLoadFatBinary = dlfcn.dlsym(handle, 'cuModuleLoadFatBinary')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx = dlsym(__pyx_v_handle, __pyx_k_cuModuleLoadDataEx);

                /* "cuda/bindings/_bindings/cydriver.pyx":2130
 *         __cuModuleLoadDataEx = dlfcn.dlsym(handle, 'cuModuleLoadDataEx')
 *         global __cuModuleLoadFatBinary
 *         __cuModuleLoadFatBinary = dlfcn.dlsym(handle, 'cuModuleLoadFatBinary')             # <<<<<<<<<<<<<<
 *         global __cuModuleUnload
 *         __cuModuleUnload = dlfcn.dlsym(handle, 'cuModuleUnload')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary = dlsym(__pyx_v_handle, __pyx_k_cuModuleLoadFatBinary);

                /* "cuda/bindings/_bindings/cydriver.pyx":2132
 *         __cuModuleLoadFatBinary = dlfcn.dlsym(handle, 'cuModuleLoadFatBinary')
 *         global __cuModuleUnload
 *         __cuModuleUnload = dlfcn.dlsym(handle, 'cuModuleUnload')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetLoadingMode
 *         __cuModuleGetLoadingMode = dlfcn.dlsym(handle, 'cuModuleGetLoadingMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload = dlsym(__pyx_v_handle, __pyx_k_cuModuleUnload);

                /* "cuda/bindings/_bindings/cydriver.pyx":2134
 *         __cuModuleUnload = dlfcn.dlsym(handle, 'cuModuleUnload')
 *         global __cuModuleGetLoadingMode
 *         __cuModuleGetLoadingMode = dlfcn.dlsym(handle, 'cuModuleGetLoadingMode')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetFunction
 *         __cuModuleGetFunction = dlfcn.dlsym(handle, 'cuModuleGetFunction')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetLoadingMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2136
 *         __cuModuleGetLoadingMode = dlfcn.dlsym(handle, 'cuModuleGetLoadingMode')
 *         global __cuModuleGetFunction
 *         __cuModuleGetFunction = dlfcn.dlsym(handle, 'cuModuleGetFunction')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetFunctionCount
 *         __cuModuleGetFunctionCount = dlfcn.dlsym(handle, 'cuModuleGetFunctionCount')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetFunction);

                /* "cuda/bindings/_bindings/cydriver.pyx":2138
 *         __cuModuleGetFunction = dlfcn.dlsym(handle, 'cuModuleGetFunction')
 *         global __cuModuleGetFunctionCount
 *         __cuModuleGetFunctionCount = dlfcn.dlsym(handle, 'cuModuleGetFunctionCount')             # <<<<<<<<<<<<<<
 *         global __cuModuleEnumerateFunctions
 *         __cuModuleEnumerateFunctions = dlfcn.dlsym(handle, 'cuModuleEnumerateFunctions')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetFunctionCount);

                /* "cuda/bindings/_bindings/cydriver.pyx":2140
 *         __cuModuleGetFunctionCount = dlfcn.dlsym(handle, 'cuModuleGetFunctionCount')
 *         global __cuModuleEnumerateFunctions
 *         __cuModuleEnumerateFunctions = dlfcn.dlsym(handle, 'cuModuleEnumerateFunctions')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetGlobal_v2
 *         __cuModuleGetGlobal_v2 = dlfcn.dlsym(handle, 'cuModuleGetGlobal_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions = dlsym(__pyx_v_handle, __pyx_k_cuModuleEnumerateFunctions);

                /* "cuda/bindings/_bindings/cydriver.pyx":2142
 *         __cuModuleEnumerateFunctions = dlfcn.dlsym(handle, 'cuModuleEnumerateFunctions')
 *         global __cuModuleGetGlobal_v2
 *         __cuModuleGetGlobal_v2 = dlfcn.dlsym(handle, 'cuModuleGetGlobal_v2')             # <<<<<<<<<<<<<<
 *         global __cuLinkCreate_v2
 *         __cuLinkCreate_v2 = dlfcn.dlsym(handle, 'cuLinkCreate_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2 = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetGlobal_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2144
 *         __cuModuleGetGlobal_v2 = dlfcn.dlsym(handle, 'cuModuleGetGlobal_v2')
 *         global __cuLinkCreate_v2
 *         __cuLinkCreate_v2 = dlfcn.dlsym(handle, 'cuLinkCreate_v2')             # <<<<<<<<<<<<<<
 *         global __cuLinkAddData_v2
 *         __cuLinkAddData_v2 = dlfcn.dlsym(handle, 'cuLinkAddData_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2 = dlsym(__pyx_v_handle, __pyx_k_cuLinkCreate_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2146
 *         __cuLinkCreate_v2 = dlfcn.dlsym(handle, 'cuLinkCreate_v2')
 *         global __cuLinkAddData_v2
 *         __cuLinkAddData_v2 = dlfcn.dlsym(handle, 'cuLinkAddData_v2')             # <<<<<<<<<<<<<<
 *         global __cuLinkAddFile_v2
 *         __cuLinkAddFile_v2 = dlfcn.dlsym(handle, 'cuLinkAddFile_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2 = dlsym(__pyx_v_handle, __pyx_k_cuLinkAddData_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2148
 *         __cuLinkAddData_v2 = dlfcn.dlsym(handle, 'cuLinkAddData_v2')
 *         global __cuLinkAddFile_v2
 *         __cuLinkAddFile_v2 = dlfcn.dlsym(handle, 'cuLinkAddFile_v2')             # <<<<<<<<<<<<<<
 *         global __cuLinkComplete
 *         __cuLinkComplete = dlfcn.dlsym(handle, 'cuLinkComplete')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2 = dlsym(__pyx_v_handle, __pyx_k_cuLinkAddFile_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2150
 *         __cuLinkAddFile_v2 = dlfcn.dlsym(handle, 'cuLinkAddFile_v2')
 *         global __cuLinkComplete
 *         __cuLinkComplete = dlfcn.dlsym(handle, 'cuLinkComplete')             # <<<<<<<<<<<<<<
 *         global __cuLinkDestroy
 *         __cuLinkDestroy = dlfcn.dlsym(handle, 'cuLinkDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete = dlsym(__pyx_v_handle, __pyx_k_cuLinkComplete);

                /* "cuda/bindings/_bindings/cydriver.pyx":2152
 *         __cuLinkComplete = dlfcn.dlsym(handle, 'cuLinkComplete')
 *         global __cuLinkDestroy
 *         __cuLinkDestroy = dlfcn.dlsym(handle, 'cuLinkDestroy')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetTexRef
 *         __cuModuleGetTexRef = dlfcn.dlsym(handle, 'cuModuleGetTexRef')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy = dlsym(__pyx_v_handle, __pyx_k_cuLinkDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2154
 *         __cuLinkDestroy = dlfcn.dlsym(handle, 'cuLinkDestroy')
 *         global __cuModuleGetTexRef
 *         __cuModuleGetTexRef = dlfcn.dlsym(handle, 'cuModuleGetTexRef')             # <<<<<<<<<<<<<<
 *         global __cuModuleGetSurfRef
 *         __cuModuleGetSurfRef = dlfcn.dlsym(handle, 'cuModuleGetSurfRef')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetTexRef);

                /* "cuda/bindings/_bindings/cydriver.pyx":2156
 *         __cuModuleGetTexRef = dlfcn.dlsym(handle, 'cuModuleGetTexRef')
 *         global __cuModuleGetSurfRef
 *         __cuModuleGetSurfRef = dlfcn.dlsym(handle, 'cuModuleGetSurfRef')             # <<<<<<<<<<<<<<
 *         global __cuLibraryLoadData
 *         __cuLibraryLoadData = dlfcn.dlsym(handle, 'cuLibraryLoadData')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef = dlsym(__pyx_v_handle, __pyx_k_cuModuleGetSurfRef);

                /* "cuda/bindings/_bindings/cydriver.pyx":2158
 *         __cuModuleGetSurfRef = dlfcn.dlsym(handle, 'cuModuleGetSurfRef')
 *         global __cuLibraryLoadData
 *         __cuLibraryLoadData = dlfcn.dlsym(handle, 'cuLibraryLoadData')             # <<<<<<<<<<<<<<
 *         global __cuLibraryLoadFromFile
 *         __cuLibraryLoadFromFile = dlfcn.dlsym(handle, 'cuLibraryLoadFromFile')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData = dlsym(__pyx_v_handle, __pyx_k_cuLibraryLoadData);

                /* "cuda/bindings/_bindings/cydriver.pyx":2160
 *         __cuLibraryLoadData = dlfcn.dlsym(handle, 'cuLibraryLoadData')
 *         global __cuLibraryLoadFromFile
 *         __cuLibraryLoadFromFile = dlfcn.dlsym(handle, 'cuLibraryLoadFromFile')             # <<<<<<<<<<<<<<
 *         global __cuLibraryUnload
 *         __cuLibraryUnload = dlfcn.dlsym(handle, 'cuLibraryUnload')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile = dlsym(__pyx_v_handle, __pyx_k_cuLibraryLoadFromFile);

                /* "cuda/bindings/_bindings/cydriver.pyx":2162
 *         __cuLibraryLoadFromFile = dlfcn.dlsym(handle, 'cuLibraryLoadFromFile')
 *         global __cuLibraryUnload
 *         __cuLibraryUnload = dlfcn.dlsym(handle, 'cuLibraryUnload')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetKernel
 *         __cuLibraryGetKernel = dlfcn.dlsym(handle, 'cuLibraryGetKernel')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload = dlsym(__pyx_v_handle, __pyx_k_cuLibraryUnload);

                /* "cuda/bindings/_bindings/cydriver.pyx":2164
 *         __cuLibraryUnload = dlfcn.dlsym(handle, 'cuLibraryUnload')
 *         global __cuLibraryGetKernel
 *         __cuLibraryGetKernel = dlfcn.dlsym(handle, 'cuLibraryGetKernel')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetKernelCount
 *         __cuLibraryGetKernelCount = dlfcn.dlsym(handle, 'cuLibraryGetKernelCount')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetKernel);

                /* "cuda/bindings/_bindings/cydriver.pyx":2166
 *         __cuLibraryGetKernel = dlfcn.dlsym(handle, 'cuLibraryGetKernel')
 *         global __cuLibraryGetKernelCount
 *         __cuLibraryGetKernelCount = dlfcn.dlsym(handle, 'cuLibraryGetKernelCount')             # <<<<<<<<<<<<<<
 *         global __cuLibraryEnumerateKernels
 *         __cuLibraryEnumerateKernels = dlfcn.dlsym(handle, 'cuLibraryEnumerateKernels')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetKernelCount);

                /* "cuda/bindings/_bindings/cydriver.pyx":2168
 *         __cuLibraryGetKernelCount = dlfcn.dlsym(handle, 'cuLibraryGetKernelCount')
 *         global __cuLibraryEnumerateKernels
 *         __cuLibraryEnumerateKernels = dlfcn.dlsym(handle, 'cuLibraryEnumerateKernels')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetModule
 *         __cuLibraryGetModule = dlfcn.dlsym(handle, 'cuLibraryGetModule')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels = dlsym(__pyx_v_handle, __pyx_k_cuLibraryEnumerateKernels);

                /* "cuda/bindings/_bindings/cydriver.pyx":2170
 *         __cuLibraryEnumerateKernels = dlfcn.dlsym(handle, 'cuLibraryEnumerateKernels')
 *         global __cuLibraryGetModule
 *         __cuLibraryGetModule = dlfcn.dlsym(handle, 'cuLibraryGetModule')             # <<<<<<<<<<<<<<
 *         global __cuKernelGetFunction
 *         __cuKernelGetFunction = dlfcn.dlsym(handle, 'cuKernelGetFunction')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetModule);

                /* "cuda/bindings/_bindings/cydriver.pyx":2172
 *         __cuLibraryGetModule = dlfcn.dlsym(handle, 'cuLibraryGetModule')
 *         global __cuKernelGetFunction
 *         __cuKernelGetFunction = dlfcn.dlsym(handle, 'cuKernelGetFunction')             # <<<<<<<<<<<<<<
 *         global __cuKernelGetLibrary
 *         __cuKernelGetLibrary = dlfcn.dlsym(handle, 'cuKernelGetLibrary')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction = dlsym(__pyx_v_handle, __pyx_k_cuKernelGetFunction);

                /* "cuda/bindings/_bindings/cydriver.pyx":2174
 *         __cuKernelGetFunction = dlfcn.dlsym(handle, 'cuKernelGetFunction')
 *         global __cuKernelGetLibrary
 *         __cuKernelGetLibrary = dlfcn.dlsym(handle, 'cuKernelGetLibrary')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetGlobal
 *         __cuLibraryGetGlobal = dlfcn.dlsym(handle, 'cuLibraryGetGlobal')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary = dlsym(__pyx_v_handle, __pyx_k_cuKernelGetLibrary);

                /* "cuda/bindings/_bindings/cydriver.pyx":2176
 *         __cuKernelGetLibrary = dlfcn.dlsym(handle, 'cuKernelGetLibrary')
 *         global __cuLibraryGetGlobal
 *         __cuLibraryGetGlobal = dlfcn.dlsym(handle, 'cuLibraryGetGlobal')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetManaged
 *         __cuLibraryGetManaged = dlfcn.dlsym(handle, 'cuLibraryGetManaged')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetGlobal);

                /* "cuda/bindings/_bindings/cydriver.pyx":2178
 *         __cuLibraryGetGlobal = dlfcn.dlsym(handle, 'cuLibraryGetGlobal')
 *         global __cuLibraryGetManaged
 *         __cuLibraryGetManaged = dlfcn.dlsym(handle, 'cuLibraryGetManaged')             # <<<<<<<<<<<<<<
 *         global __cuLibraryGetUnifiedFunction
 *         __cuLibraryGetUnifiedFunction = dlfcn.dlsym(handle, 'cuLibraryGetUnifiedFunction')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetManaged);

                /* "cuda/bindings/_bindings/cydriver.pyx":2180
 *         __cuLibraryGetManaged = dlfcn.dlsym(handle, 'cuLibraryGetManaged')
 *         global __cuLibraryGetUnifiedFunction
 *         __cuLibraryGetUnifiedFunction = dlfcn.dlsym(handle, 'cuLibraryGetUnifiedFunction')             # <<<<<<<<<<<<<<
 *         global __cuKernelGetAttribute
 *         __cuKernelGetAttribute = dlfcn.dlsym(handle, 'cuKernelGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction = dlsym(__pyx_v_handle, __pyx_k_cuLibraryGetUnifiedFunction);

                /* "cuda/bindings/_bindings/cydriver.pyx":2182
 *         __cuLibraryGetUnifiedFunction = dlfcn.dlsym(handle, 'cuLibraryGetUnifiedFunction')
 *         global __cuKernelGetAttribute
 *         __cuKernelGetAttribute = dlfcn.dlsym(handle, 'cuKernelGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuKernelSetAttribute
 *         __cuKernelSetAttribute = dlfcn.dlsym(handle, 'cuKernelSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuKernelGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2184
 *         __cuKernelGetAttribute = dlfcn.dlsym(handle, 'cuKernelGetAttribute')
 *         global __cuKernelSetAttribute
 *         __cuKernelSetAttribute = dlfcn.dlsym(handle, 'cuKernelSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuKernelSetCacheConfig
 *         __cuKernelSetCacheConfig = dlfcn.dlsym(handle, 'cuKernelSetCacheConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuKernelSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2186
 *         __cuKernelSetAttribute = dlfcn.dlsym(handle, 'cuKernelSetAttribute')
 *         global __cuKernelSetCacheConfig
 *         __cuKernelSetCacheConfig = dlfcn.dlsym(handle, 'cuKernelSetCacheConfig')             # <<<<<<<<<<<<<<
 *         global __cuKernelGetName
 *         __cuKernelGetName = dlfcn.dlsym(handle, 'cuKernelGetName')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig = dlsym(__pyx_v_handle, __pyx_k_cuKernelSetCacheConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2188
 *         __cuKernelSetCacheConfig = dlfcn.dlsym(handle, 'cuKernelSetCacheConfig')
 *         global __cuKernelGetName
 *         __cuKernelGetName = dlfcn.dlsym(handle, 'cuKernelGetName')             # <<<<<<<<<<<<<<
 *         global __cuKernelGetParamInfo
 *         __cuKernelGetParamInfo = dlfcn.dlsym(handle, 'cuKernelGetParamInfo')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName = dlsym(__pyx_v_handle, __pyx_k_cuKernelGetName);

                /* "cuda/bindings/_bindings/cydriver.pyx":2190
 *         __cuKernelGetName = dlfcn.dlsym(handle, 'cuKernelGetName')
 *         global __cuKernelGetParamInfo
 *         __cuKernelGetParamInfo = dlfcn.dlsym(handle, 'cuKernelGetParamInfo')             # <<<<<<<<<<<<<<
 *         global __cuMemGetInfo_v2
 *         __cuMemGetInfo_v2 = dlfcn.dlsym(handle, 'cuMemGetInfo_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo = dlsym(__pyx_v_handle, __pyx_k_cuKernelGetParamInfo);

                /* "cuda/bindings/_bindings/cydriver.pyx":2192
 *         __cuKernelGetParamInfo = dlfcn.dlsym(handle, 'cuKernelGetParamInfo')
 *         global __cuMemGetInfo_v2
 *         __cuMemGetInfo_v2 = dlfcn.dlsym(handle, 'cuMemGetInfo_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemAlloc_v2
 *         __cuMemAlloc_v2 = dlfcn.dlsym(handle, 'cuMemAlloc_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemGetInfo_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2194
 *         __cuMemGetInfo_v2 = dlfcn.dlsym(handle, 'cuMemGetInfo_v2')
 *         global __cuMemAlloc_v2
 *         __cuMemAlloc_v2 = dlfcn.dlsym(handle, 'cuMemAlloc_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemAllocPitch_v2
 *         __cuMemAllocPitch_v2 = dlfcn.dlsym(handle, 'cuMemAllocPitch_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemAlloc_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2196
 *         __cuMemAlloc_v2 = dlfcn.dlsym(handle, 'cuMemAlloc_v2')
 *         global __cuMemAllocPitch_v2
 *         __cuMemAllocPitch_v2 = dlfcn.dlsym(handle, 'cuMemAllocPitch_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemFree_v2
 *         __cuMemFree_v2 = dlfcn.dlsym(handle, 'cuMemFree_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocPitch_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2198
 *         __cuMemAllocPitch_v2 = dlfcn.dlsym(handle, 'cuMemAllocPitch_v2')
 *         global __cuMemFree_v2
 *         __cuMemFree_v2 = dlfcn.dlsym(handle, 'cuMemFree_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemGetAddressRange_v2
 *         __cuMemGetAddressRange_v2 = dlfcn.dlsym(handle, 'cuMemGetAddressRange_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemFree_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2200
 *         __cuMemFree_v2 = dlfcn.dlsym(handle, 'cuMemFree_v2')
 *         global __cuMemGetAddressRange_v2
 *         __cuMemGetAddressRange_v2 = dlfcn.dlsym(handle, 'cuMemGetAddressRange_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemAllocHost_v2
 *         __cuMemAllocHost_v2 = dlfcn.dlsym(handle, 'cuMemAllocHost_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemGetAddressRange_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2202
 *         __cuMemGetAddressRange_v2 = dlfcn.dlsym(handle, 'cuMemGetAddressRange_v2')
 *         global __cuMemAllocHost_v2
 *         __cuMemAllocHost_v2 = dlfcn.dlsym(handle, 'cuMemAllocHost_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemFreeHost
 *         __cuMemFreeHost = dlfcn.dlsym(handle, 'cuMemFreeHost')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocHost_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2204
 *         __cuMemAllocHost_v2 = dlfcn.dlsym(handle, 'cuMemAllocHost_v2')
 *         global __cuMemFreeHost
 *         __cuMemFreeHost = dlfcn.dlsym(handle, 'cuMemFreeHost')             # <<<<<<<<<<<<<<
 *         global __cuMemHostAlloc
 *         __cuMemHostAlloc = dlfcn.dlsym(handle, 'cuMemHostAlloc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost = dlsym(__pyx_v_handle, __pyx_k_cuMemFreeHost);

                /* "cuda/bindings/_bindings/cydriver.pyx":2206
 *         __cuMemFreeHost = dlfcn.dlsym(handle, 'cuMemFreeHost')
 *         global __cuMemHostAlloc
 *         __cuMemHostAlloc = dlfcn.dlsym(handle, 'cuMemHostAlloc')             # <<<<<<<<<<<<<<
 *         global __cuMemHostGetDevicePointer_v2
 *         __cuMemHostGetDevicePointer_v2 = dlfcn.dlsym(handle, 'cuMemHostGetDevicePointer_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc = dlsym(__pyx_v_handle, __pyx_k_cuMemHostAlloc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2208
 *         __cuMemHostAlloc = dlfcn.dlsym(handle, 'cuMemHostAlloc')
 *         global __cuMemHostGetDevicePointer_v2
 *         __cuMemHostGetDevicePointer_v2 = dlfcn.dlsym(handle, 'cuMemHostGetDevicePointer_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemHostGetFlags
 *         __cuMemHostGetFlags = dlfcn.dlsym(handle, 'cuMemHostGetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemHostGetDevicePointer_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2210
 *         __cuMemHostGetDevicePointer_v2 = dlfcn.dlsym(handle, 'cuMemHostGetDevicePointer_v2')
 *         global __cuMemHostGetFlags
 *         __cuMemHostGetFlags = dlfcn.dlsym(handle, 'cuMemHostGetFlags')             # <<<<<<<<<<<<<<
 *         global __cuMemAllocManaged
 *         __cuMemAllocManaged = dlfcn.dlsym(handle, 'cuMemAllocManaged')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuMemHostGetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2212
 *         __cuMemHostGetFlags = dlfcn.dlsym(handle, 'cuMemHostGetFlags')
 *         global __cuMemAllocManaged
 *         __cuMemAllocManaged = dlfcn.dlsym(handle, 'cuMemAllocManaged')             # <<<<<<<<<<<<<<
 *         global __cuDeviceRegisterAsyncNotification
 *         __cuDeviceRegisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceRegisterAsyncNotification')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged = dlsym(__pyx_v_handle, __pyx_k_cuMemAllocManaged);

                /* "cuda/bindings/_bindings/cydriver.pyx":2214
 *         __cuMemAllocManaged = dlfcn.dlsym(handle, 'cuMemAllocManaged')
 *         global __cuDeviceRegisterAsyncNotification
 *         __cuDeviceRegisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceRegisterAsyncNotification')             # <<<<<<<<<<<<<<
 *         global __cuDeviceUnregisterAsyncNotification
 *         __cuDeviceUnregisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceUnregisterAsyncNotification')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification = dlsym(__pyx_v_handle, __pyx_k_cuDeviceRegisterAsyncNotificatio);

                /* "cuda/bindings/_bindings/cydriver.pyx":2216
 *         __cuDeviceRegisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceRegisterAsyncNotification')
 *         global __cuDeviceUnregisterAsyncNotification
 *         __cuDeviceUnregisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceUnregisterAsyncNotification')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetByPCIBusId
 *         __cuDeviceGetByPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetByPCIBusId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification = dlsym(__pyx_v_handle, __pyx_k_cuDeviceUnregisterAsyncNotificat);

                /* "cuda/bindings/_bindings/cydriver.pyx":2218
 *         __cuDeviceUnregisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceUnregisterAsyncNotification')
 *         global __cuDeviceGetByPCIBusId
 *         __cuDeviceGetByPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetByPCIBusId')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetPCIBusId
 *         __cuDeviceGetPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetPCIBusId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetByPCIBusId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2220
 *         __cuDeviceGetByPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetByPCIBusId')
 *         global __cuDeviceGetPCIBusId
 *         __cuDeviceGetPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetPCIBusId')             # <<<<<<<<<<<<<<
 *         global __cuIpcGetEventHandle
 *         __cuIpcGetEventHandle = dlfcn.dlsym(handle, 'cuIpcGetEventHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetPCIBusId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2222
 *         __cuDeviceGetPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetPCIBusId')
 *         global __cuIpcGetEventHandle
 *         __cuIpcGetEventHandle = dlfcn.dlsym(handle, 'cuIpcGetEventHandle')             # <<<<<<<<<<<<<<
 *         global __cuIpcOpenEventHandle
 *         __cuIpcOpenEventHandle = dlfcn.dlsym(handle, 'cuIpcOpenEventHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle = dlsym(__pyx_v_handle, __pyx_k_cuIpcGetEventHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2224
 *         __cuIpcGetEventHandle = dlfcn.dlsym(handle, 'cuIpcGetEventHandle')
 *         global __cuIpcOpenEventHandle
 *         __cuIpcOpenEventHandle = dlfcn.dlsym(handle, 'cuIpcOpenEventHandle')             # <<<<<<<<<<<<<<
 *         global __cuIpcGetMemHandle
 *         __cuIpcGetMemHandle = dlfcn.dlsym(handle, 'cuIpcGetMemHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle = dlsym(__pyx_v_handle, __pyx_k_cuIpcOpenEventHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2226
 *         __cuIpcOpenEventHandle = dlfcn.dlsym(handle, 'cuIpcOpenEventHandle')
 *         global __cuIpcGetMemHandle
 *         __cuIpcGetMemHandle = dlfcn.dlsym(handle, 'cuIpcGetMemHandle')             # <<<<<<<<<<<<<<
 *         global __cuIpcOpenMemHandle_v2
 *         __cuIpcOpenMemHandle_v2 = dlfcn.dlsym(handle, 'cuIpcOpenMemHandle_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle = dlsym(__pyx_v_handle, __pyx_k_cuIpcGetMemHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2228
 *         __cuIpcGetMemHandle = dlfcn.dlsym(handle, 'cuIpcGetMemHandle')
 *         global __cuIpcOpenMemHandle_v2
 *         __cuIpcOpenMemHandle_v2 = dlfcn.dlsym(handle, 'cuIpcOpenMemHandle_v2')             # <<<<<<<<<<<<<<
 *         global __cuIpcCloseMemHandle
 *         __cuIpcCloseMemHandle = dlfcn.dlsym(handle, 'cuIpcCloseMemHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2 = dlsym(__pyx_v_handle, __pyx_k_cuIpcOpenMemHandle_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2230
 *         __cuIpcOpenMemHandle_v2 = dlfcn.dlsym(handle, 'cuIpcOpenMemHandle_v2')
 *         global __cuIpcCloseMemHandle
 *         __cuIpcCloseMemHandle = dlfcn.dlsym(handle, 'cuIpcCloseMemHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemHostRegister_v2
 *         __cuMemHostRegister_v2 = dlfcn.dlsym(handle, 'cuMemHostRegister_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle = dlsym(__pyx_v_handle, __pyx_k_cuIpcCloseMemHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2232
 *         __cuIpcCloseMemHandle = dlfcn.dlsym(handle, 'cuIpcCloseMemHandle')
 *         global __cuMemHostRegister_v2
 *         __cuMemHostRegister_v2 = dlfcn.dlsym(handle, 'cuMemHostRegister_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemHostUnregister
 *         __cuMemHostUnregister = dlfcn.dlsym(handle, 'cuMemHostUnregister')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemHostRegister_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2234
 *         __cuMemHostRegister_v2 = dlfcn.dlsym(handle, 'cuMemHostRegister_v2')
 *         global __cuMemHostUnregister
 *         __cuMemHostUnregister = dlfcn.dlsym(handle, 'cuMemHostUnregister')             # <<<<<<<<<<<<<<
 *         global __cuArrayCreate_v2
 *         __cuArrayCreate_v2 = dlfcn.dlsym(handle, 'cuArrayCreate_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister = dlsym(__pyx_v_handle, __pyx_k_cuMemHostUnregister);

                /* "cuda/bindings/_bindings/cydriver.pyx":2236
 *         __cuMemHostUnregister = dlfcn.dlsym(handle, 'cuMemHostUnregister')
 *         global __cuArrayCreate_v2
 *         __cuArrayCreate_v2 = dlfcn.dlsym(handle, 'cuArrayCreate_v2')             # <<<<<<<<<<<<<<
 *         global __cuArrayGetDescriptor_v2
 *         __cuArrayGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArrayGetDescriptor_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2 = dlsym(__pyx_v_handle, __pyx_k_cuArrayCreate_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2238
 *         __cuArrayCreate_v2 = dlfcn.dlsym(handle, 'cuArrayCreate_v2')
 *         global __cuArrayGetDescriptor_v2
 *         __cuArrayGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArrayGetDescriptor_v2')             # <<<<<<<<<<<<<<
 *         global __cuArrayGetSparseProperties
 *         __cuArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuArrayGetSparseProperties')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2 = dlsym(__pyx_v_handle, __pyx_k_cuArrayGetDescriptor_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2240
 *         __cuArrayGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArrayGetDescriptor_v2')
 *         global __cuArrayGetSparseProperties
 *         __cuArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuArrayGetSparseProperties')             # <<<<<<<<<<<<<<
 *         global __cuMipmappedArrayGetSparseProperties
 *         __cuMipmappedArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuMipmappedArrayGetSparseProperties')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties = dlsym(__pyx_v_handle, __pyx_k_cuArrayGetSparseProperties);

                /* "cuda/bindings/_bindings/cydriver.pyx":2242
 *         __cuArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuArrayGetSparseProperties')
 *         global __cuMipmappedArrayGetSparseProperties
 *         __cuMipmappedArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuMipmappedArrayGetSparseProperties')             # <<<<<<<<<<<<<<
 *         global __cuArrayGetMemoryRequirements
 *         __cuArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuArrayGetMemoryRequirements')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties = dlsym(__pyx_v_handle, __pyx_k_cuMipmappedArrayGetSparsePropert);

                /* "cuda/bindings/_bindings/cydriver.pyx":2244
 *         __cuMipmappedArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuMipmappedArrayGetSparseProperties')
 *         global __cuArrayGetMemoryRequirements
 *         __cuArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuArrayGetMemoryRequirements')             # <<<<<<<<<<<<<<
 *         global __cuMipmappedArrayGetMemoryRequirements
 *         __cuMipmappedArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuMipmappedArrayGetMemoryRequirements')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements = dlsym(__pyx_v_handle, __pyx_k_cuArrayGetMemoryRequirements);

                /* "cuda/bindings/_bindings/cydriver.pyx":2246
 *         __cuArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuArrayGetMemoryRequirements')
 *         global __cuMipmappedArrayGetMemoryRequirements
 *         __cuMipmappedArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuMipmappedArrayGetMemoryRequirements')             # <<<<<<<<<<<<<<
 *         global __cuArrayGetPlane
 *         __cuArrayGetPlane = dlfcn.dlsym(handle, 'cuArrayGetPlane')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements = dlsym(__pyx_v_handle, __pyx_k_cuMipmappedArrayGetMemoryRequire);

                /* "cuda/bindings/_bindings/cydriver.pyx":2248
 *         __cuMipmappedArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuMipmappedArrayGetMemoryRequirements')
 *         global __cuArrayGetPlane
 *         __cuArrayGetPlane = dlfcn.dlsym(handle, 'cuArrayGetPlane')             # <<<<<<<<<<<<<<
 *         global __cuArrayDestroy
 *         __cuArrayDestroy = dlfcn.dlsym(handle, 'cuArrayDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane = dlsym(__pyx_v_handle, __pyx_k_cuArrayGetPlane);

                /* "cuda/bindings/_bindings/cydriver.pyx":2250
 *         __cuArrayGetPlane = dlfcn.dlsym(handle, 'cuArrayGetPlane')
 *         global __cuArrayDestroy
 *         __cuArrayDestroy = dlfcn.dlsym(handle, 'cuArrayDestroy')             # <<<<<<<<<<<<<<
 *         global __cuArray3DCreate_v2
 *         __cuArray3DCreate_v2 = dlfcn.dlsym(handle, 'cuArray3DCreate_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy = dlsym(__pyx_v_handle, __pyx_k_cuArrayDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2252
 *         __cuArrayDestroy = dlfcn.dlsym(handle, 'cuArrayDestroy')
 *         global __cuArray3DCreate_v2
 *         __cuArray3DCreate_v2 = dlfcn.dlsym(handle, 'cuArray3DCreate_v2')             # <<<<<<<<<<<<<<
 *         global __cuArray3DGetDescriptor_v2
 *         __cuArray3DGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArray3DGetDescriptor_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2 = dlsym(__pyx_v_handle, __pyx_k_cuArray3DCreate_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2254
 *         __cuArray3DCreate_v2 = dlfcn.dlsym(handle, 'cuArray3DCreate_v2')
 *         global __cuArray3DGetDescriptor_v2
 *         __cuArray3DGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArray3DGetDescriptor_v2')             # <<<<<<<<<<<<<<
 *         global __cuMipmappedArrayCreate
 *         __cuMipmappedArrayCreate = dlfcn.dlsym(handle, 'cuMipmappedArrayCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2 = dlsym(__pyx_v_handle, __pyx_k_cuArray3DGetDescriptor_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2256
 *         __cuArray3DGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArray3DGetDescriptor_v2')
 *         global __cuMipmappedArrayCreate
 *         __cuMipmappedArrayCreate = dlfcn.dlsym(handle, 'cuMipmappedArrayCreate')             # <<<<<<<<<<<<<<
 *         global __cuMipmappedArrayGetLevel
 *         __cuMipmappedArrayGetLevel = dlfcn.dlsym(handle, 'cuMipmappedArrayGetLevel')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate = dlsym(__pyx_v_handle, __pyx_k_cuMipmappedArrayCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2258
 *         __cuMipmappedArrayCreate = dlfcn.dlsym(handle, 'cuMipmappedArrayCreate')
 *         global __cuMipmappedArrayGetLevel
 *         __cuMipmappedArrayGetLevel = dlfcn.dlsym(handle, 'cuMipmappedArrayGetLevel')             # <<<<<<<<<<<<<<
 *         global __cuMipmappedArrayDestroy
 *         __cuMipmappedArrayDestroy = dlfcn.dlsym(handle, 'cuMipmappedArrayDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel = dlsym(__pyx_v_handle, __pyx_k_cuMipmappedArrayGetLevel);

                /* "cuda/bindings/_bindings/cydriver.pyx":2260
 *         __cuMipmappedArrayGetLevel = dlfcn.dlsym(handle, 'cuMipmappedArrayGetLevel')
 *         global __cuMipmappedArrayDestroy
 *         __cuMipmappedArrayDestroy = dlfcn.dlsym(handle, 'cuMipmappedArrayDestroy')             # <<<<<<<<<<<<<<
 *         global __cuMemGetHandleForAddressRange
 *         __cuMemGetHandleForAddressRange = dlfcn.dlsym(handle, 'cuMemGetHandleForAddressRange')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy = dlsym(__pyx_v_handle, __pyx_k_cuMipmappedArrayDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2262
 *         __cuMipmappedArrayDestroy = dlfcn.dlsym(handle, 'cuMipmappedArrayDestroy')
 *         global __cuMemGetHandleForAddressRange
 *         __cuMemGetHandleForAddressRange = dlfcn.dlsym(handle, 'cuMemGetHandleForAddressRange')             # <<<<<<<<<<<<<<
 *         global __cuMemAddressReserve
 *         __cuMemAddressReserve = dlfcn.dlsym(handle, 'cuMemAddressReserve')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange = dlsym(__pyx_v_handle, __pyx_k_cuMemGetHandleForAddressRange);

                /* "cuda/bindings/_bindings/cydriver.pyx":2264
 *         __cuMemGetHandleForAddressRange = dlfcn.dlsym(handle, 'cuMemGetHandleForAddressRange')
 *         global __cuMemAddressReserve
 *         __cuMemAddressReserve = dlfcn.dlsym(handle, 'cuMemAddressReserve')             # <<<<<<<<<<<<<<
 *         global __cuMemAddressFree
 *         __cuMemAddressFree = dlfcn.dlsym(handle, 'cuMemAddressFree')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve = dlsym(__pyx_v_handle, __pyx_k_cuMemAddressReserve);

                /* "cuda/bindings/_bindings/cydriver.pyx":2266
 *         __cuMemAddressReserve = dlfcn.dlsym(handle, 'cuMemAddressReserve')
 *         global __cuMemAddressFree
 *         __cuMemAddressFree = dlfcn.dlsym(handle, 'cuMemAddressFree')             # <<<<<<<<<<<<<<
 *         global __cuMemCreate
 *         __cuMemCreate = dlfcn.dlsym(handle, 'cuMemCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree = dlsym(__pyx_v_handle, __pyx_k_cuMemAddressFree);

                /* "cuda/bindings/_bindings/cydriver.pyx":2268
 *         __cuMemAddressFree = dlfcn.dlsym(handle, 'cuMemAddressFree')
 *         global __cuMemCreate
 *         __cuMemCreate = dlfcn.dlsym(handle, 'cuMemCreate')             # <<<<<<<<<<<<<<
 *         global __cuMemRelease
 *         __cuMemRelease = dlfcn.dlsym(handle, 'cuMemRelease')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate = dlsym(__pyx_v_handle, __pyx_k_cuMemCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2270
 *         __cuMemCreate = dlfcn.dlsym(handle, 'cuMemCreate')
 *         global __cuMemRelease
 *         __cuMemRelease = dlfcn.dlsym(handle, 'cuMemRelease')             # <<<<<<<<<<<<<<
 *         global __cuMemMap
 *         __cuMemMap = dlfcn.dlsym(handle, 'cuMemMap')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease = dlsym(__pyx_v_handle, __pyx_k_cuMemRelease);

                /* "cuda/bindings/_bindings/cydriver.pyx":2272
 *         __cuMemRelease = dlfcn.dlsym(handle, 'cuMemRelease')
 *         global __cuMemMap
 *         __cuMemMap = dlfcn.dlsym(handle, 'cuMemMap')             # <<<<<<<<<<<<<<
 *         global __cuMemUnmap
 *         __cuMemUnmap = dlfcn.dlsym(handle, 'cuMemUnmap')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap = dlsym(__pyx_v_handle, __pyx_k_cuMemMap);

                /* "cuda/bindings/_bindings/cydriver.pyx":2274
 *         __cuMemMap = dlfcn.dlsym(handle, 'cuMemMap')
 *         global __cuMemUnmap
 *         __cuMemUnmap = dlfcn.dlsym(handle, 'cuMemUnmap')             # <<<<<<<<<<<<<<
 *         global __cuMemSetAccess
 *         __cuMemSetAccess = dlfcn.dlsym(handle, 'cuMemSetAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap = dlsym(__pyx_v_handle, __pyx_k_cuMemUnmap);

                /* "cuda/bindings/_bindings/cydriver.pyx":2276
 *         __cuMemUnmap = dlfcn.dlsym(handle, 'cuMemUnmap')
 *         global __cuMemSetAccess
 *         __cuMemSetAccess = dlfcn.dlsym(handle, 'cuMemSetAccess')             # <<<<<<<<<<<<<<
 *         global __cuMemGetAccess
 *         __cuMemGetAccess = dlfcn.dlsym(handle, 'cuMemGetAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess = dlsym(__pyx_v_handle, __pyx_k_cuMemSetAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2278
 *         __cuMemSetAccess = dlfcn.dlsym(handle, 'cuMemSetAccess')
 *         global __cuMemGetAccess
 *         __cuMemGetAccess = dlfcn.dlsym(handle, 'cuMemGetAccess')             # <<<<<<<<<<<<<<
 *         global __cuMemExportToShareableHandle
 *         __cuMemExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemExportToShareableHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess = dlsym(__pyx_v_handle, __pyx_k_cuMemGetAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2280
 *         __cuMemGetAccess = dlfcn.dlsym(handle, 'cuMemGetAccess')
 *         global __cuMemExportToShareableHandle
 *         __cuMemExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemExportToShareableHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemImportFromShareableHandle
 *         __cuMemImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemImportFromShareableHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemExportToShareableHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2282
 *         __cuMemExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemExportToShareableHandle')
 *         global __cuMemImportFromShareableHandle
 *         __cuMemImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemImportFromShareableHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemGetAllocationGranularity
 *         __cuMemGetAllocationGranularity = dlfcn.dlsym(handle, 'cuMemGetAllocationGranularity')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemImportFromShareableHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2284
 *         __cuMemImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemImportFromShareableHandle')
 *         global __cuMemGetAllocationGranularity
 *         __cuMemGetAllocationGranularity = dlfcn.dlsym(handle, 'cuMemGetAllocationGranularity')             # <<<<<<<<<<<<<<
 *         global __cuMemGetAllocationPropertiesFromHandle
 *         __cuMemGetAllocationPropertiesFromHandle = dlfcn.dlsym(handle, 'cuMemGetAllocationPropertiesFromHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity = dlsym(__pyx_v_handle, __pyx_k_cuMemGetAllocationGranularity);

                /* "cuda/bindings/_bindings/cydriver.pyx":2286
 *         __cuMemGetAllocationGranularity = dlfcn.dlsym(handle, 'cuMemGetAllocationGranularity')
 *         global __cuMemGetAllocationPropertiesFromHandle
 *         __cuMemGetAllocationPropertiesFromHandle = dlfcn.dlsym(handle, 'cuMemGetAllocationPropertiesFromHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemRetainAllocationHandle
 *         __cuMemRetainAllocationHandle = dlfcn.dlsym(handle, 'cuMemRetainAllocationHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemGetAllocationPropertiesFrom);

                /* "cuda/bindings/_bindings/cydriver.pyx":2288
 *         __cuMemGetAllocationPropertiesFromHandle = dlfcn.dlsym(handle, 'cuMemGetAllocationPropertiesFromHandle')
 *         global __cuMemRetainAllocationHandle
 *         __cuMemRetainAllocationHandle = dlfcn.dlsym(handle, 'cuMemRetainAllocationHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolTrimTo
 *         __cuMemPoolTrimTo = dlfcn.dlsym(handle, 'cuMemPoolTrimTo')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemRetainAllocationHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2290
 *         __cuMemRetainAllocationHandle = dlfcn.dlsym(handle, 'cuMemRetainAllocationHandle')
 *         global __cuMemPoolTrimTo
 *         __cuMemPoolTrimTo = dlfcn.dlsym(handle, 'cuMemPoolTrimTo')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolSetAttribute
 *         __cuMemPoolSetAttribute = dlfcn.dlsym(handle, 'cuMemPoolSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolTrimTo);

                /* "cuda/bindings/_bindings/cydriver.pyx":2292
 *         __cuMemPoolTrimTo = dlfcn.dlsym(handle, 'cuMemPoolTrimTo')
 *         global __cuMemPoolSetAttribute
 *         __cuMemPoolSetAttribute = dlfcn.dlsym(handle, 'cuMemPoolSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolGetAttribute
 *         __cuMemPoolGetAttribute = dlfcn.dlsym(handle, 'cuMemPoolGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2294
 *         __cuMemPoolSetAttribute = dlfcn.dlsym(handle, 'cuMemPoolSetAttribute')
 *         global __cuMemPoolGetAttribute
 *         __cuMemPoolGetAttribute = dlfcn.dlsym(handle, 'cuMemPoolGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolSetAccess
 *         __cuMemPoolSetAccess = dlfcn.dlsym(handle, 'cuMemPoolSetAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2296
 *         __cuMemPoolGetAttribute = dlfcn.dlsym(handle, 'cuMemPoolGetAttribute')
 *         global __cuMemPoolSetAccess
 *         __cuMemPoolSetAccess = dlfcn.dlsym(handle, 'cuMemPoolSetAccess')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolGetAccess
 *         __cuMemPoolGetAccess = dlfcn.dlsym(handle, 'cuMemPoolGetAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolSetAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2298
 *         __cuMemPoolSetAccess = dlfcn.dlsym(handle, 'cuMemPoolSetAccess')
 *         global __cuMemPoolGetAccess
 *         __cuMemPoolGetAccess = dlfcn.dlsym(handle, 'cuMemPoolGetAccess')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolCreate
 *         __cuMemPoolCreate = dlfcn.dlsym(handle, 'cuMemPoolCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolGetAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2300
 *         __cuMemPoolGetAccess = dlfcn.dlsym(handle, 'cuMemPoolGetAccess')
 *         global __cuMemPoolCreate
 *         __cuMemPoolCreate = dlfcn.dlsym(handle, 'cuMemPoolCreate')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolDestroy
 *         __cuMemPoolDestroy = dlfcn.dlsym(handle, 'cuMemPoolDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2302
 *         __cuMemPoolCreate = dlfcn.dlsym(handle, 'cuMemPoolCreate')
 *         global __cuMemPoolDestroy
 *         __cuMemPoolDestroy = dlfcn.dlsym(handle, 'cuMemPoolDestroy')             # <<<<<<<<<<<<<<
 *         global __cuMemGetDefaultMemPool
 *         __cuMemGetDefaultMemPool = dlfcn.dlsym(handle, 'cuMemGetDefaultMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2304
 *         __cuMemPoolDestroy = dlfcn.dlsym(handle, 'cuMemPoolDestroy')
 *         global __cuMemGetDefaultMemPool
 *         __cuMemGetDefaultMemPool = dlfcn.dlsym(handle, 'cuMemGetDefaultMemPool')             # <<<<<<<<<<<<<<
 *         global __cuMemGetMemPool
 *         __cuMemGetMemPool = dlfcn.dlsym(handle, 'cuMemGetMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool = dlsym(__pyx_v_handle, __pyx_k_cuMemGetDefaultMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2306
 *         __cuMemGetDefaultMemPool = dlfcn.dlsym(handle, 'cuMemGetDefaultMemPool')
 *         global __cuMemGetMemPool
 *         __cuMemGetMemPool = dlfcn.dlsym(handle, 'cuMemGetMemPool')             # <<<<<<<<<<<<<<
 *         global __cuMemSetMemPool
 *         __cuMemSetMemPool = dlfcn.dlsym(handle, 'cuMemSetMemPool')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool = dlsym(__pyx_v_handle, __pyx_k_cuMemGetMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2308
 *         __cuMemGetMemPool = dlfcn.dlsym(handle, 'cuMemGetMemPool')
 *         global __cuMemSetMemPool
 *         __cuMemSetMemPool = dlfcn.dlsym(handle, 'cuMemSetMemPool')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolExportToShareableHandle
 *         __cuMemPoolExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolExportToShareableHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool = dlsym(__pyx_v_handle, __pyx_k_cuMemSetMemPool);

                /* "cuda/bindings/_bindings/cydriver.pyx":2310
 *         __cuMemSetMemPool = dlfcn.dlsym(handle, 'cuMemSetMemPool')
 *         global __cuMemPoolExportToShareableHandle
 *         __cuMemPoolExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolExportToShareableHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolImportFromShareableHandle
 *         __cuMemPoolImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolImportFromShareableHandle')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolExportToShareableHandle);

                /* "cuda/bindings/_bindings/cydriver.pyx":2312
 *         __cuMemPoolExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolExportToShareableHandle')
 *         global __cuMemPoolImportFromShareableHandle
 *         __cuMemPoolImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolImportFromShareableHandle')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolExportPointer
 *         __cuMemPoolExportPointer = dlfcn.dlsym(handle, 'cuMemPoolExportPointer')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolImportFromShareableHand);

                /* "cuda/bindings/_bindings/cydriver.pyx":2314
 *         __cuMemPoolImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolImportFromShareableHandle')
 *         global __cuMemPoolExportPointer
 *         __cuMemPoolExportPointer = dlfcn.dlsym(handle, 'cuMemPoolExportPointer')             # <<<<<<<<<<<<<<
 *         global __cuMemPoolImportPointer
 *         __cuMemPoolImportPointer = dlfcn.dlsym(handle, 'cuMemPoolImportPointer')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolExportPointer);

                /* "cuda/bindings/_bindings/cydriver.pyx":2316
 *         __cuMemPoolExportPointer = dlfcn.dlsym(handle, 'cuMemPoolExportPointer')
 *         global __cuMemPoolImportPointer
 *         __cuMemPoolImportPointer = dlfcn.dlsym(handle, 'cuMemPoolImportPointer')             # <<<<<<<<<<<<<<
 *         global __cuMulticastCreate
 *         __cuMulticastCreate = dlfcn.dlsym(handle, 'cuMulticastCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer = dlsym(__pyx_v_handle, __pyx_k_cuMemPoolImportPointer);

                /* "cuda/bindings/_bindings/cydriver.pyx":2318
 *         __cuMemPoolImportPointer = dlfcn.dlsym(handle, 'cuMemPoolImportPointer')
 *         global __cuMulticastCreate
 *         __cuMulticastCreate = dlfcn.dlsym(handle, 'cuMulticastCreate')             # <<<<<<<<<<<<<<
 *         global __cuMulticastAddDevice
 *         __cuMulticastAddDevice = dlfcn.dlsym(handle, 'cuMulticastAddDevice')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate = dlsym(__pyx_v_handle, __pyx_k_cuMulticastCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2320
 *         __cuMulticastCreate = dlfcn.dlsym(handle, 'cuMulticastCreate')
 *         global __cuMulticastAddDevice
 *         __cuMulticastAddDevice = dlfcn.dlsym(handle, 'cuMulticastAddDevice')             # <<<<<<<<<<<<<<
 *         global __cuMulticastBindMem
 *         __cuMulticastBindMem = dlfcn.dlsym(handle, 'cuMulticastBindMem')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice = dlsym(__pyx_v_handle, __pyx_k_cuMulticastAddDevice);

                /* "cuda/bindings/_bindings/cydriver.pyx":2322
 *         __cuMulticastAddDevice = dlfcn.dlsym(handle, 'cuMulticastAddDevice')
 *         global __cuMulticastBindMem
 *         __cuMulticastBindMem = dlfcn.dlsym(handle, 'cuMulticastBindMem')             # <<<<<<<<<<<<<<
 *         global __cuMulticastBindMem_v2
 *         __cuMulticastBindMem_v2 = dlfcn.dlsym(handle, 'cuMulticastBindMem_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem = dlsym(__pyx_v_handle, __pyx_k_cuMulticastBindMem);

                /* "cuda/bindings/_bindings/cydriver.pyx":2324
 *         __cuMulticastBindMem = dlfcn.dlsym(handle, 'cuMulticastBindMem')
 *         global __cuMulticastBindMem_v2
 *         __cuMulticastBindMem_v2 = dlfcn.dlsym(handle, 'cuMulticastBindMem_v2')             # <<<<<<<<<<<<<<
 *         global __cuMulticastBindAddr
 *         __cuMulticastBindAddr = dlfcn.dlsym(handle, 'cuMulticastBindAddr')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMulticastBindMem_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2326
 *         __cuMulticastBindMem_v2 = dlfcn.dlsym(handle, 'cuMulticastBindMem_v2')
 *         global __cuMulticastBindAddr
 *         __cuMulticastBindAddr = dlfcn.dlsym(handle, 'cuMulticastBindAddr')             # <<<<<<<<<<<<<<
 *         global __cuMulticastBindAddr_v2
 *         __cuMulticastBindAddr_v2 = dlfcn.dlsym(handle, 'cuMulticastBindAddr_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr = dlsym(__pyx_v_handle, __pyx_k_cuMulticastBindAddr);

                /* "cuda/bindings/_bindings/cydriver.pyx":2328
 *         __cuMulticastBindAddr = dlfcn.dlsym(handle, 'cuMulticastBindAddr')
 *         global __cuMulticastBindAddr_v2
 *         __cuMulticastBindAddr_v2 = dlfcn.dlsym(handle, 'cuMulticastBindAddr_v2')             # <<<<<<<<<<<<<<
 *         global __cuMulticastUnbind
 *         __cuMulticastUnbind = dlfcn.dlsym(handle, 'cuMulticastUnbind')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMulticastBindAddr_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2330
 *         __cuMulticastBindAddr_v2 = dlfcn.dlsym(handle, 'cuMulticastBindAddr_v2')
 *         global __cuMulticastUnbind
 *         __cuMulticastUnbind = dlfcn.dlsym(handle, 'cuMulticastUnbind')             # <<<<<<<<<<<<<<
 *         global __cuMulticastGetGranularity
 *         __cuMulticastGetGranularity = dlfcn.dlsym(handle, 'cuMulticastGetGranularity')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind = dlsym(__pyx_v_handle, __pyx_k_cuMulticastUnbind);

                /* "cuda/bindings/_bindings/cydriver.pyx":2332
 *         __cuMulticastUnbind = dlfcn.dlsym(handle, 'cuMulticastUnbind')
 *         global __cuMulticastGetGranularity
 *         __cuMulticastGetGranularity = dlfcn.dlsym(handle, 'cuMulticastGetGranularity')             # <<<<<<<<<<<<<<
 *         global __cuPointerGetAttribute
 *         __cuPointerGetAttribute = dlfcn.dlsym(handle, 'cuPointerGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity = dlsym(__pyx_v_handle, __pyx_k_cuMulticastGetGranularity);

                /* "cuda/bindings/_bindings/cydriver.pyx":2334
 *         __cuMulticastGetGranularity = dlfcn.dlsym(handle, 'cuMulticastGetGranularity')
 *         global __cuPointerGetAttribute
 *         __cuPointerGetAttribute = dlfcn.dlsym(handle, 'cuPointerGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuMemAdvise_v2
 *         __cuMemAdvise_v2 = dlfcn.dlsym(handle, 'cuMemAdvise_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuPointerGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2336
 *         __cuPointerGetAttribute = dlfcn.dlsym(handle, 'cuPointerGetAttribute')
 *         global __cuMemAdvise_v2
 *         __cuMemAdvise_v2 = dlfcn.dlsym(handle, 'cuMemAdvise_v2')             # <<<<<<<<<<<<<<
 *         global __cuMemRangeGetAttribute
 *         __cuMemRangeGetAttribute = dlfcn.dlsym(handle, 'cuMemRangeGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2 = dlsym(__pyx_v_handle, __pyx_k_cuMemAdvise_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2338
 *         __cuMemAdvise_v2 = dlfcn.dlsym(handle, 'cuMemAdvise_v2')
 *         global __cuMemRangeGetAttribute
 *         __cuMemRangeGetAttribute = dlfcn.dlsym(handle, 'cuMemRangeGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuMemRangeGetAttributes
 *         __cuMemRangeGetAttributes = dlfcn.dlsym(handle, 'cuMemRangeGetAttributes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuMemRangeGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2340
 *         __cuMemRangeGetAttribute = dlfcn.dlsym(handle, 'cuMemRangeGetAttribute')
 *         global __cuMemRangeGetAttributes
 *         __cuMemRangeGetAttributes = dlfcn.dlsym(handle, 'cuMemRangeGetAttributes')             # <<<<<<<<<<<<<<
 *         global __cuPointerSetAttribute
 *         __cuPointerSetAttribute = dlfcn.dlsym(handle, 'cuPointerSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes = dlsym(__pyx_v_handle, __pyx_k_cuMemRangeGetAttributes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2342
 *         __cuMemRangeGetAttributes = dlfcn.dlsym(handle, 'cuMemRangeGetAttributes')
 *         global __cuPointerSetAttribute
 *         __cuPointerSetAttribute = dlfcn.dlsym(handle, 'cuPointerSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuPointerGetAttributes
 *         __cuPointerGetAttributes = dlfcn.dlsym(handle, 'cuPointerGetAttributes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuPointerSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2344
 *         __cuPointerSetAttribute = dlfcn.dlsym(handle, 'cuPointerSetAttribute')
 *         global __cuPointerGetAttributes
 *         __cuPointerGetAttributes = dlfcn.dlsym(handle, 'cuPointerGetAttributes')             # <<<<<<<<<<<<<<
 *         global __cuStreamCreate
 *         __cuStreamCreate = dlfcn.dlsym(handle, 'cuStreamCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes = dlsym(__pyx_v_handle, __pyx_k_cuPointerGetAttributes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2346
 *         __cuPointerGetAttributes = dlfcn.dlsym(handle, 'cuPointerGetAttributes')
 *         global __cuStreamCreate
 *         __cuStreamCreate = dlfcn.dlsym(handle, 'cuStreamCreate')             # <<<<<<<<<<<<<<
 *         global __cuStreamCreateWithPriority
 *         __cuStreamCreateWithPriority = dlfcn.dlsym(handle, 'cuStreamCreateWithPriority')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate = dlsym(__pyx_v_handle, __pyx_k_cuStreamCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2348
 *         __cuStreamCreate = dlfcn.dlsym(handle, 'cuStreamCreate')
 *         global __cuStreamCreateWithPriority
 *         __cuStreamCreateWithPriority = dlfcn.dlsym(handle, 'cuStreamCreateWithPriority')             # <<<<<<<<<<<<<<
 *         global __cuThreadExchangeStreamCaptureMode
 *         __cuThreadExchangeStreamCaptureMode = dlfcn.dlsym(handle, 'cuThreadExchangeStreamCaptureMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority = dlsym(__pyx_v_handle, __pyx_k_cuStreamCreateWithPriority);

                /* "cuda/bindings/_bindings/cydriver.pyx":2350
 *         __cuStreamCreateWithPriority = dlfcn.dlsym(handle, 'cuStreamCreateWithPriority')
 *         global __cuThreadExchangeStreamCaptureMode
 *         __cuThreadExchangeStreamCaptureMode = dlfcn.dlsym(handle, 'cuThreadExchangeStreamCaptureMode')             # <<<<<<<<<<<<<<
 *         global __cuStreamDestroy_v2
 *         __cuStreamDestroy_v2 = dlfcn.dlsym(handle, 'cuStreamDestroy_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode = dlsym(__pyx_v_handle, __pyx_k_cuThreadExchangeStreamCaptureMod);

                /* "cuda/bindings/_bindings/cydriver.pyx":2352
 *         __cuThreadExchangeStreamCaptureMode = dlfcn.dlsym(handle, 'cuThreadExchangeStreamCaptureMode')
 *         global __cuStreamDestroy_v2
 *         __cuStreamDestroy_v2 = dlfcn.dlsym(handle, 'cuStreamDestroy_v2')             # <<<<<<<<<<<<<<
 *         global __cuEventCreate
 *         __cuEventCreate = dlfcn.dlsym(handle, 'cuEventCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2 = dlsym(__pyx_v_handle, __pyx_k_cuStreamDestroy_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2354
 *         __cuStreamDestroy_v2 = dlfcn.dlsym(handle, 'cuStreamDestroy_v2')
 *         global __cuEventCreate
 *         __cuEventCreate = dlfcn.dlsym(handle, 'cuEventCreate')             # <<<<<<<<<<<<<<
 *         global __cuEventQuery
 *         __cuEventQuery = dlfcn.dlsym(handle, 'cuEventQuery')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate = dlsym(__pyx_v_handle, __pyx_k_cuEventCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2356
 *         __cuEventCreate = dlfcn.dlsym(handle, 'cuEventCreate')
 *         global __cuEventQuery
 *         __cuEventQuery = dlfcn.dlsym(handle, 'cuEventQuery')             # <<<<<<<<<<<<<<
 *         global __cuEventSynchronize
 *         __cuEventSynchronize = dlfcn.dlsym(handle, 'cuEventSynchronize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery = dlsym(__pyx_v_handle, __pyx_k_cuEventQuery);

                /* "cuda/bindings/_bindings/cydriver.pyx":2358
 *         __cuEventQuery = dlfcn.dlsym(handle, 'cuEventQuery')
 *         global __cuEventSynchronize
 *         __cuEventSynchronize = dlfcn.dlsym(handle, 'cuEventSynchronize')             # <<<<<<<<<<<<<<
 *         global __cuEventDestroy_v2
 *         __cuEventDestroy_v2 = dlfcn.dlsym(handle, 'cuEventDestroy_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize = dlsym(__pyx_v_handle, __pyx_k_cuEventSynchronize);

                /* "cuda/bindings/_bindings/cydriver.pyx":2360
 *         __cuEventSynchronize = dlfcn.dlsym(handle, 'cuEventSynchronize')
 *         global __cuEventDestroy_v2
 *         __cuEventDestroy_v2 = dlfcn.dlsym(handle, 'cuEventDestroy_v2')             # <<<<<<<<<<<<<<
 *         global __cuEventElapsedTime_v2
 *         __cuEventElapsedTime_v2 = dlfcn.dlsym(handle, 'cuEventElapsedTime_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2 = dlsym(__pyx_v_handle, __pyx_k_cuEventDestroy_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2362
 *         __cuEventDestroy_v2 = dlfcn.dlsym(handle, 'cuEventDestroy_v2')
 *         global __cuEventElapsedTime_v2
 *         __cuEventElapsedTime_v2 = dlfcn.dlsym(handle, 'cuEventElapsedTime_v2')             # <<<<<<<<<<<<<<
 *         global __cuImportExternalMemory
 *         __cuImportExternalMemory = dlfcn.dlsym(handle, 'cuImportExternalMemory')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2 = dlsym(__pyx_v_handle, __pyx_k_cuEventElapsedTime_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2364
 *         __cuEventElapsedTime_v2 = dlfcn.dlsym(handle, 'cuEventElapsedTime_v2')
 *         global __cuImportExternalMemory
 *         __cuImportExternalMemory = dlfcn.dlsym(handle, 'cuImportExternalMemory')             # <<<<<<<<<<<<<<
 *         global __cuExternalMemoryGetMappedBuffer
 *         __cuExternalMemoryGetMappedBuffer = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedBuffer')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory = dlsym(__pyx_v_handle, __pyx_k_cuImportExternalMemory);

                /* "cuda/bindings/_bindings/cydriver.pyx":2366
 *         __cuImportExternalMemory = dlfcn.dlsym(handle, 'cuImportExternalMemory')
 *         global __cuExternalMemoryGetMappedBuffer
 *         __cuExternalMemoryGetMappedBuffer = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedBuffer')             # <<<<<<<<<<<<<<
 *         global __cuExternalMemoryGetMappedMipmappedArray
 *         __cuExternalMemoryGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedMipmappedArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer = dlsym(__pyx_v_handle, __pyx_k_cuExternalMemoryGetMappedBuffer);

                /* "cuda/bindings/_bindings/cydriver.pyx":2368
 *         __cuExternalMemoryGetMappedBuffer = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedBuffer')
 *         global __cuExternalMemoryGetMappedMipmappedArray
 *         __cuExternalMemoryGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedMipmappedArray')             # <<<<<<<<<<<<<<
 *         global __cuDestroyExternalMemory
 *         __cuDestroyExternalMemory = dlfcn.dlsym(handle, 'cuDestroyExternalMemory')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray = dlsym(__pyx_v_handle, __pyx_k_cuExternalMemoryGetMappedMipmapp);

                /* "cuda/bindings/_bindings/cydriver.pyx":2370
 *         __cuExternalMemoryGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedMipmappedArray')
 *         global __cuDestroyExternalMemory
 *         __cuDestroyExternalMemory = dlfcn.dlsym(handle, 'cuDestroyExternalMemory')             # <<<<<<<<<<<<<<
 *         global __cuImportExternalSemaphore
 *         __cuImportExternalSemaphore = dlfcn.dlsym(handle, 'cuImportExternalSemaphore')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory = dlsym(__pyx_v_handle, __pyx_k_cuDestroyExternalMemory);

                /* "cuda/bindings/_bindings/cydriver.pyx":2372
 *         __cuDestroyExternalMemory = dlfcn.dlsym(handle, 'cuDestroyExternalMemory')
 *         global __cuImportExternalSemaphore
 *         __cuImportExternalSemaphore = dlfcn.dlsym(handle, 'cuImportExternalSemaphore')             # <<<<<<<<<<<<<<
 *         global __cuDestroyExternalSemaphore
 *         __cuDestroyExternalSemaphore = dlfcn.dlsym(handle, 'cuDestroyExternalSemaphore')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore = dlsym(__pyx_v_handle, __pyx_k_cuImportExternalSemaphore);

                /* "cuda/bindings/_bindings/cydriver.pyx":2374
 *         __cuImportExternalSemaphore = dlfcn.dlsym(handle, 'cuImportExternalSemaphore')
 *         global __cuDestroyExternalSemaphore
 *         __cuDestroyExternalSemaphore = dlfcn.dlsym(handle, 'cuDestroyExternalSemaphore')             # <<<<<<<<<<<<<<
 *         global __cuFuncGetAttribute
 *         __cuFuncGetAttribute = dlfcn.dlsym(handle, 'cuFuncGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore = dlsym(__pyx_v_handle, __pyx_k_cuDestroyExternalSemaphore);

                /* "cuda/bindings/_bindings/cydriver.pyx":2376
 *         __cuDestroyExternalSemaphore = dlfcn.dlsym(handle, 'cuDestroyExternalSemaphore')
 *         global __cuFuncGetAttribute
 *         __cuFuncGetAttribute = dlfcn.dlsym(handle, 'cuFuncGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuFuncSetAttribute
 *         __cuFuncSetAttribute = dlfcn.dlsym(handle, 'cuFuncSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuFuncGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2378
 *         __cuFuncGetAttribute = dlfcn.dlsym(handle, 'cuFuncGetAttribute')
 *         global __cuFuncSetAttribute
 *         __cuFuncSetAttribute = dlfcn.dlsym(handle, 'cuFuncSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuFuncSetCacheConfig
 *         __cuFuncSetCacheConfig = dlfcn.dlsym(handle, 'cuFuncSetCacheConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuFuncSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2380
 *         __cuFuncSetAttribute = dlfcn.dlsym(handle, 'cuFuncSetAttribute')
 *         global __cuFuncSetCacheConfig
 *         __cuFuncSetCacheConfig = dlfcn.dlsym(handle, 'cuFuncSetCacheConfig')             # <<<<<<<<<<<<<<
 *         global __cuFuncGetModule
 *         __cuFuncGetModule = dlfcn.dlsym(handle, 'cuFuncGetModule')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig = dlsym(__pyx_v_handle, __pyx_k_cuFuncSetCacheConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2382
 *         __cuFuncSetCacheConfig = dlfcn.dlsym(handle, 'cuFuncSetCacheConfig')
 *         global __cuFuncGetModule
 *         __cuFuncGetModule = dlfcn.dlsym(handle, 'cuFuncGetModule')             # <<<<<<<<<<<<<<
 *         global __cuFuncGetName
 *         __cuFuncGetName = dlfcn.dlsym(handle, 'cuFuncGetName')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule = dlsym(__pyx_v_handle, __pyx_k_cuFuncGetModule);

                /* "cuda/bindings/_bindings/cydriver.pyx":2384
 *         __cuFuncGetModule = dlfcn.dlsym(handle, 'cuFuncGetModule')
 *         global __cuFuncGetName
 *         __cuFuncGetName = dlfcn.dlsym(handle, 'cuFuncGetName')             # <<<<<<<<<<<<<<
 *         global __cuFuncGetParamInfo
 *         __cuFuncGetParamInfo = dlfcn.dlsym(handle, 'cuFuncGetParamInfo')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName = dlsym(__pyx_v_handle, __pyx_k_cuFuncGetName);

                /* "cuda/bindings/_bindings/cydriver.pyx":2386
 *         __cuFuncGetName = dlfcn.dlsym(handle, 'cuFuncGetName')
 *         global __cuFuncGetParamInfo
 *         __cuFuncGetParamInfo = dlfcn.dlsym(handle, 'cuFuncGetParamInfo')             # <<<<<<<<<<<<<<
 *         global __cuFuncIsLoaded
 *         __cuFuncIsLoaded = dlfcn.dlsym(handle, 'cuFuncIsLoaded')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo = dlsym(__pyx_v_handle, __pyx_k_cuFuncGetParamInfo);

                /* "cuda/bindings/_bindings/cydriver.pyx":2388
 *         __cuFuncGetParamInfo = dlfcn.dlsym(handle, 'cuFuncGetParamInfo')
 *         global __cuFuncIsLoaded
 *         __cuFuncIsLoaded = dlfcn.dlsym(handle, 'cuFuncIsLoaded')             # <<<<<<<<<<<<<<
 *         global __cuFuncLoad
 *         __cuFuncLoad = dlfcn.dlsym(handle, 'cuFuncLoad')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded = dlsym(__pyx_v_handle, __pyx_k_cuFuncIsLoaded);

                /* "cuda/bindings/_bindings/cydriver.pyx":2390
 *         __cuFuncIsLoaded = dlfcn.dlsym(handle, 'cuFuncIsLoaded')
 *         global __cuFuncLoad
 *         __cuFuncLoad = dlfcn.dlsym(handle, 'cuFuncLoad')             # <<<<<<<<<<<<<<
 *         global __cuLaunchCooperativeKernelMultiDevice
 *         __cuLaunchCooperativeKernelMultiDevice = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernelMultiDevice')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad = dlsym(__pyx_v_handle, __pyx_k_cuFuncLoad);

                /* "cuda/bindings/_bindings/cydriver.pyx":2392
 *         __cuFuncLoad = dlfcn.dlsym(handle, 'cuFuncLoad')
 *         global __cuLaunchCooperativeKernelMultiDevice
 *         __cuLaunchCooperativeKernelMultiDevice = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernelMultiDevice')             # <<<<<<<<<<<<<<
 *         global __cuFuncSetBlockShape
 *         __cuFuncSetBlockShape = dlfcn.dlsym(handle, 'cuFuncSetBlockShape')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice = dlsym(__pyx_v_handle, __pyx_k_cuLaunchCooperativeKernelMultiDe);

                /* "cuda/bindings/_bindings/cydriver.pyx":2394
 *         __cuLaunchCooperativeKernelMultiDevice = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernelMultiDevice')
 *         global __cuFuncSetBlockShape
 *         __cuFuncSetBlockShape = dlfcn.dlsym(handle, 'cuFuncSetBlockShape')             # <<<<<<<<<<<<<<
 *         global __cuFuncSetSharedSize
 *         __cuFuncSetSharedSize = dlfcn.dlsym(handle, 'cuFuncSetSharedSize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape = dlsym(__pyx_v_handle, __pyx_k_cuFuncSetBlockShape);

                /* "cuda/bindings/_bindings/cydriver.pyx":2396
 *         __cuFuncSetBlockShape = dlfcn.dlsym(handle, 'cuFuncSetBlockShape')
 *         global __cuFuncSetSharedSize
 *         __cuFuncSetSharedSize = dlfcn.dlsym(handle, 'cuFuncSetSharedSize')             # <<<<<<<<<<<<<<
 *         global __cuParamSetSize
 *         __cuParamSetSize = dlfcn.dlsym(handle, 'cuParamSetSize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize = dlsym(__pyx_v_handle, __pyx_k_cuFuncSetSharedSize);

                /* "cuda/bindings/_bindings/cydriver.pyx":2398
 *         __cuFuncSetSharedSize = dlfcn.dlsym(handle, 'cuFuncSetSharedSize')
 *         global __cuParamSetSize
 *         __cuParamSetSize = dlfcn.dlsym(handle, 'cuParamSetSize')             # <<<<<<<<<<<<<<
 *         global __cuParamSeti
 *         __cuParamSeti = dlfcn.dlsym(handle, 'cuParamSeti')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize = dlsym(__pyx_v_handle, __pyx_k_cuParamSetSize);

                /* "cuda/bindings/_bindings/cydriver.pyx":2400
 *         __cuParamSetSize = dlfcn.dlsym(handle, 'cuParamSetSize')
 *         global __cuParamSeti
 *         __cuParamSeti = dlfcn.dlsym(handle, 'cuParamSeti')             # <<<<<<<<<<<<<<
 *         global __cuParamSetf
 *         __cuParamSetf = dlfcn.dlsym(handle, 'cuParamSetf')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti = dlsym(__pyx_v_handle, __pyx_k_cuParamSeti);

                /* "cuda/bindings/_bindings/cydriver.pyx":2402
 *         __cuParamSeti = dlfcn.dlsym(handle, 'cuParamSeti')
 *         global __cuParamSetf
 *         __cuParamSetf = dlfcn.dlsym(handle, 'cuParamSetf')             # <<<<<<<<<<<<<<
 *         global __cuParamSetv
 *         __cuParamSetv = dlfcn.dlsym(handle, 'cuParamSetv')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf = dlsym(__pyx_v_handle, __pyx_k_cuParamSetf);

                /* "cuda/bindings/_bindings/cydriver.pyx":2404
 *         __cuParamSetf = dlfcn.dlsym(handle, 'cuParamSetf')
 *         global __cuParamSetv
 *         __cuParamSetv = dlfcn.dlsym(handle, 'cuParamSetv')             # <<<<<<<<<<<<<<
 *         global __cuLaunch
 *         __cuLaunch = dlfcn.dlsym(handle, 'cuLaunch')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv = dlsym(__pyx_v_handle, __pyx_k_cuParamSetv);

                /* "cuda/bindings/_bindings/cydriver.pyx":2406
 *         __cuParamSetv = dlfcn.dlsym(handle, 'cuParamSetv')
 *         global __cuLaunch
 *         __cuLaunch = dlfcn.dlsym(handle, 'cuLaunch')             # <<<<<<<<<<<<<<
 *         global __cuLaunchGrid
 *         __cuLaunchGrid = dlfcn.dlsym(handle, 'cuLaunchGrid')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch = dlsym(__pyx_v_handle, __pyx_k_cuLaunch);

                /* "cuda/bindings/_bindings/cydriver.pyx":2408
 *         __cuLaunch = dlfcn.dlsym(handle, 'cuLaunch')
 *         global __cuLaunchGrid
 *         __cuLaunchGrid = dlfcn.dlsym(handle, 'cuLaunchGrid')             # <<<<<<<<<<<<<<
 *         global __cuLaunchGridAsync
 *         __cuLaunchGridAsync = dlfcn.dlsym(handle, 'cuLaunchGridAsync')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid = dlsym(__pyx_v_handle, __pyx_k_cuLaunchGrid);

                /* "cuda/bindings/_bindings/cydriver.pyx":2410
 *         __cuLaunchGrid = dlfcn.dlsym(handle, 'cuLaunchGrid')
 *         global __cuLaunchGridAsync
 *         __cuLaunchGridAsync = dlfcn.dlsym(handle, 'cuLaunchGridAsync')             # <<<<<<<<<<<<<<
 *         global __cuParamSetTexRef
 *         __cuParamSetTexRef = dlfcn.dlsym(handle, 'cuParamSetTexRef')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync = dlsym(__pyx_v_handle, __pyx_k_cuLaunchGridAsync);

                /* "cuda/bindings/_bindings/cydriver.pyx":2412
 *         __cuLaunchGridAsync = dlfcn.dlsym(handle, 'cuLaunchGridAsync')
 *         global __cuParamSetTexRef
 *         __cuParamSetTexRef = dlfcn.dlsym(handle, 'cuParamSetTexRef')             # <<<<<<<<<<<<<<
 *         global __cuFuncSetSharedMemConfig
 *         __cuFuncSetSharedMemConfig = dlfcn.dlsym(handle, 'cuFuncSetSharedMemConfig')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef = dlsym(__pyx_v_handle, __pyx_k_cuParamSetTexRef);

                /* "cuda/bindings/_bindings/cydriver.pyx":2414
 *         __cuParamSetTexRef = dlfcn.dlsym(handle, 'cuParamSetTexRef')
 *         global __cuFuncSetSharedMemConfig
 *         __cuFuncSetSharedMemConfig = dlfcn.dlsym(handle, 'cuFuncSetSharedMemConfig')             # <<<<<<<<<<<<<<
 *         global __cuGraphCreate
 *         __cuGraphCreate = dlfcn.dlsym(handle, 'cuGraphCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig = dlsym(__pyx_v_handle, __pyx_k_cuFuncSetSharedMemConfig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2416
 *         __cuFuncSetSharedMemConfig = dlfcn.dlsym(handle, 'cuFuncSetSharedMemConfig')
 *         global __cuGraphCreate
 *         __cuGraphCreate = dlfcn.dlsym(handle, 'cuGraphCreate')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddKernelNode_v2
 *         __cuGraphAddKernelNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddKernelNode_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate = dlsym(__pyx_v_handle, __pyx_k_cuGraphCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2418
 *         __cuGraphCreate = dlfcn.dlsym(handle, 'cuGraphCreate')
 *         global __cuGraphAddKernelNode_v2
 *         __cuGraphAddKernelNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddKernelNode_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphKernelNodeGetParams_v2
 *         __cuGraphKernelNodeGetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetParams_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddKernelNode_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2420
 *         __cuGraphAddKernelNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddKernelNode_v2')
 *         global __cuGraphKernelNodeGetParams_v2
 *         __cuGraphKernelNodeGetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetParams_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphKernelNodeSetParams_v2
 *         __cuGraphKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetParams_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphKernelNodeGetParams_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2422
 *         __cuGraphKernelNodeGetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetParams_v2')
 *         global __cuGraphKernelNodeSetParams_v2
 *         __cuGraphKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetParams_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddMemcpyNode
 *         __cuGraphAddMemcpyNode = dlfcn.dlsym(handle, 'cuGraphAddMemcpyNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphKernelNodeSetParams_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2424
 *         __cuGraphKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetParams_v2')
 *         global __cuGraphAddMemcpyNode
 *         __cuGraphAddMemcpyNode = dlfcn.dlsym(handle, 'cuGraphAddMemcpyNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemcpyNodeGetParams
 *         __cuGraphMemcpyNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddMemcpyNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2426
 *         __cuGraphAddMemcpyNode = dlfcn.dlsym(handle, 'cuGraphAddMemcpyNode')
 *         global __cuGraphMemcpyNodeGetParams
 *         __cuGraphMemcpyNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemcpyNodeSetParams
 *         __cuGraphMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemcpyNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2428
 *         __cuGraphMemcpyNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeGetParams')
 *         global __cuGraphMemcpyNodeSetParams
 *         __cuGraphMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddMemsetNode
 *         __cuGraphAddMemsetNode = dlfcn.dlsym(handle, 'cuGraphAddMemsetNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemcpyNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2430
 *         __cuGraphMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeSetParams')
 *         global __cuGraphAddMemsetNode
 *         __cuGraphAddMemsetNode = dlfcn.dlsym(handle, 'cuGraphAddMemsetNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemsetNodeGetParams
 *         __cuGraphMemsetNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddMemsetNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2432
 *         __cuGraphAddMemsetNode = dlfcn.dlsym(handle, 'cuGraphAddMemsetNode')
 *         global __cuGraphMemsetNodeGetParams
 *         __cuGraphMemsetNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemsetNodeSetParams
 *         __cuGraphMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemsetNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2434
 *         __cuGraphMemsetNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeGetParams')
 *         global __cuGraphMemsetNodeSetParams
 *         __cuGraphMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddHostNode
 *         __cuGraphAddHostNode = dlfcn.dlsym(handle, 'cuGraphAddHostNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemsetNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2436
 *         __cuGraphMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeSetParams')
 *         global __cuGraphAddHostNode
 *         __cuGraphAddHostNode = dlfcn.dlsym(handle, 'cuGraphAddHostNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphHostNodeGetParams
 *         __cuGraphHostNodeGetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddHostNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2438
 *         __cuGraphAddHostNode = dlfcn.dlsym(handle, 'cuGraphAddHostNode')
 *         global __cuGraphHostNodeGetParams
 *         __cuGraphHostNodeGetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphHostNodeSetParams
 *         __cuGraphHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphHostNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2440
 *         __cuGraphHostNodeGetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeGetParams')
 *         global __cuGraphHostNodeSetParams
 *         __cuGraphHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddChildGraphNode
 *         __cuGraphAddChildGraphNode = dlfcn.dlsym(handle, 'cuGraphAddChildGraphNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphHostNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2442
 *         __cuGraphHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeSetParams')
 *         global __cuGraphAddChildGraphNode
 *         __cuGraphAddChildGraphNode = dlfcn.dlsym(handle, 'cuGraphAddChildGraphNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphChildGraphNodeGetGraph
 *         __cuGraphChildGraphNodeGetGraph = dlfcn.dlsym(handle, 'cuGraphChildGraphNodeGetGraph')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddChildGraphNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2444
 *         __cuGraphAddChildGraphNode = dlfcn.dlsym(handle, 'cuGraphAddChildGraphNode')
 *         global __cuGraphChildGraphNodeGetGraph
 *         __cuGraphChildGraphNodeGetGraph = dlfcn.dlsym(handle, 'cuGraphChildGraphNodeGetGraph')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddEmptyNode
 *         __cuGraphAddEmptyNode = dlfcn.dlsym(handle, 'cuGraphAddEmptyNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph = dlsym(__pyx_v_handle, __pyx_k_cuGraphChildGraphNodeGetGraph);

                /* "cuda/bindings/_bindings/cydriver.pyx":2446
 *         __cuGraphChildGraphNodeGetGraph = dlfcn.dlsym(handle, 'cuGraphChildGraphNodeGetGraph')
 *         global __cuGraphAddEmptyNode
 *         __cuGraphAddEmptyNode = dlfcn.dlsym(handle, 'cuGraphAddEmptyNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddEventRecordNode
 *         __cuGraphAddEventRecordNode = dlfcn.dlsym(handle, 'cuGraphAddEventRecordNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddEmptyNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2448
 *         __cuGraphAddEmptyNode = dlfcn.dlsym(handle, 'cuGraphAddEmptyNode')
 *         global __cuGraphAddEventRecordNode
 *         __cuGraphAddEventRecordNode = dlfcn.dlsym(handle, 'cuGraphAddEventRecordNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphEventRecordNodeGetEvent
 *         __cuGraphEventRecordNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeGetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddEventRecordNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2450
 *         __cuGraphAddEventRecordNode = dlfcn.dlsym(handle, 'cuGraphAddEventRecordNode')
 *         global __cuGraphEventRecordNodeGetEvent
 *         __cuGraphEventRecordNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeGetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphEventRecordNodeSetEvent
 *         __cuGraphEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeSetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphEventRecordNodeGetEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2452
 *         __cuGraphEventRecordNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeGetEvent')
 *         global __cuGraphEventRecordNodeSetEvent
 *         __cuGraphEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeSetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddEventWaitNode
 *         __cuGraphAddEventWaitNode = dlfcn.dlsym(handle, 'cuGraphAddEventWaitNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphEventRecordNodeSetEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2454
 *         __cuGraphEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeSetEvent')
 *         global __cuGraphAddEventWaitNode
 *         __cuGraphAddEventWaitNode = dlfcn.dlsym(handle, 'cuGraphAddEventWaitNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphEventWaitNodeGetEvent
 *         __cuGraphEventWaitNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeGetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddEventWaitNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2456
 *         __cuGraphAddEventWaitNode = dlfcn.dlsym(handle, 'cuGraphAddEventWaitNode')
 *         global __cuGraphEventWaitNodeGetEvent
 *         __cuGraphEventWaitNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeGetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphEventWaitNodeSetEvent
 *         __cuGraphEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeSetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphEventWaitNodeGetEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2458
 *         __cuGraphEventWaitNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeGetEvent')
 *         global __cuGraphEventWaitNodeSetEvent
 *         __cuGraphEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeSetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddExternalSemaphoresSignalNode
 *         __cuGraphAddExternalSemaphoresSignalNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresSignalNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphEventWaitNodeSetEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2460
 *         __cuGraphEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeSetEvent')
 *         global __cuGraphAddExternalSemaphoresSignalNode
 *         __cuGraphAddExternalSemaphoresSignalNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresSignalNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphExternalSemaphoresSignalNodeGetParams
 *         __cuGraphExternalSemaphoresSignalNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddExternalSemaphoresSign);

                /* "cuda/bindings/_bindings/cydriver.pyx":2462
 *         __cuGraphAddExternalSemaphoresSignalNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresSignalNode')
 *         global __cuGraphExternalSemaphoresSignalNodeGetParams
 *         __cuGraphExternalSemaphoresSignalNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExternalSemaphoresSignalNodeSetParams
 *         __cuGraphExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExternalSemaphoresSignalN);

                /* "cuda/bindings/_bindings/cydriver.pyx":2464
 *         __cuGraphExternalSemaphoresSignalNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams')
 *         global __cuGraphExternalSemaphoresSignalNodeSetParams
 *         __cuGraphExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddExternalSemaphoresWaitNode
 *         __cuGraphAddExternalSemaphoresWaitNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresWaitNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExternalSemaphoresSignalN_2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2466
 *         __cuGraphExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams')
 *         global __cuGraphAddExternalSemaphoresWaitNode
 *         __cuGraphAddExternalSemaphoresWaitNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresWaitNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphExternalSemaphoresWaitNodeGetParams
 *         __cuGraphExternalSemaphoresWaitNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddExternalSemaphoresWait);

                /* "cuda/bindings/_bindings/cydriver.pyx":2468
 *         __cuGraphAddExternalSemaphoresWaitNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresWaitNode')
 *         global __cuGraphExternalSemaphoresWaitNodeGetParams
 *         __cuGraphExternalSemaphoresWaitNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExternalSemaphoresWaitNodeSetParams
 *         __cuGraphExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExternalSemaphoresWaitNod);

                /* "cuda/bindings/_bindings/cydriver.pyx":2470
 *         __cuGraphExternalSemaphoresWaitNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams')
 *         global __cuGraphExternalSemaphoresWaitNodeSetParams
 *         __cuGraphExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddBatchMemOpNode
 *         __cuGraphAddBatchMemOpNode = dlfcn.dlsym(handle, 'cuGraphAddBatchMemOpNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExternalSemaphoresWaitNod_2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2472
 *         __cuGraphExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams')
 *         global __cuGraphAddBatchMemOpNode
 *         __cuGraphAddBatchMemOpNode = dlfcn.dlsym(handle, 'cuGraphAddBatchMemOpNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphBatchMemOpNodeGetParams
 *         __cuGraphBatchMemOpNodeGetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddBatchMemOpNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2474
 *         __cuGraphAddBatchMemOpNode = dlfcn.dlsym(handle, 'cuGraphAddBatchMemOpNode')
 *         global __cuGraphBatchMemOpNodeGetParams
 *         __cuGraphBatchMemOpNodeGetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphBatchMemOpNodeSetParams
 *         __cuGraphBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphBatchMemOpNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2476
 *         __cuGraphBatchMemOpNodeGetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeGetParams')
 *         global __cuGraphBatchMemOpNodeSetParams
 *         __cuGraphBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecBatchMemOpNodeSetParams
 *         __cuGraphExecBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecBatchMemOpNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphBatchMemOpNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2478
 *         __cuGraphBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeSetParams')
 *         global __cuGraphExecBatchMemOpNodeSetParams
 *         __cuGraphExecBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecBatchMemOpNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddMemAllocNode
 *         __cuGraphAddMemAllocNode = dlfcn.dlsym(handle, 'cuGraphAddMemAllocNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecBatchMemOpNodeSetPara);

                /* "cuda/bindings/_bindings/cydriver.pyx":2480
 *         __cuGraphExecBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecBatchMemOpNodeSetParams')
 *         global __cuGraphAddMemAllocNode
 *         __cuGraphAddMemAllocNode = dlfcn.dlsym(handle, 'cuGraphAddMemAllocNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemAllocNodeGetParams
 *         __cuGraphMemAllocNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemAllocNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddMemAllocNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2482
 *         __cuGraphAddMemAllocNode = dlfcn.dlsym(handle, 'cuGraphAddMemAllocNode')
 *         global __cuGraphMemAllocNodeGetParams
 *         __cuGraphMemAllocNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemAllocNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddMemFreeNode
 *         __cuGraphAddMemFreeNode = dlfcn.dlsym(handle, 'cuGraphAddMemFreeNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemAllocNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2484
 *         __cuGraphMemAllocNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemAllocNodeGetParams')
 *         global __cuGraphAddMemFreeNode
 *         __cuGraphAddMemFreeNode = dlfcn.dlsym(handle, 'cuGraphAddMemFreeNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphMemFreeNodeGetParams
 *         __cuGraphMemFreeNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemFreeNodeGetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddMemFreeNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2486
 *         __cuGraphAddMemFreeNode = dlfcn.dlsym(handle, 'cuGraphAddMemFreeNode')
 *         global __cuGraphMemFreeNodeGetParams
 *         __cuGraphMemFreeNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemFreeNodeGetParams')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGraphMemTrim
 *         __cuDeviceGraphMemTrim = dlfcn.dlsym(handle, 'cuDeviceGraphMemTrim')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphMemFreeNodeGetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2488
 *         __cuGraphMemFreeNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemFreeNodeGetParams')
 *         global __cuDeviceGraphMemTrim
 *         __cuDeviceGraphMemTrim = dlfcn.dlsym(handle, 'cuDeviceGraphMemTrim')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetGraphMemAttribute
 *         __cuDeviceGetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceGetGraphMemAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGraphMemTrim);

                /* "cuda/bindings/_bindings/cydriver.pyx":2490
 *         __cuDeviceGraphMemTrim = dlfcn.dlsym(handle, 'cuDeviceGraphMemTrim')
 *         global __cuDeviceGetGraphMemAttribute
 *         __cuDeviceGetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceGetGraphMemAttribute')             # <<<<<<<<<<<<<<
 *         global __cuDeviceSetGraphMemAttribute
 *         __cuDeviceSetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceSetGraphMemAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetGraphMemAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2492
 *         __cuDeviceGetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceGetGraphMemAttribute')
 *         global __cuDeviceSetGraphMemAttribute
 *         __cuDeviceSetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceSetGraphMemAttribute')             # <<<<<<<<<<<<<<
 *         global __cuGraphClone
 *         __cuGraphClone = dlfcn.dlsym(handle, 'cuGraphClone')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute = dlsym(__pyx_v_handle, __pyx_k_cuDeviceSetGraphMemAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2494
 *         __cuDeviceSetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceSetGraphMemAttribute')
 *         global __cuGraphClone
 *         __cuGraphClone = dlfcn.dlsym(handle, 'cuGraphClone')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeFindInClone
 *         __cuGraphNodeFindInClone = dlfcn.dlsym(handle, 'cuGraphNodeFindInClone')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone = dlsym(__pyx_v_handle, __pyx_k_cuGraphClone);

                /* "cuda/bindings/_bindings/cydriver.pyx":2496
 *         __cuGraphClone = dlfcn.dlsym(handle, 'cuGraphClone')
 *         global __cuGraphNodeFindInClone
 *         __cuGraphNodeFindInClone = dlfcn.dlsym(handle, 'cuGraphNodeFindInClone')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetType
 *         __cuGraphNodeGetType = dlfcn.dlsym(handle, 'cuGraphNodeGetType')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeFindInClone);

                /* "cuda/bindings/_bindings/cydriver.pyx":2498
 *         __cuGraphNodeFindInClone = dlfcn.dlsym(handle, 'cuGraphNodeFindInClone')
 *         global __cuGraphNodeGetType
 *         __cuGraphNodeGetType = dlfcn.dlsym(handle, 'cuGraphNodeGetType')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetContainingGraph
 *         __cuGraphNodeGetContainingGraph = dlfcn.dlsym(handle, 'cuGraphNodeGetContainingGraph')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetType);

                /* "cuda/bindings/_bindings/cydriver.pyx":2500
 *         __cuGraphNodeGetType = dlfcn.dlsym(handle, 'cuGraphNodeGetType')
 *         global __cuGraphNodeGetContainingGraph
 *         __cuGraphNodeGetContainingGraph = dlfcn.dlsym(handle, 'cuGraphNodeGetContainingGraph')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetLocalId
 *         __cuGraphNodeGetLocalId = dlfcn.dlsym(handle, 'cuGraphNodeGetLocalId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetContainingGraph);

                /* "cuda/bindings/_bindings/cydriver.pyx":2502
 *         __cuGraphNodeGetContainingGraph = dlfcn.dlsym(handle, 'cuGraphNodeGetContainingGraph')
 *         global __cuGraphNodeGetLocalId
 *         __cuGraphNodeGetLocalId = dlfcn.dlsym(handle, 'cuGraphNodeGetLocalId')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetToolsId
 *         __cuGraphNodeGetToolsId = dlfcn.dlsym(handle, 'cuGraphNodeGetToolsId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetLocalId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2504
 *         __cuGraphNodeGetLocalId = dlfcn.dlsym(handle, 'cuGraphNodeGetLocalId')
 *         global __cuGraphNodeGetToolsId
 *         __cuGraphNodeGetToolsId = dlfcn.dlsym(handle, 'cuGraphNodeGetToolsId')             # <<<<<<<<<<<<<<
 *         global __cuGraphGetId
 *         __cuGraphGetId = dlfcn.dlsym(handle, 'cuGraphGetId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetToolsId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2506
 *         __cuGraphNodeGetToolsId = dlfcn.dlsym(handle, 'cuGraphNodeGetToolsId')
 *         global __cuGraphGetId
 *         __cuGraphGetId = dlfcn.dlsym(handle, 'cuGraphGetId')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecGetId
 *         __cuGraphExecGetId = dlfcn.dlsym(handle, 'cuGraphExecGetId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId = dlsym(__pyx_v_handle, __pyx_k_cuGraphGetId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2508
 *         __cuGraphGetId = dlfcn.dlsym(handle, 'cuGraphGetId')
 *         global __cuGraphExecGetId
 *         __cuGraphExecGetId = dlfcn.dlsym(handle, 'cuGraphExecGetId')             # <<<<<<<<<<<<<<
 *         global __cuGraphGetNodes
 *         __cuGraphGetNodes = dlfcn.dlsym(handle, 'cuGraphGetNodes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecGetId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2510
 *         __cuGraphExecGetId = dlfcn.dlsym(handle, 'cuGraphExecGetId')
 *         global __cuGraphGetNodes
 *         __cuGraphGetNodes = dlfcn.dlsym(handle, 'cuGraphGetNodes')             # <<<<<<<<<<<<<<
 *         global __cuGraphGetRootNodes
 *         __cuGraphGetRootNodes = dlfcn.dlsym(handle, 'cuGraphGetRootNodes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes = dlsym(__pyx_v_handle, __pyx_k_cuGraphGetNodes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2512
 *         __cuGraphGetNodes = dlfcn.dlsym(handle, 'cuGraphGetNodes')
 *         global __cuGraphGetRootNodes
 *         __cuGraphGetRootNodes = dlfcn.dlsym(handle, 'cuGraphGetRootNodes')             # <<<<<<<<<<<<<<
 *         global __cuGraphGetEdges_v2
 *         __cuGraphGetEdges_v2 = dlfcn.dlsym(handle, 'cuGraphGetEdges_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes = dlsym(__pyx_v_handle, __pyx_k_cuGraphGetRootNodes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2514
 *         __cuGraphGetRootNodes = dlfcn.dlsym(handle, 'cuGraphGetRootNodes')
 *         global __cuGraphGetEdges_v2
 *         __cuGraphGetEdges_v2 = dlfcn.dlsym(handle, 'cuGraphGetEdges_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetDependencies_v2
 *         __cuGraphNodeGetDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependencies_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphGetEdges_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2516
 *         __cuGraphGetEdges_v2 = dlfcn.dlsym(handle, 'cuGraphGetEdges_v2')
 *         global __cuGraphNodeGetDependencies_v2
 *         __cuGraphNodeGetDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependencies_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetDependentNodes_v2
 *         __cuGraphNodeGetDependentNodes_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependentNodes_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetDependencies_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2518
 *         __cuGraphNodeGetDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependencies_v2')
 *         global __cuGraphNodeGetDependentNodes_v2
 *         __cuGraphNodeGetDependentNodes_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependentNodes_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddDependencies_v2
 *         __cuGraphAddDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphAddDependencies_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetDependentNodes_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2520
 *         __cuGraphNodeGetDependentNodes_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependentNodes_v2')
 *         global __cuGraphAddDependencies_v2
 *         __cuGraphAddDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphAddDependencies_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphRemoveDependencies_v2
 *         __cuGraphRemoveDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphRemoveDependencies_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddDependencies_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2522
 *         __cuGraphAddDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphAddDependencies_v2')
 *         global __cuGraphRemoveDependencies_v2
 *         __cuGraphRemoveDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphRemoveDependencies_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphDestroyNode
 *         __cuGraphDestroyNode = dlfcn.dlsym(handle, 'cuGraphDestroyNode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphRemoveDependencies_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2524
 *         __cuGraphRemoveDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphRemoveDependencies_v2')
 *         global __cuGraphDestroyNode
 *         __cuGraphDestroyNode = dlfcn.dlsym(handle, 'cuGraphDestroyNode')             # <<<<<<<<<<<<<<
 *         global __cuGraphInstantiateWithFlags
 *         __cuGraphInstantiateWithFlags = dlfcn.dlsym(handle, 'cuGraphInstantiateWithFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode = dlsym(__pyx_v_handle, __pyx_k_cuGraphDestroyNode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2526
 *         __cuGraphDestroyNode = dlfcn.dlsym(handle, 'cuGraphDestroyNode')
 *         global __cuGraphInstantiateWithFlags
 *         __cuGraphInstantiateWithFlags = dlfcn.dlsym(handle, 'cuGraphInstantiateWithFlags')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecGetFlags
 *         __cuGraphExecGetFlags = dlfcn.dlsym(handle, 'cuGraphExecGetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuGraphInstantiateWithFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2528
 *         __cuGraphInstantiateWithFlags = dlfcn.dlsym(handle, 'cuGraphInstantiateWithFlags')
 *         global __cuGraphExecGetFlags
 *         __cuGraphExecGetFlags = dlfcn.dlsym(handle, 'cuGraphExecGetFlags')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecKernelNodeSetParams_v2
 *         __cuGraphExecKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphExecKernelNodeSetParams_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecGetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2530
 *         __cuGraphExecGetFlags = dlfcn.dlsym(handle, 'cuGraphExecGetFlags')
 *         global __cuGraphExecKernelNodeSetParams_v2
 *         __cuGraphExecKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphExecKernelNodeSetParams_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecMemcpyNodeSetParams
 *         __cuGraphExecMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemcpyNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecKernelNodeSetParams_v);

                /* "cuda/bindings/_bindings/cydriver.pyx":2532
 *         __cuGraphExecKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphExecKernelNodeSetParams_v2')
 *         global __cuGraphExecMemcpyNodeSetParams
 *         __cuGraphExecMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemcpyNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecMemsetNodeSetParams
 *         __cuGraphExecMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemsetNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecMemcpyNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2534
 *         __cuGraphExecMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemcpyNodeSetParams')
 *         global __cuGraphExecMemsetNodeSetParams
 *         __cuGraphExecMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemsetNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecHostNodeSetParams
 *         __cuGraphExecHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecHostNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecMemsetNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2536
 *         __cuGraphExecMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemsetNodeSetParams')
 *         global __cuGraphExecHostNodeSetParams
 *         __cuGraphExecHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecHostNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecChildGraphNodeSetParams
 *         __cuGraphExecChildGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecChildGraphNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecHostNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2538
 *         __cuGraphExecHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecHostNodeSetParams')
 *         global __cuGraphExecChildGraphNodeSetParams
 *         __cuGraphExecChildGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecChildGraphNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecEventRecordNodeSetEvent
 *         __cuGraphExecEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventRecordNodeSetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecChildGraphNodeSetPara);

                /* "cuda/bindings/_bindings/cydriver.pyx":2540
 *         __cuGraphExecChildGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecChildGraphNodeSetParams')
 *         global __cuGraphExecEventRecordNodeSetEvent
 *         __cuGraphExecEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventRecordNodeSetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecEventWaitNodeSetEvent
 *         __cuGraphExecEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventWaitNodeSetEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecEventRecordNodeSetEve);

                /* "cuda/bindings/_bindings/cydriver.pyx":2542
 *         __cuGraphExecEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventRecordNodeSetEvent')
 *         global __cuGraphExecEventWaitNodeSetEvent
 *         __cuGraphExecEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventWaitNodeSetEvent')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *         __cuGraphExecExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecEventWaitNodeSetEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2544
 *         __cuGraphExecEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventWaitNodeSetEvent')
 *         global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *         __cuGraphExecExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *         __cuGraphExecExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecExternalSemaphoresSig);

                /* "cuda/bindings/_bindings/cydriver.pyx":2546
 *         __cuGraphExecExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams')
 *         global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *         __cuGraphExecExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeSetEnabled
 *         __cuGraphNodeSetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeSetEnabled')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecExternalSemaphoresWai);

                /* "cuda/bindings/_bindings/cydriver.pyx":2548
 *         __cuGraphExecExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams')
 *         global __cuGraphNodeSetEnabled
 *         __cuGraphNodeSetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeSetEnabled')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeGetEnabled
 *         __cuGraphNodeGetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeGetEnabled')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeSetEnabled);

                /* "cuda/bindings/_bindings/cydriver.pyx":2550
 *         __cuGraphNodeSetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeSetEnabled')
 *         global __cuGraphNodeGetEnabled
 *         __cuGraphNodeGetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeGetEnabled')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecDestroy
 *         __cuGraphExecDestroy = dlfcn.dlsym(handle, 'cuGraphExecDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeGetEnabled);

                /* "cuda/bindings/_bindings/cydriver.pyx":2552
 *         __cuGraphNodeGetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeGetEnabled')
 *         global __cuGraphExecDestroy
 *         __cuGraphExecDestroy = dlfcn.dlsym(handle, 'cuGraphExecDestroy')             # <<<<<<<<<<<<<<
 *         global __cuGraphDestroy
 *         __cuGraphDestroy = dlfcn.dlsym(handle, 'cuGraphDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2554
 *         __cuGraphExecDestroy = dlfcn.dlsym(handle, 'cuGraphExecDestroy')
 *         global __cuGraphDestroy
 *         __cuGraphDestroy = dlfcn.dlsym(handle, 'cuGraphDestroy')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecUpdate_v2
 *         __cuGraphExecUpdate_v2 = dlfcn.dlsym(handle, 'cuGraphExecUpdate_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy = dlsym(__pyx_v_handle, __pyx_k_cuGraphDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2556
 *         __cuGraphDestroy = dlfcn.dlsym(handle, 'cuGraphDestroy')
 *         global __cuGraphExecUpdate_v2
 *         __cuGraphExecUpdate_v2 = dlfcn.dlsym(handle, 'cuGraphExecUpdate_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphKernelNodeCopyAttributes
 *         __cuGraphKernelNodeCopyAttributes = dlfcn.dlsym(handle, 'cuGraphKernelNodeCopyAttributes')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecUpdate_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2558
 *         __cuGraphExecUpdate_v2 = dlfcn.dlsym(handle, 'cuGraphExecUpdate_v2')
 *         global __cuGraphKernelNodeCopyAttributes
 *         __cuGraphKernelNodeCopyAttributes = dlfcn.dlsym(handle, 'cuGraphKernelNodeCopyAttributes')             # <<<<<<<<<<<<<<
 *         global __cuGraphKernelNodeGetAttribute
 *         __cuGraphKernelNodeGetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes = dlsym(__pyx_v_handle, __pyx_k_cuGraphKernelNodeCopyAttributes);

                /* "cuda/bindings/_bindings/cydriver.pyx":2560
 *         __cuGraphKernelNodeCopyAttributes = dlfcn.dlsym(handle, 'cuGraphKernelNodeCopyAttributes')
 *         global __cuGraphKernelNodeGetAttribute
 *         __cuGraphKernelNodeGetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuGraphKernelNodeSetAttribute
 *         __cuGraphKernelNodeSetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuGraphKernelNodeGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2562
 *         __cuGraphKernelNodeGetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetAttribute')
 *         global __cuGraphKernelNodeSetAttribute
 *         __cuGraphKernelNodeSetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuGraphDebugDotPrint
 *         __cuGraphDebugDotPrint = dlfcn.dlsym(handle, 'cuGraphDebugDotPrint')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuGraphKernelNodeSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2564
 *         __cuGraphKernelNodeSetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetAttribute')
 *         global __cuGraphDebugDotPrint
 *         __cuGraphDebugDotPrint = dlfcn.dlsym(handle, 'cuGraphDebugDotPrint')             # <<<<<<<<<<<<<<
 *         global __cuUserObjectCreate
 *         __cuUserObjectCreate = dlfcn.dlsym(handle, 'cuUserObjectCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint = dlsym(__pyx_v_handle, __pyx_k_cuGraphDebugDotPrint);

                /* "cuda/bindings/_bindings/cydriver.pyx":2566
 *         __cuGraphDebugDotPrint = dlfcn.dlsym(handle, 'cuGraphDebugDotPrint')
 *         global __cuUserObjectCreate
 *         __cuUserObjectCreate = dlfcn.dlsym(handle, 'cuUserObjectCreate')             # <<<<<<<<<<<<<<
 *         global __cuUserObjectRetain
 *         __cuUserObjectRetain = dlfcn.dlsym(handle, 'cuUserObjectRetain')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate = dlsym(__pyx_v_handle, __pyx_k_cuUserObjectCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2568
 *         __cuUserObjectCreate = dlfcn.dlsym(handle, 'cuUserObjectCreate')
 *         global __cuUserObjectRetain
 *         __cuUserObjectRetain = dlfcn.dlsym(handle, 'cuUserObjectRetain')             # <<<<<<<<<<<<<<
 *         global __cuUserObjectRelease
 *         __cuUserObjectRelease = dlfcn.dlsym(handle, 'cuUserObjectRelease')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain = dlsym(__pyx_v_handle, __pyx_k_cuUserObjectRetain);

                /* "cuda/bindings/_bindings/cydriver.pyx":2570
 *         __cuUserObjectRetain = dlfcn.dlsym(handle, 'cuUserObjectRetain')
 *         global __cuUserObjectRelease
 *         __cuUserObjectRelease = dlfcn.dlsym(handle, 'cuUserObjectRelease')             # <<<<<<<<<<<<<<
 *         global __cuGraphRetainUserObject
 *         __cuGraphRetainUserObject = dlfcn.dlsym(handle, 'cuGraphRetainUserObject')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease = dlsym(__pyx_v_handle, __pyx_k_cuUserObjectRelease);

                /* "cuda/bindings/_bindings/cydriver.pyx":2572
 *         __cuUserObjectRelease = dlfcn.dlsym(handle, 'cuUserObjectRelease')
 *         global __cuGraphRetainUserObject
 *         __cuGraphRetainUserObject = dlfcn.dlsym(handle, 'cuGraphRetainUserObject')             # <<<<<<<<<<<<<<
 *         global __cuGraphReleaseUserObject
 *         __cuGraphReleaseUserObject = dlfcn.dlsym(handle, 'cuGraphReleaseUserObject')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject = dlsym(__pyx_v_handle, __pyx_k_cuGraphRetainUserObject);

                /* "cuda/bindings/_bindings/cydriver.pyx":2574
 *         __cuGraphRetainUserObject = dlfcn.dlsym(handle, 'cuGraphRetainUserObject')
 *         global __cuGraphReleaseUserObject
 *         __cuGraphReleaseUserObject = dlfcn.dlsym(handle, 'cuGraphReleaseUserObject')             # <<<<<<<<<<<<<<
 *         global __cuGraphAddNode_v2
 *         __cuGraphAddNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddNode_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject = dlsym(__pyx_v_handle, __pyx_k_cuGraphReleaseUserObject);

                /* "cuda/bindings/_bindings/cydriver.pyx":2576
 *         __cuGraphReleaseUserObject = dlfcn.dlsym(handle, 'cuGraphReleaseUserObject')
 *         global __cuGraphAddNode_v2
 *         __cuGraphAddNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddNode_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphNodeSetParams
 *         __cuGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphAddNode_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2578
 *         __cuGraphAddNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddNode_v2')
 *         global __cuGraphNodeSetParams
 *         __cuGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphExecNodeSetParams
 *         __cuGraphExecNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecNodeSetParams')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2580
 *         __cuGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphNodeSetParams')
 *         global __cuGraphExecNodeSetParams
 *         __cuGraphExecNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecNodeSetParams')             # <<<<<<<<<<<<<<
 *         global __cuGraphConditionalHandleCreate
 *         __cuGraphConditionalHandleCreate = dlfcn.dlsym(handle, 'cuGraphConditionalHandleCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams = dlsym(__pyx_v_handle, __pyx_k_cuGraphExecNodeSetParams);

                /* "cuda/bindings/_bindings/cydriver.pyx":2582
 *         __cuGraphExecNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecNodeSetParams')
 *         global __cuGraphConditionalHandleCreate
 *         __cuGraphConditionalHandleCreate = dlfcn.dlsym(handle, 'cuGraphConditionalHandleCreate')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessor = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate = dlsym(__pyx_v_handle, __pyx_k_cuGraphConditionalHandleCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2584
 *         __cuGraphConditionalHandleCreate = dlfcn.dlsym(handle, 'cuGraphConditionalHandleCreate')
 *         global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessor = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxActiveBlocksPerMul);

                /* "cuda/bindings/_bindings/cydriver.pyx":2586
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessor = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor')
 *         global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxPotentialBlockSize
 *         __cuOccupancyMaxPotentialBlockSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxActiveBlocksPerMul_2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2588
 *         __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags')
 *         global __cuOccupancyMaxPotentialBlockSize
 *         __cuOccupancyMaxPotentialBlockSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSize')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *         __cuOccupancyMaxPotentialBlockSizeWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxPotentialBlockSize);

                /* "cuda/bindings/_bindings/cydriver.pyx":2590
 *         __cuOccupancyMaxPotentialBlockSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSize')
 *         global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *         __cuOccupancyMaxPotentialBlockSizeWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyAvailableDynamicSMemPerBlock
 *         __cuOccupancyAvailableDynamicSMemPerBlock = dlfcn.dlsym(handle, 'cuOccupancyAvailableDynamicSMemPerBlock')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxPotentialBlockSize_2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2592
 *         __cuOccupancyMaxPotentialBlockSizeWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags')
 *         global __cuOccupancyAvailableDynamicSMemPerBlock
 *         __cuOccupancyAvailableDynamicSMemPerBlock = dlfcn.dlsym(handle, 'cuOccupancyAvailableDynamicSMemPerBlock')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxPotentialClusterSize
 *         __cuOccupancyMaxPotentialClusterSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialClusterSize')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyAvailableDynamicSMemP);

                /* "cuda/bindings/_bindings/cydriver.pyx":2594
 *         __cuOccupancyAvailableDynamicSMemPerBlock = dlfcn.dlsym(handle, 'cuOccupancyAvailableDynamicSMemPerBlock')
 *         global __cuOccupancyMaxPotentialClusterSize
 *         __cuOccupancyMaxPotentialClusterSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialClusterSize')             # <<<<<<<<<<<<<<
 *         global __cuOccupancyMaxActiveClusters
 *         __cuOccupancyMaxActiveClusters = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveClusters')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxPotentialClusterSi);

                /* "cuda/bindings/_bindings/cydriver.pyx":2596
 *         __cuOccupancyMaxPotentialClusterSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialClusterSize')
 *         global __cuOccupancyMaxActiveClusters
 *         __cuOccupancyMaxActiveClusters = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveClusters')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetArray
 *         __cuTexRefSetArray = dlfcn.dlsym(handle, 'cuTexRefSetArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters = dlsym(__pyx_v_handle, __pyx_k_cuOccupancyMaxActiveClusters);

                /* "cuda/bindings/_bindings/cydriver.pyx":2598
 *         __cuOccupancyMaxActiveClusters = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveClusters')
 *         global __cuTexRefSetArray
 *         __cuTexRefSetArray = dlfcn.dlsym(handle, 'cuTexRefSetArray')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetMipmappedArray
 *         __cuTexRefSetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefSetMipmappedArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2600
 *         __cuTexRefSetArray = dlfcn.dlsym(handle, 'cuTexRefSetArray')
 *         global __cuTexRefSetMipmappedArray
 *         __cuTexRefSetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefSetMipmappedArray')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetAddress_v2
 *         __cuTexRefSetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefSetAddress_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetMipmappedArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2602
 *         __cuTexRefSetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefSetMipmappedArray')
 *         global __cuTexRefSetAddress_v2
 *         __cuTexRefSetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefSetAddress_v2')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetAddress2D_v3
 *         __cuTexRefSetAddress2D_v3 = dlfcn.dlsym(handle, 'cuTexRefSetAddress2D_v3')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2 = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetAddress_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2604
 *         __cuTexRefSetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefSetAddress_v2')
 *         global __cuTexRefSetAddress2D_v3
 *         __cuTexRefSetAddress2D_v3 = dlfcn.dlsym(handle, 'cuTexRefSetAddress2D_v3')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetFormat
 *         __cuTexRefSetFormat = dlfcn.dlsym(handle, 'cuTexRefSetFormat')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3 = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetAddress2D_v3);

                /* "cuda/bindings/_bindings/cydriver.pyx":2606
 *         __cuTexRefSetAddress2D_v3 = dlfcn.dlsym(handle, 'cuTexRefSetAddress2D_v3')
 *         global __cuTexRefSetFormat
 *         __cuTexRefSetFormat = dlfcn.dlsym(handle, 'cuTexRefSetFormat')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetAddressMode
 *         __cuTexRefSetAddressMode = dlfcn.dlsym(handle, 'cuTexRefSetAddressMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetFormat);

                /* "cuda/bindings/_bindings/cydriver.pyx":2608
 *         __cuTexRefSetFormat = dlfcn.dlsym(handle, 'cuTexRefSetFormat')
 *         global __cuTexRefSetAddressMode
 *         __cuTexRefSetAddressMode = dlfcn.dlsym(handle, 'cuTexRefSetAddressMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetFilterMode
 *         __cuTexRefSetFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetFilterMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetAddressMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2610
 *         __cuTexRefSetAddressMode = dlfcn.dlsym(handle, 'cuTexRefSetAddressMode')
 *         global __cuTexRefSetFilterMode
 *         __cuTexRefSetFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetFilterMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetMipmapFilterMode
 *         __cuTexRefSetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetMipmapFilterMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetFilterMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2612
 *         __cuTexRefSetFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetFilterMode')
 *         global __cuTexRefSetMipmapFilterMode
 *         __cuTexRefSetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetMipmapFilterMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetMipmapLevelBias
 *         __cuTexRefSetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelBias')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetMipmapFilterMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2614
 *         __cuTexRefSetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetMipmapFilterMode')
 *         global __cuTexRefSetMipmapLevelBias
 *         __cuTexRefSetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelBias')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetMipmapLevelClamp
 *         __cuTexRefSetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelClamp')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetMipmapLevelBias);

                /* "cuda/bindings/_bindings/cydriver.pyx":2616
 *         __cuTexRefSetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelBias')
 *         global __cuTexRefSetMipmapLevelClamp
 *         __cuTexRefSetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelClamp')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetMaxAnisotropy
 *         __cuTexRefSetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefSetMaxAnisotropy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetMipmapLevelClamp);

                /* "cuda/bindings/_bindings/cydriver.pyx":2618
 *         __cuTexRefSetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelClamp')
 *         global __cuTexRefSetMaxAnisotropy
 *         __cuTexRefSetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefSetMaxAnisotropy')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetBorderColor
 *         __cuTexRefSetBorderColor = dlfcn.dlsym(handle, 'cuTexRefSetBorderColor')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetMaxAnisotropy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2620
 *         __cuTexRefSetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefSetMaxAnisotropy')
 *         global __cuTexRefSetBorderColor
 *         __cuTexRefSetBorderColor = dlfcn.dlsym(handle, 'cuTexRefSetBorderColor')             # <<<<<<<<<<<<<<
 *         global __cuTexRefSetFlags
 *         __cuTexRefSetFlags = dlfcn.dlsym(handle, 'cuTexRefSetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetBorderColor);

                /* "cuda/bindings/_bindings/cydriver.pyx":2622
 *         __cuTexRefSetBorderColor = dlfcn.dlsym(handle, 'cuTexRefSetBorderColor')
 *         global __cuTexRefSetFlags
 *         __cuTexRefSetFlags = dlfcn.dlsym(handle, 'cuTexRefSetFlags')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetAddress_v2
 *         __cuTexRefGetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefGetAddress_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags = dlsym(__pyx_v_handle, __pyx_k_cuTexRefSetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2624
 *         __cuTexRefSetFlags = dlfcn.dlsym(handle, 'cuTexRefSetFlags')
 *         global __cuTexRefGetAddress_v2
 *         __cuTexRefGetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefGetAddress_v2')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetArray
 *         __cuTexRefGetArray = dlfcn.dlsym(handle, 'cuTexRefGetArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2 = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetAddress_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2626
 *         __cuTexRefGetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefGetAddress_v2')
 *         global __cuTexRefGetArray
 *         __cuTexRefGetArray = dlfcn.dlsym(handle, 'cuTexRefGetArray')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetMipmappedArray
 *         __cuTexRefGetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefGetMipmappedArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2628
 *         __cuTexRefGetArray = dlfcn.dlsym(handle, 'cuTexRefGetArray')
 *         global __cuTexRefGetMipmappedArray
 *         __cuTexRefGetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefGetMipmappedArray')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetAddressMode
 *         __cuTexRefGetAddressMode = dlfcn.dlsym(handle, 'cuTexRefGetAddressMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetMipmappedArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2630
 *         __cuTexRefGetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefGetMipmappedArray')
 *         global __cuTexRefGetAddressMode
 *         __cuTexRefGetAddressMode = dlfcn.dlsym(handle, 'cuTexRefGetAddressMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetFilterMode
 *         __cuTexRefGetFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetFilterMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetAddressMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2632
 *         __cuTexRefGetAddressMode = dlfcn.dlsym(handle, 'cuTexRefGetAddressMode')
 *         global __cuTexRefGetFilterMode
 *         __cuTexRefGetFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetFilterMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetFormat
 *         __cuTexRefGetFormat = dlfcn.dlsym(handle, 'cuTexRefGetFormat')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetFilterMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2634
 *         __cuTexRefGetFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetFilterMode')
 *         global __cuTexRefGetFormat
 *         __cuTexRefGetFormat = dlfcn.dlsym(handle, 'cuTexRefGetFormat')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetMipmapFilterMode
 *         __cuTexRefGetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetMipmapFilterMode')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetFormat);

                /* "cuda/bindings/_bindings/cydriver.pyx":2636
 *         __cuTexRefGetFormat = dlfcn.dlsym(handle, 'cuTexRefGetFormat')
 *         global __cuTexRefGetMipmapFilterMode
 *         __cuTexRefGetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetMipmapFilterMode')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetMipmapLevelBias
 *         __cuTexRefGetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelBias')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetMipmapFilterMode);

                /* "cuda/bindings/_bindings/cydriver.pyx":2638
 *         __cuTexRefGetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetMipmapFilterMode')
 *         global __cuTexRefGetMipmapLevelBias
 *         __cuTexRefGetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelBias')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetMipmapLevelClamp
 *         __cuTexRefGetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelClamp')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetMipmapLevelBias);

                /* "cuda/bindings/_bindings/cydriver.pyx":2640
 *         __cuTexRefGetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelBias')
 *         global __cuTexRefGetMipmapLevelClamp
 *         __cuTexRefGetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelClamp')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetMaxAnisotropy
 *         __cuTexRefGetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefGetMaxAnisotropy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetMipmapLevelClamp);

                /* "cuda/bindings/_bindings/cydriver.pyx":2642
 *         __cuTexRefGetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelClamp')
 *         global __cuTexRefGetMaxAnisotropy
 *         __cuTexRefGetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefGetMaxAnisotropy')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetBorderColor
 *         __cuTexRefGetBorderColor = dlfcn.dlsym(handle, 'cuTexRefGetBorderColor')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetMaxAnisotropy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2644
 *         __cuTexRefGetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefGetMaxAnisotropy')
 *         global __cuTexRefGetBorderColor
 *         __cuTexRefGetBorderColor = dlfcn.dlsym(handle, 'cuTexRefGetBorderColor')             # <<<<<<<<<<<<<<
 *         global __cuTexRefGetFlags
 *         __cuTexRefGetFlags = dlfcn.dlsym(handle, 'cuTexRefGetFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetBorderColor);

                /* "cuda/bindings/_bindings/cydriver.pyx":2646
 *         __cuTexRefGetBorderColor = dlfcn.dlsym(handle, 'cuTexRefGetBorderColor')
 *         global __cuTexRefGetFlags
 *         __cuTexRefGetFlags = dlfcn.dlsym(handle, 'cuTexRefGetFlags')             # <<<<<<<<<<<<<<
 *         global __cuTexRefCreate
 *         __cuTexRefCreate = dlfcn.dlsym(handle, 'cuTexRefCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags = dlsym(__pyx_v_handle, __pyx_k_cuTexRefGetFlags);

                /* "cuda/bindings/_bindings/cydriver.pyx":2648
 *         __cuTexRefGetFlags = dlfcn.dlsym(handle, 'cuTexRefGetFlags')
 *         global __cuTexRefCreate
 *         __cuTexRefCreate = dlfcn.dlsym(handle, 'cuTexRefCreate')             # <<<<<<<<<<<<<<
 *         global __cuTexRefDestroy
 *         __cuTexRefDestroy = dlfcn.dlsym(handle, 'cuTexRefDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate = dlsym(__pyx_v_handle, __pyx_k_cuTexRefCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2650
 *         __cuTexRefCreate = dlfcn.dlsym(handle, 'cuTexRefCreate')
 *         global __cuTexRefDestroy
 *         __cuTexRefDestroy = dlfcn.dlsym(handle, 'cuTexRefDestroy')             # <<<<<<<<<<<<<<
 *         global __cuSurfRefSetArray
 *         __cuSurfRefSetArray = dlfcn.dlsym(handle, 'cuSurfRefSetArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy = dlsym(__pyx_v_handle, __pyx_k_cuTexRefDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2652
 *         __cuTexRefDestroy = dlfcn.dlsym(handle, 'cuTexRefDestroy')
 *         global __cuSurfRefSetArray
 *         __cuSurfRefSetArray = dlfcn.dlsym(handle, 'cuSurfRefSetArray')             # <<<<<<<<<<<<<<
 *         global __cuSurfRefGetArray
 *         __cuSurfRefGetArray = dlfcn.dlsym(handle, 'cuSurfRefGetArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray = dlsym(__pyx_v_handle, __pyx_k_cuSurfRefSetArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2654
 *         __cuSurfRefSetArray = dlfcn.dlsym(handle, 'cuSurfRefSetArray')
 *         global __cuSurfRefGetArray
 *         __cuSurfRefGetArray = dlfcn.dlsym(handle, 'cuSurfRefGetArray')             # <<<<<<<<<<<<<<
 *         global __cuTexObjectCreate
 *         __cuTexObjectCreate = dlfcn.dlsym(handle, 'cuTexObjectCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray = dlsym(__pyx_v_handle, __pyx_k_cuSurfRefGetArray);

                /* "cuda/bindings/_bindings/cydriver.pyx":2656
 *         __cuSurfRefGetArray = dlfcn.dlsym(handle, 'cuSurfRefGetArray')
 *         global __cuTexObjectCreate
 *         __cuTexObjectCreate = dlfcn.dlsym(handle, 'cuTexObjectCreate')             # <<<<<<<<<<<<<<
 *         global __cuTexObjectDestroy
 *         __cuTexObjectDestroy = dlfcn.dlsym(handle, 'cuTexObjectDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate = dlsym(__pyx_v_handle, __pyx_k_cuTexObjectCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2658
 *         __cuTexObjectCreate = dlfcn.dlsym(handle, 'cuTexObjectCreate')
 *         global __cuTexObjectDestroy
 *         __cuTexObjectDestroy = dlfcn.dlsym(handle, 'cuTexObjectDestroy')             # <<<<<<<<<<<<<<
 *         global __cuTexObjectGetResourceDesc
 *         __cuTexObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceDesc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy = dlsym(__pyx_v_handle, __pyx_k_cuTexObjectDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2660
 *         __cuTexObjectDestroy = dlfcn.dlsym(handle, 'cuTexObjectDestroy')
 *         global __cuTexObjectGetResourceDesc
 *         __cuTexObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceDesc')             # <<<<<<<<<<<<<<
 *         global __cuTexObjectGetTextureDesc
 *         __cuTexObjectGetTextureDesc = dlfcn.dlsym(handle, 'cuTexObjectGetTextureDesc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc = dlsym(__pyx_v_handle, __pyx_k_cuTexObjectGetResourceDesc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2662
 *         __cuTexObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceDesc')
 *         global __cuTexObjectGetTextureDesc
 *         __cuTexObjectGetTextureDesc = dlfcn.dlsym(handle, 'cuTexObjectGetTextureDesc')             # <<<<<<<<<<<<<<
 *         global __cuTexObjectGetResourceViewDesc
 *         __cuTexObjectGetResourceViewDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceViewDesc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc = dlsym(__pyx_v_handle, __pyx_k_cuTexObjectGetTextureDesc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2664
 *         __cuTexObjectGetTextureDesc = dlfcn.dlsym(handle, 'cuTexObjectGetTextureDesc')
 *         global __cuTexObjectGetResourceViewDesc
 *         __cuTexObjectGetResourceViewDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceViewDesc')             # <<<<<<<<<<<<<<
 *         global __cuSurfObjectCreate
 *         __cuSurfObjectCreate = dlfcn.dlsym(handle, 'cuSurfObjectCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc = dlsym(__pyx_v_handle, __pyx_k_cuTexObjectGetResourceViewDesc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2666
 *         __cuTexObjectGetResourceViewDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceViewDesc')
 *         global __cuSurfObjectCreate
 *         __cuSurfObjectCreate = dlfcn.dlsym(handle, 'cuSurfObjectCreate')             # <<<<<<<<<<<<<<
 *         global __cuSurfObjectDestroy
 *         __cuSurfObjectDestroy = dlfcn.dlsym(handle, 'cuSurfObjectDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate = dlsym(__pyx_v_handle, __pyx_k_cuSurfObjectCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2668
 *         __cuSurfObjectCreate = dlfcn.dlsym(handle, 'cuSurfObjectCreate')
 *         global __cuSurfObjectDestroy
 *         __cuSurfObjectDestroy = dlfcn.dlsym(handle, 'cuSurfObjectDestroy')             # <<<<<<<<<<<<<<
 *         global __cuSurfObjectGetResourceDesc
 *         __cuSurfObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuSurfObjectGetResourceDesc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy = dlsym(__pyx_v_handle, __pyx_k_cuSurfObjectDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2670
 *         __cuSurfObjectDestroy = dlfcn.dlsym(handle, 'cuSurfObjectDestroy')
 *         global __cuSurfObjectGetResourceDesc
 *         __cuSurfObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuSurfObjectGetResourceDesc')             # <<<<<<<<<<<<<<
 *         global __cuTensorMapEncodeTiled
 *         __cuTensorMapEncodeTiled = dlfcn.dlsym(handle, 'cuTensorMapEncodeTiled')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc = dlsym(__pyx_v_handle, __pyx_k_cuSurfObjectGetResourceDesc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2672
 *         __cuSurfObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuSurfObjectGetResourceDesc')
 *         global __cuTensorMapEncodeTiled
 *         __cuTensorMapEncodeTiled = dlfcn.dlsym(handle, 'cuTensorMapEncodeTiled')             # <<<<<<<<<<<<<<
 *         global __cuTensorMapEncodeIm2col
 *         __cuTensorMapEncodeIm2col = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2col')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled = dlsym(__pyx_v_handle, __pyx_k_cuTensorMapEncodeTiled);

                /* "cuda/bindings/_bindings/cydriver.pyx":2674
 *         __cuTensorMapEncodeTiled = dlfcn.dlsym(handle, 'cuTensorMapEncodeTiled')
 *         global __cuTensorMapEncodeIm2col
 *         __cuTensorMapEncodeIm2col = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2col')             # <<<<<<<<<<<<<<
 *         global __cuTensorMapEncodeIm2colWide
 *         __cuTensorMapEncodeIm2colWide = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2colWide')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col = dlsym(__pyx_v_handle, __pyx_k_cuTensorMapEncodeIm2col);

                /* "cuda/bindings/_bindings/cydriver.pyx":2676
 *         __cuTensorMapEncodeIm2col = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2col')
 *         global __cuTensorMapEncodeIm2colWide
 *         __cuTensorMapEncodeIm2colWide = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2colWide')             # <<<<<<<<<<<<<<
 *         global __cuTensorMapReplaceAddress
 *         __cuTensorMapReplaceAddress = dlfcn.dlsym(handle, 'cuTensorMapReplaceAddress')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide = dlsym(__pyx_v_handle, __pyx_k_cuTensorMapEncodeIm2colWide);

                /* "cuda/bindings/_bindings/cydriver.pyx":2678
 *         __cuTensorMapEncodeIm2colWide = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2colWide')
 *         global __cuTensorMapReplaceAddress
 *         __cuTensorMapReplaceAddress = dlfcn.dlsym(handle, 'cuTensorMapReplaceAddress')             # <<<<<<<<<<<<<<
 *         global __cuDeviceCanAccessPeer
 *         __cuDeviceCanAccessPeer = dlfcn.dlsym(handle, 'cuDeviceCanAccessPeer')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress = dlsym(__pyx_v_handle, __pyx_k_cuTensorMapReplaceAddress);

                /* "cuda/bindings/_bindings/cydriver.pyx":2680
 *         __cuTensorMapReplaceAddress = dlfcn.dlsym(handle, 'cuTensorMapReplaceAddress')
 *         global __cuDeviceCanAccessPeer
 *         __cuDeviceCanAccessPeer = dlfcn.dlsym(handle, 'cuDeviceCanAccessPeer')             # <<<<<<<<<<<<<<
 *         global __cuCtxEnablePeerAccess
 *         __cuCtxEnablePeerAccess = dlfcn.dlsym(handle, 'cuCtxEnablePeerAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer = dlsym(__pyx_v_handle, __pyx_k_cuDeviceCanAccessPeer);

                /* "cuda/bindings/_bindings/cydriver.pyx":2682
 *         __cuDeviceCanAccessPeer = dlfcn.dlsym(handle, 'cuDeviceCanAccessPeer')
 *         global __cuCtxEnablePeerAccess
 *         __cuCtxEnablePeerAccess = dlfcn.dlsym(handle, 'cuCtxEnablePeerAccess')             # <<<<<<<<<<<<<<
 *         global __cuCtxDisablePeerAccess
 *         __cuCtxDisablePeerAccess = dlfcn.dlsym(handle, 'cuCtxDisablePeerAccess')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess = dlsym(__pyx_v_handle, __pyx_k_cuCtxEnablePeerAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2684
 *         __cuCtxEnablePeerAccess = dlfcn.dlsym(handle, 'cuCtxEnablePeerAccess')
 *         global __cuCtxDisablePeerAccess
 *         __cuCtxDisablePeerAccess = dlfcn.dlsym(handle, 'cuCtxDisablePeerAccess')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetP2PAttribute
 *         __cuDeviceGetP2PAttribute = dlfcn.dlsym(handle, 'cuDeviceGetP2PAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess = dlsym(__pyx_v_handle, __pyx_k_cuCtxDisablePeerAccess);

                /* "cuda/bindings/_bindings/cydriver.pyx":2686
 *         __cuCtxDisablePeerAccess = dlfcn.dlsym(handle, 'cuCtxDisablePeerAccess')
 *         global __cuDeviceGetP2PAttribute
 *         __cuDeviceGetP2PAttribute = dlfcn.dlsym(handle, 'cuDeviceGetP2PAttribute')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetP2PAtomicCapabilities
 *         __cuDeviceGetP2PAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetP2PAtomicCapabilities')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetP2PAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2688
 *         __cuDeviceGetP2PAttribute = dlfcn.dlsym(handle, 'cuDeviceGetP2PAttribute')
 *         global __cuDeviceGetP2PAtomicCapabilities
 *         __cuDeviceGetP2PAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetP2PAtomicCapabilities')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsUnregisterResource
 *         __cuGraphicsUnregisterResource = dlfcn.dlsym(handle, 'cuGraphicsUnregisterResource')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetP2PAtomicCapabilities);

                /* "cuda/bindings/_bindings/cydriver.pyx":2690
 *         __cuDeviceGetP2PAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetP2PAtomicCapabilities')
 *         global __cuGraphicsUnregisterResource
 *         __cuGraphicsUnregisterResource = dlfcn.dlsym(handle, 'cuGraphicsUnregisterResource')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsSubResourceGetMappedArray
 *         __cuGraphicsSubResourceGetMappedArray = dlfcn.dlsym(handle, 'cuGraphicsSubResourceGetMappedArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsUnregisterResource);

                /* "cuda/bindings/_bindings/cydriver.pyx":2692
 *         __cuGraphicsUnregisterResource = dlfcn.dlsym(handle, 'cuGraphicsUnregisterResource')
 *         global __cuGraphicsSubResourceGetMappedArray
 *         __cuGraphicsSubResourceGetMappedArray = dlfcn.dlsym(handle, 'cuGraphicsSubResourceGetMappedArray')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsResourceGetMappedMipmappedArray
 *         __cuGraphicsResourceGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedMipmappedArray')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsSubResourceGetMappedAr);

                /* "cuda/bindings/_bindings/cydriver.pyx":2694
 *         __cuGraphicsSubResourceGetMappedArray = dlfcn.dlsym(handle, 'cuGraphicsSubResourceGetMappedArray')
 *         global __cuGraphicsResourceGetMappedMipmappedArray
 *         __cuGraphicsResourceGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedMipmappedArray')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsResourceGetMappedPointer_v2
 *         __cuGraphicsResourceGetMappedPointer_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedPointer_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsResourceGetMappedMipma);

                /* "cuda/bindings/_bindings/cydriver.pyx":2696
 *         __cuGraphicsResourceGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedMipmappedArray')
 *         global __cuGraphicsResourceGetMappedPointer_v2
 *         __cuGraphicsResourceGetMappedPointer_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedPointer_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsResourceSetMapFlags_v2
 *         __cuGraphicsResourceSetMapFlags_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceSetMapFlags_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsResourceGetMappedPoint_2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2698
 *         __cuGraphicsResourceGetMappedPointer_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedPointer_v2')
 *         global __cuGraphicsResourceSetMapFlags_v2
 *         __cuGraphicsResourceSetMapFlags_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceSetMapFlags_v2')             # <<<<<<<<<<<<<<
 *         global __cuGetProcAddress_v2
 *         __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsResourceSetMapFlags_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2700
 *         __cuGraphicsResourceSetMapFlags_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceSetMapFlags_v2')
 *         global __cuGetProcAddress_v2
 *         __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')             # <<<<<<<<<<<<<<
 *         global __cuCoredumpGetAttribute
 *         __cuCoredumpGetAttribute = dlfcn.dlsym(handle, 'cuCoredumpGetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGetProcAddress_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2702
 *         __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')
 *         global __cuCoredumpGetAttribute
 *         __cuCoredumpGetAttribute = dlfcn.dlsym(handle, 'cuCoredumpGetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuCoredumpGetAttributeGlobal
 *         __cuCoredumpGetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpGetAttributeGlobal')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuCoredumpGetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2704
 *         __cuCoredumpGetAttribute = dlfcn.dlsym(handle, 'cuCoredumpGetAttribute')
 *         global __cuCoredumpGetAttributeGlobal
 *         __cuCoredumpGetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpGetAttributeGlobal')             # <<<<<<<<<<<<<<
 *         global __cuCoredumpSetAttribute
 *         __cuCoredumpSetAttribute = dlfcn.dlsym(handle, 'cuCoredumpSetAttribute')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal = dlsym(__pyx_v_handle, __pyx_k_cuCoredumpGetAttributeGlobal);

                /* "cuda/bindings/_bindings/cydriver.pyx":2706
 *         __cuCoredumpGetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpGetAttributeGlobal')
 *         global __cuCoredumpSetAttribute
 *         __cuCoredumpSetAttribute = dlfcn.dlsym(handle, 'cuCoredumpSetAttribute')             # <<<<<<<<<<<<<<
 *         global __cuCoredumpSetAttributeGlobal
 *         __cuCoredumpSetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpSetAttributeGlobal')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute = dlsym(__pyx_v_handle, __pyx_k_cuCoredumpSetAttribute);

                /* "cuda/bindings/_bindings/cydriver.pyx":2708
 *         __cuCoredumpSetAttribute = dlfcn.dlsym(handle, 'cuCoredumpSetAttribute')
 *         global __cuCoredumpSetAttributeGlobal
 *         __cuCoredumpSetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpSetAttributeGlobal')             # <<<<<<<<<<<<<<
 *         global __cuGetExportTable
 *         __cuGetExportTable = dlfcn.dlsym(handle, 'cuGetExportTable')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal = dlsym(__pyx_v_handle, __pyx_k_cuCoredumpSetAttributeGlobal);

                /* "cuda/bindings/_bindings/cydriver.pyx":2710
 *         __cuCoredumpSetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpSetAttributeGlobal')
 *         global __cuGetExportTable
 *         __cuGetExportTable = dlfcn.dlsym(handle, 'cuGetExportTable')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxCreate
 *         __cuGreenCtxCreate = dlfcn.dlsym(handle, 'cuGreenCtxCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable = dlsym(__pyx_v_handle, __pyx_k_cuGetExportTable);

                /* "cuda/bindings/_bindings/cydriver.pyx":2712
 *         __cuGetExportTable = dlfcn.dlsym(handle, 'cuGetExportTable')
 *         global __cuGreenCtxCreate
 *         __cuGreenCtxCreate = dlfcn.dlsym(handle, 'cuGreenCtxCreate')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxDestroy
 *         __cuGreenCtxDestroy = dlfcn.dlsym(handle, 'cuGreenCtxDestroy')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2714
 *         __cuGreenCtxCreate = dlfcn.dlsym(handle, 'cuGreenCtxCreate')
 *         global __cuGreenCtxDestroy
 *         __cuGreenCtxDestroy = dlfcn.dlsym(handle, 'cuGreenCtxDestroy')             # <<<<<<<<<<<<<<
 *         global __cuCtxFromGreenCtx
 *         __cuCtxFromGreenCtx = dlfcn.dlsym(handle, 'cuCtxFromGreenCtx')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxDestroy);

                /* "cuda/bindings/_bindings/cydriver.pyx":2716
 *         __cuGreenCtxDestroy = dlfcn.dlsym(handle, 'cuGreenCtxDestroy')
 *         global __cuCtxFromGreenCtx
 *         __cuCtxFromGreenCtx = dlfcn.dlsym(handle, 'cuCtxFromGreenCtx')             # <<<<<<<<<<<<<<
 *         global __cuDeviceGetDevResource
 *         __cuDeviceGetDevResource = dlfcn.dlsym(handle, 'cuDeviceGetDevResource')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx = dlsym(__pyx_v_handle, __pyx_k_cuCtxFromGreenCtx);

                /* "cuda/bindings/_bindings/cydriver.pyx":2718
 *         __cuCtxFromGreenCtx = dlfcn.dlsym(handle, 'cuCtxFromGreenCtx')
 *         global __cuDeviceGetDevResource
 *         __cuDeviceGetDevResource = dlfcn.dlsym(handle, 'cuDeviceGetDevResource')             # <<<<<<<<<<<<<<
 *         global __cuCtxGetDevResource
 *         __cuCtxGetDevResource = dlfcn.dlsym(handle, 'cuCtxGetDevResource')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource = dlsym(__pyx_v_handle, __pyx_k_cuDeviceGetDevResource);

                /* "cuda/bindings/_bindings/cydriver.pyx":2720
 *         __cuDeviceGetDevResource = dlfcn.dlsym(handle, 'cuDeviceGetDevResource')
 *         global __cuCtxGetDevResource
 *         __cuCtxGetDevResource = dlfcn.dlsym(handle, 'cuCtxGetDevResource')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxGetDevResource
 *         __cuGreenCtxGetDevResource = dlfcn.dlsym(handle, 'cuGreenCtxGetDevResource')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource = dlsym(__pyx_v_handle, __pyx_k_cuCtxGetDevResource);

                /* "cuda/bindings/_bindings/cydriver.pyx":2722
 *         __cuCtxGetDevResource = dlfcn.dlsym(handle, 'cuCtxGetDevResource')
 *         global __cuGreenCtxGetDevResource
 *         __cuGreenCtxGetDevResource = dlfcn.dlsym(handle, 'cuGreenCtxGetDevResource')             # <<<<<<<<<<<<<<
 *         global __cuDevSmResourceSplitByCount
 *         __cuDevSmResourceSplitByCount = dlfcn.dlsym(handle, 'cuDevSmResourceSplitByCount')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxGetDevResource);

                /* "cuda/bindings/_bindings/cydriver.pyx":2724
 *         __cuGreenCtxGetDevResource = dlfcn.dlsym(handle, 'cuGreenCtxGetDevResource')
 *         global __cuDevSmResourceSplitByCount
 *         __cuDevSmResourceSplitByCount = dlfcn.dlsym(handle, 'cuDevSmResourceSplitByCount')             # <<<<<<<<<<<<<<
 *         global __cuDevSmResourceSplit
 *         __cuDevSmResourceSplit = dlfcn.dlsym(handle, 'cuDevSmResourceSplit')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount = dlsym(__pyx_v_handle, __pyx_k_cuDevSmResourceSplitByCount);

                /* "cuda/bindings/_bindings/cydriver.pyx":2726
 *         __cuDevSmResourceSplitByCount = dlfcn.dlsym(handle, 'cuDevSmResourceSplitByCount')
 *         global __cuDevSmResourceSplit
 *         __cuDevSmResourceSplit = dlfcn.dlsym(handle, 'cuDevSmResourceSplit')             # <<<<<<<<<<<<<<
 *         global __cuDevResourceGenerateDesc
 *         __cuDevResourceGenerateDesc = dlfcn.dlsym(handle, 'cuDevResourceGenerateDesc')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit = dlsym(__pyx_v_handle, __pyx_k_cuDevSmResourceSplit);

                /* "cuda/bindings/_bindings/cydriver.pyx":2728
 *         __cuDevSmResourceSplit = dlfcn.dlsym(handle, 'cuDevSmResourceSplit')
 *         global __cuDevResourceGenerateDesc
 *         __cuDevResourceGenerateDesc = dlfcn.dlsym(handle, 'cuDevResourceGenerateDesc')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxRecordEvent
 *         __cuGreenCtxRecordEvent = dlfcn.dlsym(handle, 'cuGreenCtxRecordEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc = dlsym(__pyx_v_handle, __pyx_k_cuDevResourceGenerateDesc);

                /* "cuda/bindings/_bindings/cydriver.pyx":2730
 *         __cuDevResourceGenerateDesc = dlfcn.dlsym(handle, 'cuDevResourceGenerateDesc')
 *         global __cuGreenCtxRecordEvent
 *         __cuGreenCtxRecordEvent = dlfcn.dlsym(handle, 'cuGreenCtxRecordEvent')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxWaitEvent
 *         __cuGreenCtxWaitEvent = dlfcn.dlsym(handle, 'cuGreenCtxWaitEvent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxRecordEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2732
 *         __cuGreenCtxRecordEvent = dlfcn.dlsym(handle, 'cuGreenCtxRecordEvent')
 *         global __cuGreenCtxWaitEvent
 *         __cuGreenCtxWaitEvent = dlfcn.dlsym(handle, 'cuGreenCtxWaitEvent')             # <<<<<<<<<<<<<<
 *         global __cuStreamGetGreenCtx
 *         __cuStreamGetGreenCtx = dlfcn.dlsym(handle, 'cuStreamGetGreenCtx')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxWaitEvent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2734
 *         __cuGreenCtxWaitEvent = dlfcn.dlsym(handle, 'cuGreenCtxWaitEvent')
 *         global __cuStreamGetGreenCtx
 *         __cuStreamGetGreenCtx = dlfcn.dlsym(handle, 'cuStreamGetGreenCtx')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxStreamCreate
 *         __cuGreenCtxStreamCreate = dlfcn.dlsym(handle, 'cuGreenCtxStreamCreate')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx = dlsym(__pyx_v_handle, __pyx_k_cuStreamGetGreenCtx);

                /* "cuda/bindings/_bindings/cydriver.pyx":2736
 *         __cuStreamGetGreenCtx = dlfcn.dlsym(handle, 'cuStreamGetGreenCtx')
 *         global __cuGreenCtxStreamCreate
 *         __cuGreenCtxStreamCreate = dlfcn.dlsym(handle, 'cuGreenCtxStreamCreate')             # <<<<<<<<<<<<<<
 *         global __cuGreenCtxGetId
 *         __cuGreenCtxGetId = dlfcn.dlsym(handle, 'cuGreenCtxGetId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxStreamCreate);

                /* "cuda/bindings/_bindings/cydriver.pyx":2738
 *         __cuGreenCtxStreamCreate = dlfcn.dlsym(handle, 'cuGreenCtxStreamCreate')
 *         global __cuGreenCtxGetId
 *         __cuGreenCtxGetId = dlfcn.dlsym(handle, 'cuGreenCtxGetId')             # <<<<<<<<<<<<<<
 *         global __cuLogsRegisterCallback
 *         __cuLogsRegisterCallback = dlfcn.dlsym(handle, 'cuLogsRegisterCallback')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId = dlsym(__pyx_v_handle, __pyx_k_cuGreenCtxGetId);

                /* "cuda/bindings/_bindings/cydriver.pyx":2740
 *         __cuGreenCtxGetId = dlfcn.dlsym(handle, 'cuGreenCtxGetId')
 *         global __cuLogsRegisterCallback
 *         __cuLogsRegisterCallback = dlfcn.dlsym(handle, 'cuLogsRegisterCallback')             # <<<<<<<<<<<<<<
 *         global __cuLogsUnregisterCallback
 *         __cuLogsUnregisterCallback = dlfcn.dlsym(handle, 'cuLogsUnregisterCallback')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback = dlsym(__pyx_v_handle, __pyx_k_cuLogsRegisterCallback);

                /* "cuda/bindings/_bindings/cydriver.pyx":2742
 *         __cuLogsRegisterCallback = dlfcn.dlsym(handle, 'cuLogsRegisterCallback')
 *         global __cuLogsUnregisterCallback
 *         __cuLogsUnregisterCallback = dlfcn.dlsym(handle, 'cuLogsUnregisterCallback')             # <<<<<<<<<<<<<<
 *         global __cuLogsCurrent
 *         __cuLogsCurrent = dlfcn.dlsym(handle, 'cuLogsCurrent')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback = dlsym(__pyx_v_handle, __pyx_k_cuLogsUnregisterCallback);

                /* "cuda/bindings/_bindings/cydriver.pyx":2744
 *         __cuLogsUnregisterCallback = dlfcn.dlsym(handle, 'cuLogsUnregisterCallback')
 *         global __cuLogsCurrent
 *         __cuLogsCurrent = dlfcn.dlsym(handle, 'cuLogsCurrent')             # <<<<<<<<<<<<<<
 *         global __cuLogsDumpToFile
 *         __cuLogsDumpToFile = dlfcn.dlsym(handle, 'cuLogsDumpToFile')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent = dlsym(__pyx_v_handle, __pyx_k_cuLogsCurrent);

                /* "cuda/bindings/_bindings/cydriver.pyx":2746
 *         __cuLogsCurrent = dlfcn.dlsym(handle, 'cuLogsCurrent')
 *         global __cuLogsDumpToFile
 *         __cuLogsDumpToFile = dlfcn.dlsym(handle, 'cuLogsDumpToFile')             # <<<<<<<<<<<<<<
 *         global __cuLogsDumpToMemory
 *         __cuLogsDumpToMemory = dlfcn.dlsym(handle, 'cuLogsDumpToMemory')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile = dlsym(__pyx_v_handle, __pyx_k_cuLogsDumpToFile);

                /* "cuda/bindings/_bindings/cydriver.pyx":2748
 *         __cuLogsDumpToFile = dlfcn.dlsym(handle, 'cuLogsDumpToFile')
 *         global __cuLogsDumpToMemory
 *         __cuLogsDumpToMemory = dlfcn.dlsym(handle, 'cuLogsDumpToMemory')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessGetRestoreThreadId
 *         __cuCheckpointProcessGetRestoreThreadId = dlfcn.dlsym(handle, 'cuCheckpointProcessGetRestoreThreadId')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory = dlsym(__pyx_v_handle, __pyx_k_cuLogsDumpToMemory);

                /* "cuda/bindings/_bindings/cydriver.pyx":2750
 *         __cuLogsDumpToMemory = dlfcn.dlsym(handle, 'cuLogsDumpToMemory')
 *         global __cuCheckpointProcessGetRestoreThreadId
 *         __cuCheckpointProcessGetRestoreThreadId = dlfcn.dlsym(handle, 'cuCheckpointProcessGetRestoreThreadId')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessGetState
 *         __cuCheckpointProcessGetState = dlfcn.dlsym(handle, 'cuCheckpointProcessGetState')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessGetRestoreThr);

                /* "cuda/bindings/_bindings/cydriver.pyx":2752
 *         __cuCheckpointProcessGetRestoreThreadId = dlfcn.dlsym(handle, 'cuCheckpointProcessGetRestoreThreadId')
 *         global __cuCheckpointProcessGetState
 *         __cuCheckpointProcessGetState = dlfcn.dlsym(handle, 'cuCheckpointProcessGetState')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessLock
 *         __cuCheckpointProcessLock = dlfcn.dlsym(handle, 'cuCheckpointProcessLock')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessGetState);

                /* "cuda/bindings/_bindings/cydriver.pyx":2754
 *         __cuCheckpointProcessGetState = dlfcn.dlsym(handle, 'cuCheckpointProcessGetState')
 *         global __cuCheckpointProcessLock
 *         __cuCheckpointProcessLock = dlfcn.dlsym(handle, 'cuCheckpointProcessLock')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessCheckpoint
 *         __cuCheckpointProcessCheckpoint = dlfcn.dlsym(handle, 'cuCheckpointProcessCheckpoint')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessLock);

                /* "cuda/bindings/_bindings/cydriver.pyx":2756
 *         __cuCheckpointProcessLock = dlfcn.dlsym(handle, 'cuCheckpointProcessLock')
 *         global __cuCheckpointProcessCheckpoint
 *         __cuCheckpointProcessCheckpoint = dlfcn.dlsym(handle, 'cuCheckpointProcessCheckpoint')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessRestore
 *         __cuCheckpointProcessRestore = dlfcn.dlsym(handle, 'cuCheckpointProcessRestore')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessCheckpoint);

                /* "cuda/bindings/_bindings/cydriver.pyx":2758
 *         __cuCheckpointProcessCheckpoint = dlfcn.dlsym(handle, 'cuCheckpointProcessCheckpoint')
 *         global __cuCheckpointProcessRestore
 *         __cuCheckpointProcessRestore = dlfcn.dlsym(handle, 'cuCheckpointProcessRestore')             # <<<<<<<<<<<<<<
 *         global __cuCheckpointProcessUnlock
 *         __cuCheckpointProcessUnlock = dlfcn.dlsym(handle, 'cuCheckpointProcessUnlock')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessRestore);

                /* "cuda/bindings/_bindings/cydriver.pyx":2760
 *         __cuCheckpointProcessRestore = dlfcn.dlsym(handle, 'cuCheckpointProcessRestore')
 *         global __cuCheckpointProcessUnlock
 *         __cuCheckpointProcessUnlock = dlfcn.dlsym(handle, 'cuCheckpointProcessUnlock')             # <<<<<<<<<<<<<<
 *         global __cuProfilerStart
 *         __cuProfilerStart = dlfcn.dlsym(handle, 'cuProfilerStart')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock = dlsym(__pyx_v_handle, __pyx_k_cuCheckpointProcessUnlock);

                /* "cuda/bindings/_bindings/cydriver.pyx":2762
 *         __cuCheckpointProcessUnlock = dlfcn.dlsym(handle, 'cuCheckpointProcessUnlock')
 *         global __cuProfilerStart
 *         __cuProfilerStart = dlfcn.dlsym(handle, 'cuProfilerStart')             # <<<<<<<<<<<<<<
 *         global __cuProfilerStop
 *         __cuProfilerStop = dlfcn.dlsym(handle, 'cuProfilerStop')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart = dlsym(__pyx_v_handle, __pyx_k_cuProfilerStart);

                /* "cuda/bindings/_bindings/cydriver.pyx":2764
 *         __cuProfilerStart = dlfcn.dlsym(handle, 'cuProfilerStart')
 *         global __cuProfilerStop
 *         __cuProfilerStop = dlfcn.dlsym(handle, 'cuProfilerStop')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsEGLRegisterImage
 *         __cuGraphicsEGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsEGLRegisterImage')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop = dlsym(__pyx_v_handle, __pyx_k_cuProfilerStop);

                /* "cuda/bindings/_bindings/cydriver.pyx":2766
 *         __cuProfilerStop = dlfcn.dlsym(handle, 'cuProfilerStop')
 *         global __cuGraphicsEGLRegisterImage
 *         __cuGraphicsEGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsEGLRegisterImage')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamConsumerConnect
 *         __cuEGLStreamConsumerConnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnect')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsEGLRegisterImage);

                /* "cuda/bindings/_bindings/cydriver.pyx":2768
 *         __cuGraphicsEGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsEGLRegisterImage')
 *         global __cuEGLStreamConsumerConnect
 *         __cuEGLStreamConsumerConnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnect')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamConsumerConnectWithFlags
 *         __cuEGLStreamConsumerConnectWithFlags = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnectWithFlags')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamConsumerConnect);

                /* "cuda/bindings/_bindings/cydriver.pyx":2770
 *         __cuEGLStreamConsumerConnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnect')
 *         global __cuEGLStreamConsumerConnectWithFlags
 *         __cuEGLStreamConsumerConnectWithFlags = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnectWithFlags')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamConsumerDisconnect
 *         __cuEGLStreamConsumerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerDisconnect')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamConsumerConnectWithFl);

                /* "cuda/bindings/_bindings/cydriver.pyx":2772
 *         __cuEGLStreamConsumerConnectWithFlags = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnectWithFlags')
 *         global __cuEGLStreamConsumerDisconnect
 *         __cuEGLStreamConsumerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerDisconnect')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamConsumerAcquireFrame
 *         __cuEGLStreamConsumerAcquireFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerAcquireFrame')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamConsumerDisconnect);

                /* "cuda/bindings/_bindings/cydriver.pyx":2774
 *         __cuEGLStreamConsumerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerDisconnect')
 *         global __cuEGLStreamConsumerAcquireFrame
 *         __cuEGLStreamConsumerAcquireFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerAcquireFrame')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamConsumerReleaseFrame
 *         __cuEGLStreamConsumerReleaseFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerReleaseFrame')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamConsumerAcquireFrame);

                /* "cuda/bindings/_bindings/cydriver.pyx":2776
 *         __cuEGLStreamConsumerAcquireFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerAcquireFrame')
 *         global __cuEGLStreamConsumerReleaseFrame
 *         __cuEGLStreamConsumerReleaseFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerReleaseFrame')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamProducerConnect
 *         __cuEGLStreamProducerConnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerConnect')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamConsumerReleaseFrame);

                /* "cuda/bindings/_bindings/cydriver.pyx":2778
 *         __cuEGLStreamConsumerReleaseFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerReleaseFrame')
 *         global __cuEGLStreamProducerConnect
 *         __cuEGLStreamProducerConnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerConnect')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamProducerDisconnect
 *         __cuEGLStreamProducerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerDisconnect')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamProducerConnect);

                /* "cuda/bindings/_bindings/cydriver.pyx":2780
 *         __cuEGLStreamProducerConnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerConnect')
 *         global __cuEGLStreamProducerDisconnect
 *         __cuEGLStreamProducerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerDisconnect')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamProducerPresentFrame
 *         __cuEGLStreamProducerPresentFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerPresentFrame')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamProducerDisconnect);

                /* "cuda/bindings/_bindings/cydriver.pyx":2782
 *         __cuEGLStreamProducerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerDisconnect')
 *         global __cuEGLStreamProducerPresentFrame
 *         __cuEGLStreamProducerPresentFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerPresentFrame')             # <<<<<<<<<<<<<<
 *         global __cuEGLStreamProducerReturnFrame
 *         __cuEGLStreamProducerReturnFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerReturnFrame')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamProducerPresentFrame);

                /* "cuda/bindings/_bindings/cydriver.pyx":2784
 *         __cuEGLStreamProducerPresentFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerPresentFrame')
 *         global __cuEGLStreamProducerReturnFrame
 *         __cuEGLStreamProducerReturnFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerReturnFrame')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsResourceGetMappedEglFrame
 *         __cuGraphicsResourceGetMappedEglFrame = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedEglFrame')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame = dlsym(__pyx_v_handle, __pyx_k_cuEGLStreamProducerReturnFrame);

                /* "cuda/bindings/_bindings/cydriver.pyx":2786
 *         __cuEGLStreamProducerReturnFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerReturnFrame')
 *         global __cuGraphicsResourceGetMappedEglFrame
 *         __cuGraphicsResourceGetMappedEglFrame = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedEglFrame')             # <<<<<<<<<<<<<<
 *         global __cuEventCreateFromEGLSync
 *         __cuEventCreateFromEGLSync = dlfcn.dlsym(handle, 'cuEventCreateFromEGLSync')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsResourceGetMappedEglFr);

                /* "cuda/bindings/_bindings/cydriver.pyx":2788
 *         __cuGraphicsResourceGetMappedEglFrame = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedEglFrame')
 *         global __cuEventCreateFromEGLSync
 *         __cuEventCreateFromEGLSync = dlfcn.dlsym(handle, 'cuEventCreateFromEGLSync')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsGLRegisterBuffer
 *         __cuGraphicsGLRegisterBuffer = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterBuffer')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync = dlsym(__pyx_v_handle, __pyx_k_cuEventCreateFromEGLSync);

                /* "cuda/bindings/_bindings/cydriver.pyx":2790
 *         __cuEventCreateFromEGLSync = dlfcn.dlsym(handle, 'cuEventCreateFromEGLSync')
 *         global __cuGraphicsGLRegisterBuffer
 *         __cuGraphicsGLRegisterBuffer = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterBuffer')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsGLRegisterImage
 *         __cuGraphicsGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterImage')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsGLRegisterBuffer);

                /* "cuda/bindings/_bindings/cydriver.pyx":2792
 *         __cuGraphicsGLRegisterBuffer = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterBuffer')
 *         global __cuGraphicsGLRegisterImage
 *         __cuGraphicsGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterImage')             # <<<<<<<<<<<<<<
 *         global __cuGLGetDevices_v2
 *         __cuGLGetDevices_v2 = dlfcn.dlsym(handle, 'cuGLGetDevices_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsGLRegisterImage);

                /* "cuda/bindings/_bindings/cydriver.pyx":2794
 *         __cuGraphicsGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterImage')
 *         global __cuGLGetDevices_v2
 *         __cuGLGetDevices_v2 = dlfcn.dlsym(handle, 'cuGLGetDevices_v2')             # <<<<<<<<<<<<<<
 *         global __cuVDPAUGetDevice
 *         __cuVDPAUGetDevice = dlfcn.dlsym(handle, 'cuVDPAUGetDevice')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2 = dlsym(__pyx_v_handle, __pyx_k_cuGLGetDevices_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2796
 *         __cuGLGetDevices_v2 = dlfcn.dlsym(handle, 'cuGLGetDevices_v2')
 *         global __cuVDPAUGetDevice
 *         __cuVDPAUGetDevice = dlfcn.dlsym(handle, 'cuVDPAUGetDevice')             # <<<<<<<<<<<<<<
 *         global __cuVDPAUCtxCreate_v2
 *         __cuVDPAUCtxCreate_v2 = dlfcn.dlsym(handle, 'cuVDPAUCtxCreate_v2')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice = dlsym(__pyx_v_handle, __pyx_k_cuVDPAUGetDevice);

                /* "cuda/bindings/_bindings/cydriver.pyx":2798
 *         __cuVDPAUGetDevice = dlfcn.dlsym(handle, 'cuVDPAUGetDevice')
 *         global __cuVDPAUCtxCreate_v2
 *         __cuVDPAUCtxCreate_v2 = dlfcn.dlsym(handle, 'cuVDPAUCtxCreate_v2')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsVDPAURegisterVideoSurface
 *         __cuGraphicsVDPAURegisterVideoSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterVideoSurface')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2 = dlsym(__pyx_v_handle, __pyx_k_cuVDPAUCtxCreate_v2);

                /* "cuda/bindings/_bindings/cydriver.pyx":2800
 *         __cuVDPAUCtxCreate_v2 = dlfcn.dlsym(handle, 'cuVDPAUCtxCreate_v2')
 *         global __cuGraphicsVDPAURegisterVideoSurface
 *         __cuGraphicsVDPAURegisterVideoSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterVideoSurface')             # <<<<<<<<<<<<<<
 *         global __cuGraphicsVDPAURegisterOutputSurface
 *         __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface')
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsVDPAURegisterVideoSurf);

                /* "cuda/bindings/_bindings/cydriver.pyx":2802
 *         __cuGraphicsVDPAURegisterVideoSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterVideoSurface')
 *         global __cuGraphicsVDPAURegisterOutputSurface
 *         __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface')             # <<<<<<<<<<<<<<
 *         __cuPythonInit = True
 *         return 0
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface = dlsym(__pyx_v_handle, __pyx_k_cuGraphicsVDPAURegisterOutputSur);

                /* "cuda/bindings/_bindings/cydriver.pyx":2803
 *         global __cuGraphicsVDPAURegisterOutputSurface
 *         __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface')
 *         __cuPythonInit = True             # <<<<<<<<<<<<<<
 *         return 0
 * 
*/
                __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPythonInit = 1;

                /* "cuda/bindings/_bindings/cydriver.pyx":2804
 *         __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface')
 *         __cuPythonInit = True
 *         return 0             # <<<<<<<<<<<<<<
 * 
 * # Create a very small function to check whether we are init'ed, so the C
*/
                __pyx_r = 0;
                goto __pyx_L14_try_return;

                /* "cuda/bindings/_bindings/cydriver.pyx":504
 *     cdef char libPath[260]
 * 
 *     with gil, __symbol_lock:             # <<<<<<<<<<<<<<
 *         usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)
 * 
*/
              }
              __pyx_L10_error:;
              __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
              __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
              __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
              /*except:*/ {
                __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuPythonInit", __pyx_clineno, __pyx_lineno, __pyx_filename);
                if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_9, &__pyx_t_3) < 0) __PYX_ERR(0, 504, __pyx_L12_except_error)
                __Pyx_XGOTREF(__pyx_t_2);
                __Pyx_XGOTREF(__pyx_t_9);
                __Pyx_XGOTREF(__pyx_t_3);
                __pyx_t_4 = PyTuple_Pack(3, __pyx_t_2, __pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 504, __pyx_L12_except_error)
                __Pyx_GOTREF(__pyx_t_4);
                __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL);
                __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
                __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
                if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 504, __pyx_L12_except_error)
                __Pyx_GOTREF(__pyx_t_15);
                __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_15);
                __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
                if (__pyx_t_10 < (0)) __PYX_ERR(0, 504, __pyx_L12_except_error)
                __pyx_t_11 = (!__pyx_t_10);
                if (unlikely(__pyx_t_11)) {
                  __Pyx_GIVEREF(__pyx_t_2);
                  __Pyx_GIVEREF(__pyx_t_9);
                  __Pyx_XGIVEREF(__pyx_t_3);
                  __Pyx_ErrRestoreWithState(__pyx_t_2, __pyx_t_9, __pyx_t_3);
                  __pyx_t_2 = 0;  __pyx_t_9 = 0;  __pyx_t_3 = 0; 
                  __PYX_ERR(0, 504, __pyx_L12_except_error)
                }
                __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
                __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
                __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
                goto __pyx_L11_exception_handled;
              }
              __pyx_L12_except_error:;
              __Pyx_XGIVEREF(__pyx_t_6);
              __Pyx_XGIVEREF(__pyx_t_7);
              __Pyx_XGIVEREF(__pyx_t_8);
              __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
              goto __pyx_L4_error;
              __pyx_L14_try_return:;
              __Pyx_XGIVEREF(__pyx_t_6);
              __Pyx_XGIVEREF(__pyx_t_7);
              __Pyx_XGIVEREF(__pyx_t_8);
              __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
              goto __pyx_L7_return;
              __pyx_L11_exception_handled:;
              __Pyx_XGIVEREF(__pyx_t_6);
              __Pyx_XGIVEREF(__pyx_t_7);
              __Pyx_XGIVEREF(__pyx_t_8);
              __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
            }
          }
          /*finally:*/ {
            /*normal exit:*/{
              if (__pyx_t_1) {
                __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[0], NULL);
                __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 504, __pyx_L4_error)
                __Pyx_GOTREF(__pyx_t_8);
                __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
              }
              goto __pyx_L9;
            }
            __pyx_L7_return: {
              __pyx_t_16 = __pyx_r;
              if (__pyx_t_1) {
                __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[0], NULL);
                __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 504, __pyx_L4_error)
                __Pyx_GOTREF(__pyx_t_8);
                __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
              }
              __pyx_r = __pyx_t_16;
              goto __pyx_L3_return;
            }
            __pyx_L9:;
          }
          goto __pyx_L26;
          __pyx_L6_error:;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L4_error;
          __pyx_L26:;
        }
      }
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":498
 * cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL
 * 
 * cdef int _cuPythonInit() except -1 nogil:             # <<<<<<<<<<<<<<
 *     global __cuPythonInit
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuPythonInit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_v_path);
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2808
 * # 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
*/

static CYTHON_INLINE int __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(void) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "cuda/bindings/_bindings/cydriver.pyx":2809
 * # compiler can inline it.
 * cdef inline int cuPythonInit() except -1 nogil:
 *     if __cuPythonInit:             # <<<<<<<<<<<<<<
 *         return 0
 *     return _cuPythonInit()
*/
  if (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPythonInit) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2810
 * cdef inline int cuPythonInit() except -1 nogil:
 *     if __cuPythonInit:
 *         return 0             # <<<<<<<<<<<<<<
 *     return _cuPythonInit()
 * 
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_bindings/cydriver.pyx":2809
 * # compiler can inline it.
 * cdef inline int cuPythonInit() except -1 nogil:
 *     if __cuPythonInit:             # <<<<<<<<<<<<<<
 *         return 0
 *     return _cuPythonInit()
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2811
 *     if __cuPythonInit:
 *         return 0
 *     return _cuPythonInit()             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2811, __pyx_L1_error)
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2808
 * # 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
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver.cuPythonInit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2813
 *     return _cuPythonInit()
 * 
 * cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetErrorString
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetErrorString(CUresult __pyx_v_error, char const **__pyx_v_pStr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGetErrorString", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2815
 * cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGetErrorString
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGetErrorString == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2815, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2816
 *     global __cuGetErrorString
 *     cuPythonInit()
 *     if __cuGetErrorString == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorString" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2817
 *     cuPythonInit()
 *     if __cuGetErrorString == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetErrorString" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorString)(error, pStr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2818
 *     if __cuGetErrorString == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorString" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorString)(error, pStr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGetErrorString_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2818, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2818, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2817
 *     cuPythonInit()
 *     if __cuGetErrorString == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetErrorString" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorString)(error, pStr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2816
 *     global __cuGetErrorString
 *     cuPythonInit()
 *     if __cuGetErrorString == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorString" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2819
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorString" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorString)(error, pStr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUresult, char const **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString)(__pyx_v_error, __pyx_v_pStr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2819, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2820
 *             raise RuntimeError('Function "cuGetErrorString" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorString)(error, pStr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2813
 *     return _cuPythonInit()
 * 
 * cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetErrorString
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGetErrorString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2822
 *     return err
 * 
 * cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetErrorName
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetErrorName(CUresult __pyx_v_error, char const **__pyx_v_pStr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGetErrorName", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2824
 * cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGetErrorName
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGetErrorName == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2824, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2825
 *     global __cuGetErrorName
 *     cuPythonInit()
 *     if __cuGetErrorName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorName" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2826
 *     cuPythonInit()
 *     if __cuGetErrorName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetErrorName" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorName)(error, pStr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2827
 *     if __cuGetErrorName == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorName" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorName)(error, pStr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGetErrorName_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2827, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2827, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2826
 *     cuPythonInit()
 *     if __cuGetErrorName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetErrorName" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorName)(error, pStr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2825
 *     global __cuGetErrorName
 *     cuPythonInit()
 *     if __cuGetErrorName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorName" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2828
 *         with gil:
 *             raise RuntimeError('Function "cuGetErrorName" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorName)(error, pStr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUresult, char const **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName)(__pyx_v_error, __pyx_v_pStr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2828, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2829
 *             raise RuntimeError('Function "cuGetErrorName" not found')
 *     err = (<CUresult (*)(CUresult, const char**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetErrorName)(error, pStr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2822
 *     return err
 * 
 * cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetErrorName
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGetErrorName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2831
 *     return err
 * 
 * cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuInit
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuInit(unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuInit", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2833
 * cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuInit
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuInit == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2833, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2834
 *     global __cuInit
 *     cuPythonInit()
 *     if __cuInit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuInit" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2835
 *     cuPythonInit()
 *     if __cuInit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuInit" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuInit)(Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2836
 *     if __cuInit == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuInit" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuInit)(Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuInit_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2836, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2836, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2835
 *     cuPythonInit()
 *     if __cuInit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuInit" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuInit)(Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2834
 *     global __cuInit
 *     cuPythonInit()
 *     if __cuInit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuInit" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2837
 *         with gil:
 *             raise RuntimeError('Function "cuInit" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuInit)(Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit)(__pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2837, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2838
 *             raise RuntimeError('Function "cuInit" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuInit)(Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2831
 *     return err
 * 
 * cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuInit
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuInit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2840
 *     return err
 * 
 * cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDriverGetVersion
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDriverGetVersion(int *__pyx_v_driverVersion) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDriverGetVersion", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2842
 * cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDriverGetVersion
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDriverGetVersion == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2842, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2843
 *     global __cuDriverGetVersion
 *     cuPythonInit()
 *     if __cuDriverGetVersion == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2844
 *     cuPythonInit()
 *     if __cuDriverGetVersion == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDriverGetVersion)(driverVersion)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2845
 *     if __cuDriverGetVersion == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDriverGetVersion)(driverVersion)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDriverGetVersion_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2845, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2845, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2844
 *     cuPythonInit()
 *     if __cuDriverGetVersion == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDriverGetVersion)(driverVersion)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2843
 *     global __cuDriverGetVersion
 *     cuPythonInit()
 *     if __cuDriverGetVersion == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2846
 *         with gil:
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDriverGetVersion)(driverVersion)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion)(__pyx_v_driverVersion); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2846, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2847
 *             raise RuntimeError('Function "cuDriverGetVersion" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDriverGetVersion)(driverVersion)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2840
 *     return err
 * 
 * cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDriverGetVersion
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDriverGetVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2849
 *     return err
 * 
 * cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGet
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGet(CUdevice *__pyx_v_device, int __pyx_v_ordinal) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGet", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2851
 * cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGet
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGet == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2851, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2852
 *     global __cuDeviceGet
 *     cuPythonInit()
 *     if __cuDeviceGet == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGet" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2853
 *     cuPythonInit()
 *     if __cuDeviceGet == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGet" not found')
 *     err = (<CUresult (*)(CUdevice*, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGet)(device, ordinal)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2854
 *     if __cuDeviceGet == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGet" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice*, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGet)(device, ordinal)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGet_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2854, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2854, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2853
 *     cuPythonInit()
 *     if __cuDeviceGet == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGet" not found')
 *     err = (<CUresult (*)(CUdevice*, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGet)(device, ordinal)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2852
 *     global __cuDeviceGet
 *     cuPythonInit()
 *     if __cuDeviceGet == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGet" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2855
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGet" not found')
 *     err = (<CUresult (*)(CUdevice*, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGet)(device, ordinal)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice *, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet)(__pyx_v_device, __pyx_v_ordinal); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2855, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2856
 *             raise RuntimeError('Function "cuDeviceGet" not found')
 *     err = (<CUresult (*)(CUdevice*, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGet)(device, ordinal)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2849
 *     return err
 * 
 * cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGet
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGet", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2858
 *     return err
 * 
 * cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetCount
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetCount(int *__pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetCount", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2860
 * cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetCount
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetCount == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2860, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2861
 *     global __cuDeviceGetCount
 *     cuPythonInit()
 *     if __cuDeviceGetCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2862
 *     cuPythonInit()
 *     if __cuDeviceGetCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetCount)(count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2863
 *     if __cuDeviceGetCount == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetCount)(count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetCount_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2863, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2863, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2862
 *     cuPythonInit()
 *     if __cuDeviceGetCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetCount)(count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2861
 *     global __cuDeviceGetCount
 *     cuPythonInit()
 *     if __cuDeviceGetCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2864
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetCount)(count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount)(__pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2864, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2865
 *             raise RuntimeError('Function "cuDeviceGetCount" not found')
 *     err = (<CUresult (*)(int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetCount)(count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2858
 *     return err
 * 
 * cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetCount
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2867
 *     return err
 * 
 * cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetName
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetName(char *__pyx_v_name, int __pyx_v_length, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetName", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2869
 * cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetName
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetName == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2869, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2870
 *     global __cuDeviceGetName
 *     cuPythonInit()
 *     if __cuDeviceGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2871
 *     cuPythonInit()
 *     if __cuDeviceGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetName)(name, length, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2872
 *     if __cuDeviceGetName == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetName" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetName)(name, length, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetName_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2872, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2872, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2871
 *     cuPythonInit()
 *     if __cuDeviceGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetName)(name, length, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2870
 *     global __cuDeviceGetName
 *     cuPythonInit()
 *     if __cuDeviceGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2873
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetName)(name, length, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char *, int, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName)(__pyx_v_name, __pyx_v_length, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2873, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2874
 *             raise RuntimeError('Function "cuDeviceGetName" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetName)(name, length, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2867
 *     return err
 * 
 * cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetName
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2876
 *     return err
 * 
 * cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetUuid_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetUuid_v2(CUuuid *__pyx_v_uuid, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetUuid_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2878
 * cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetUuid_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetUuid_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2878, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2879
 *     global __cuDeviceGetUuid_v2
 *     cuPythonInit()
 *     if __cuDeviceGetUuid_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2880
 *     cuPythonInit()
 *     if __cuDeviceGetUuid_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
 *     err = (<CUresult (*)(CUuuid*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetUuid_v2)(uuid, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2881
 *     if __cuDeviceGetUuid_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUuuid*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetUuid_v2)(uuid, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetUuid_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2881, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2881, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2880
 *     cuPythonInit()
 *     if __cuDeviceGetUuid_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
 *     err = (<CUresult (*)(CUuuid*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetUuid_v2)(uuid, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2879
 *     global __cuDeviceGetUuid_v2
 *     cuPythonInit()
 *     if __cuDeviceGetUuid_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2882
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
 *     err = (<CUresult (*)(CUuuid*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetUuid_v2)(uuid, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUuuid *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2)(__pyx_v_uuid, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2882, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2883
 *             raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
 *     err = (<CUresult (*)(CUuuid*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetUuid_v2)(uuid, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2876
 *     return err
 * 
 * cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetUuid_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetUuid_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2885
 *     return err
 * 
 * cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetLuid
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetLuid(char *__pyx_v_luid, unsigned int *__pyx_v_deviceNodeMask, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetLuid", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2887
 * cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetLuid
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetLuid == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2887, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2888
 *     global __cuDeviceGetLuid
 *     cuPythonInit()
 *     if __cuDeviceGetLuid == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2889
 *     cuPythonInit()
 *     if __cuDeviceGetLuid == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
 *     err = (<CUresult (*)(char*, unsigned int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetLuid)(luid, deviceNodeMask, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2890
 *     if __cuDeviceGetLuid == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(char*, unsigned int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetLuid)(luid, deviceNodeMask, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetLuid_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2890, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2890, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2889
 *     cuPythonInit()
 *     if __cuDeviceGetLuid == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
 *     err = (<CUresult (*)(char*, unsigned int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetLuid)(luid, deviceNodeMask, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2888
 *     global __cuDeviceGetLuid
 *     cuPythonInit()
 *     if __cuDeviceGetLuid == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2891
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
 *     err = (<CUresult (*)(char*, unsigned int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetLuid)(luid, deviceNodeMask, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char *, unsigned int *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid)(__pyx_v_luid, __pyx_v_deviceNodeMask, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2891, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2892
 *             raise RuntimeError('Function "cuDeviceGetLuid" not found')
 *     err = (<CUresult (*)(char*, unsigned int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetLuid)(luid, deviceNodeMask, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2885
 *     return err
 * 
 * cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetLuid
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetLuid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2894
 *     return err
 * 
 * cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceTotalMem_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceTotalMem_v2(size_t *__pyx_v_numbytes, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceTotalMem_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2896
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2896, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2897
 *     global __cuDeviceTotalMem_v2
 *     cuPythonInit()
 *     if __cuDeviceTotalMem_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2898
 *     cuPythonInit()
 *     if __cuDeviceTotalMem_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceTotalMem_v2)(numbytes, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2899
 *     if __cuDeviceTotalMem_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceTotalMem_v2)(numbytes, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceTotalMem_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2899, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2899, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2898
 *     cuPythonInit()
 *     if __cuDeviceTotalMem_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceTotalMem_v2)(numbytes, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2897
 *     global __cuDeviceTotalMem_v2
 *     cuPythonInit()
 *     if __cuDeviceTotalMem_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2900
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceTotalMem_v2)(numbytes, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2)(__pyx_v_numbytes, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2900, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2901
 *             raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceTotalMem_v2)(numbytes, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2894
 *     return err
 * 
 * cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceTotalMem_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceTotalMem_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2903
 *     return err
 * 
 * cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetTexture1DLinearMaxWidth(size_t *__pyx_v_maxWidthInElements, CUarray_format __pyx_v_pformat, unsigned int __pyx_v_numChannels, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetTexture1DLinearMaxWidth", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2905
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2905, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2906
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     cuPythonInit()
 *     if __cuDeviceGetTexture1DLinearMaxWidth == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2907
 *     cuPythonInit()
 *     if __cuDeviceGetTexture1DLinearMaxWidth == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
 *     err = (<CUresult (*)(size_t*, CUarray_format, unsigned, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2908
 *     if __cuDeviceGetTexture1DLinearMaxWidth == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, CUarray_format, unsigned, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetTexture1DLin};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2908, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2908, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2907
 *     cuPythonInit()
 *     if __cuDeviceGetTexture1DLinearMaxWidth == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
 *     err = (<CUresult (*)(size_t*, CUarray_format, unsigned, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2906
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     cuPythonInit()
 *     if __cuDeviceGetTexture1DLinearMaxWidth == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2909
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
 *     err = (<CUresult (*)(size_t*, CUarray_format, unsigned, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUarray_format, unsigned int, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth)(__pyx_v_maxWidthInElements, __pyx_v_pformat, __pyx_v_numChannels, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2909, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2910
 *             raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
 *     err = (<CUresult (*)(size_t*, CUarray_format, unsigned, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2903
 *     return err
 * 
 * cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetTexture1DLinearMaxWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2912
 *     return err
 * 
 * cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetAttribute(int *__pyx_v_pi, CUdevice_attribute __pyx_v_attrib, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2914
 * cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2914, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2915
 *     global __cuDeviceGetAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2916
 *     cuPythonInit()
 *     if __cuDeviceGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_attribute, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetAttribute)(pi, attrib, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2917
 *     if __cuDeviceGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUdevice_attribute, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetAttribute)(pi, attrib, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetAttribute_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2917, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2917, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2916
 *     cuPythonInit()
 *     if __cuDeviceGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_attribute, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetAttribute)(pi, attrib, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2915
 *     global __cuDeviceGetAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2918
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_attribute, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetAttribute)(pi, attrib, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUdevice_attribute, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute)(__pyx_v_pi, __pyx_v_attrib, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2918, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2919
 *             raise RuntimeError('Function "cuDeviceGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_attribute, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetAttribute)(pi, attrib, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2912
 *     return err
 * 
 * cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2921
 *     return err
 * 
 * cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetHostAtomicCapabilities
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetHostAtomicCapabilities(unsigned int *__pyx_v_capabilities, CUatomicOperation const *__pyx_v_operations, unsigned int __pyx_v_count, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetHostAtomicCapabilities", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2923
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2923, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2924
 *     global __cuDeviceGetHostAtomicCapabilities
 *     cuPythonInit()
 *     if __cuDeviceGetHostAtomicCapabilities == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2925
 *     cuPythonInit()
 *     if __cuDeviceGetHostAtomicCapabilities == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2926
 *     if __cuDeviceGetHostAtomicCapabilities == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetHostAtomicCa};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2926, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2926, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2925
 *     cuPythonInit()
 *     if __cuDeviceGetHostAtomicCapabilities == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2924
 *     global __cuDeviceGetHostAtomicCapabilities
 *     cuPythonInit()
 *     if __cuDeviceGetHostAtomicCapabilities == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2927
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUatomicOperation const *, unsigned int, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities)(__pyx_v_capabilities, __pyx_v_operations, __pyx_v_count, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2927, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2928
 *             raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2921
 *     return err
 * 
 * cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetHostAtomicCapabilities
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetHostAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2930
 *     return err
 * 
 * cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetNvSciSyncAttributes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetNvSciSyncAttributes(void *__pyx_v_nvSciSyncAttrList, CUdevice __pyx_v_dev, int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetNvSciSyncAttributes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2932
 * cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetNvSciSyncAttributes
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2932, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2933
 *     global __cuDeviceGetNvSciSyncAttributes
 *     cuPythonInit()
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2934
 *     cuPythonInit()
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
 *     err = (<CUresult (*)(void*, CUdevice, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2935
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUdevice, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetNvSciSyncAtt};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2935, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2935, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2934
 *     cuPythonInit()
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
 *     err = (<CUresult (*)(void*, CUdevice, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2933
 *     global __cuDeviceGetNvSciSyncAttributes
 *     cuPythonInit()
 *     if __cuDeviceGetNvSciSyncAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2936
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
 *     err = (<CUresult (*)(void*, CUdevice, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUdevice, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes)(__pyx_v_nvSciSyncAttrList, __pyx_v_dev, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2936, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2937
 *             raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
 *     err = (<CUresult (*)(void*, CUdevice, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2930
 *     return err
 * 
 * cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetNvSciSyncAttributes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetNvSciSyncAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2939
 *     return err
 * 
 * cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceSetMemPool(CUdevice __pyx_v_dev, CUmemoryPool __pyx_v_pool) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceSetMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2941
 * cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceSetMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceSetMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2941, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2942
 *     global __cuDeviceSetMemPool
 *     cuPythonInit()
 *     if __cuDeviceSetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2943
 *     cuPythonInit()
 *     if __cuDeviceSetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
 *     err = (<CUresult (*)(CUdevice, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetMemPool)(dev, pool)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2944
 *     if __cuDeviceSetMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetMemPool)(dev, pool)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceSetMemPool_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2944, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2944, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2943
 *     cuPythonInit()
 *     if __cuDeviceSetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
 *     err = (<CUresult (*)(CUdevice, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetMemPool)(dev, pool)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2942
 *     global __cuDeviceSetMemPool
 *     cuPythonInit()
 *     if __cuDeviceSetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2945
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
 *     err = (<CUresult (*)(CUdevice, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetMemPool)(dev, pool)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUmemoryPool))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool)(__pyx_v_dev, __pyx_v_pool); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2945, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2946
 *             raise RuntimeError('Function "cuDeviceSetMemPool" not found')
 *     err = (<CUresult (*)(CUdevice, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetMemPool)(dev, pool)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2939
 *     return err
 * 
 * cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2948
 *     return err
 * 
 * cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetMemPool(CUmemoryPool *__pyx_v_pool, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2950
 * cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2950, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2951
 *     global __cuDeviceGetMemPool
 *     cuPythonInit()
 *     if __cuDeviceGetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2952
 *     cuPythonInit()
 *     if __cuDeviceGetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetMemPool)(pool, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2953
 *     if __cuDeviceGetMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetMemPool)(pool, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetMemPool_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2953, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2953, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2952
 *     cuPythonInit()
 *     if __cuDeviceGetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetMemPool)(pool, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2951
 *     global __cuDeviceGetMemPool
 *     cuPythonInit()
 *     if __cuDeviceGetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2954
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetMemPool)(pool, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool)(__pyx_v_pool, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2954, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2955
 *             raise RuntimeError('Function "cuDeviceGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetMemPool)(pool, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2948
 *     return err
 * 
 * cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2957
 *     return err
 * 
 * cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDefaultMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetDefaultMemPool(CUmemoryPool *__pyx_v_pool_out, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetDefaultMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2959
 * cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetDefaultMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetDefaultMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2959, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2960
 *     global __cuDeviceGetDefaultMemPool
 *     cuPythonInit()
 *     if __cuDeviceGetDefaultMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2961
 *     cuPythonInit()
 *     if __cuDeviceGetDefaultMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDefaultMemPool)(pool_out, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2962
 *     if __cuDeviceGetDefaultMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDefaultMemPool)(pool_out, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetDefaultMemPo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2962, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2962, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2961
 *     cuPythonInit()
 *     if __cuDeviceGetDefaultMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDefaultMemPool)(pool_out, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2960
 *     global __cuDeviceGetDefaultMemPool
 *     cuPythonInit()
 *     if __cuDeviceGetDefaultMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2963
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDefaultMemPool)(pool_out, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool)(__pyx_v_pool_out, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2963, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2964
 *             raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDefaultMemPool)(pool_out, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2957
 *     return err
 * 
 * cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDefaultMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2966
 *     return err
 * 
 * cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetExecAffinitySupport
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetExecAffinitySupport(int *__pyx_v_pi, CUexecAffinityType __pyx_v_typename, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetExecAffinitySupport", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2968
 * cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetExecAffinitySupport
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetExecAffinitySupport == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2968, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2969
 *     global __cuDeviceGetExecAffinitySupport
 *     cuPythonInit()
 *     if __cuDeviceGetExecAffinitySupport == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2970
 *     cuPythonInit()
 *     if __cuDeviceGetExecAffinitySupport == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
 *     err = (<CUresult (*)(int*, CUexecAffinityType, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetExecAffinitySupport)(pi, typename, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2971
 *     if __cuDeviceGetExecAffinitySupport == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUexecAffinityType, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetExecAffinitySupport)(pi, typename, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetExecAffinity};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2971, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2971, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2970
 *     cuPythonInit()
 *     if __cuDeviceGetExecAffinitySupport == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
 *     err = (<CUresult (*)(int*, CUexecAffinityType, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetExecAffinitySupport)(pi, typename, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2969
 *     global __cuDeviceGetExecAffinitySupport
 *     cuPythonInit()
 *     if __cuDeviceGetExecAffinitySupport == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2972
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
 *     err = (<CUresult (*)(int*, CUexecAffinityType, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetExecAffinitySupport)(pi, typename, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUexecAffinityType, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport)(__pyx_v_pi, __pyx_v_typename, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2972, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2973
 *             raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
 *     err = (<CUresult (*)(int*, CUexecAffinityType, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetExecAffinitySupport)(pi, typename, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2966
 *     return err
 * 
 * cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetExecAffinitySupport
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetExecAffinitySupport", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2975
 *     return err
 * 
 * cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFlushGPUDirectRDMAWrites
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget __pyx_v_target, CUflushGPUDirectRDMAWritesScope __pyx_v_scope) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFlushGPUDirectRDMAWrites", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2977
 * cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFlushGPUDirectRDMAWrites
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFlushGPUDirectRDMAWrites == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2977, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2978
 *     global __cuFlushGPUDirectRDMAWrites
 *     cuPythonInit()
 *     if __cuFlushGPUDirectRDMAWrites == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2979
 *     cuPythonInit()
 *     if __cuFlushGPUDirectRDMAWrites == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
 *     err = (<CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFlushGPUDirectRDMAWrites)(target, scope)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2980
 *     if __cuFlushGPUDirectRDMAWrites == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFlushGPUDirectRDMAWrites)(target, scope)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFlushGPUDirectRDMAWri};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2980, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2980, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2979
 *     cuPythonInit()
 *     if __cuFlushGPUDirectRDMAWrites == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
 *     err = (<CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFlushGPUDirectRDMAWrites)(target, scope)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2978
 *     global __cuFlushGPUDirectRDMAWrites
 *     cuPythonInit()
 *     if __cuFlushGPUDirectRDMAWrites == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2981
 *         with gil:
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
 *     err = (<CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFlushGPUDirectRDMAWrites)(target, scope)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites)(__pyx_v_target, __pyx_v_scope); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2981, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2982
 *             raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
 *     err = (<CUresult (*)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFlushGPUDirectRDMAWrites)(target, scope)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2975
 *     return err
 * 
 * cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFlushGPUDirectRDMAWrites
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFlushGPUDirectRDMAWrites", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2984
 *     return err
 * 
 * cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetProperties
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetProperties(CUdevprop *__pyx_v_prop, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetProperties", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2986
 * cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetProperties
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetProperties == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2986, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2987
 *     global __cuDeviceGetProperties
 *     cuPythonInit()
 *     if __cuDeviceGetProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2988
 *     cuPythonInit()
 *     if __cuDeviceGetProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
 *     err = (<CUresult (*)(CUdevprop*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetProperties)(prop, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2989
 *     if __cuDeviceGetProperties == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevprop*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetProperties)(prop, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetProperties_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2989, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2989, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2988
 *     cuPythonInit()
 *     if __cuDeviceGetProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
 *     err = (<CUresult (*)(CUdevprop*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetProperties)(prop, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2987
 *     global __cuDeviceGetProperties
 *     cuPythonInit()
 *     if __cuDeviceGetProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2990
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
 *     err = (<CUresult (*)(CUdevprop*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetProperties)(prop, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevprop *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties)(__pyx_v_prop, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2990, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":2991
 *             raise RuntimeError('Function "cuDeviceGetProperties" not found')
 *     err = (<CUresult (*)(CUdevprop*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetProperties)(prop, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2984
 *     return err
 * 
 * cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetProperties
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":2993
 *     return err
 * 
 * cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceComputeCapability
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceComputeCapability(int *__pyx_v_major, int *__pyx_v_minor, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceComputeCapability", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":2995
 * cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceComputeCapability
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceComputeCapability == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2995, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":2996
 *     global __cuDeviceComputeCapability
 *     cuPythonInit()
 *     if __cuDeviceComputeCapability == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":2997
 *     cuPythonInit()
 *     if __cuDeviceComputeCapability == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
 *     err = (<CUresult (*)(int*, int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceComputeCapability)(major, minor, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":2998
 *     if __cuDeviceComputeCapability == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceComputeCapability)(major, minor, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceComputeCapabili};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2998, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 2998, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":2997
 *     cuPythonInit()
 *     if __cuDeviceComputeCapability == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
 *     err = (<CUresult (*)(int*, int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceComputeCapability)(major, minor, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":2996
 *     global __cuDeviceComputeCapability
 *     cuPythonInit()
 *     if __cuDeviceComputeCapability == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":2999
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
 *     err = (<CUresult (*)(int*, int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceComputeCapability)(major, minor, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, int *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability)(__pyx_v_major, __pyx_v_minor, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 2999, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3000
 *             raise RuntimeError('Function "cuDeviceComputeCapability" not found')
 *     err = (<CUresult (*)(int*, int*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceComputeCapability)(major, minor, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":2993
 *     return err
 * 
 * cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceComputeCapability
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceComputeCapability", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3002
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRetain
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxRetain(CUcontext *__pyx_v_pctx, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevicePrimaryCtxRetain", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3004
 * cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDevicePrimaryCtxRetain
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDevicePrimaryCtxRetain == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3004, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3005
 *     global __cuDevicePrimaryCtxRetain
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRetain == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3006
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRetain == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
 *     err = (<CUresult (*)(CUcontext*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRetain)(pctx, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3007
 *     if __cuDevicePrimaryCtxRetain == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRetain)(pctx, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevicePrimaryCtxRetai};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3007, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3007, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3006
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRetain == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
 *     err = (<CUresult (*)(CUcontext*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRetain)(pctx, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3005
 *     global __cuDevicePrimaryCtxRetain
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRetain == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3008
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
 *     err = (<CUresult (*)(CUcontext*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRetain)(pctx, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain)(__pyx_v_pctx, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3008, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3009
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
 *     err = (<CUresult (*)(CUcontext*, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRetain)(pctx, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3002
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRetain
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevicePrimaryCtxRetain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3011
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRelease_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxRelease_v2(CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevicePrimaryCtxRelease_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3013
 * cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDevicePrimaryCtxRelease_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3013, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3014
 *     global __cuDevicePrimaryCtxRelease_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3015
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRelease_v2)(dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3016
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRelease_v2)(dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevicePrimaryCtxRelea};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3016, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3016, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3015
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRelease_v2)(dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3014
 *     global __cuDevicePrimaryCtxRelease_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxRelease_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3017
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRelease_v2)(dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2)(__pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3017, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3018
 *             raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxRelease_v2)(dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3011
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRelease_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevicePrimaryCtxRelease_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3020
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxSetFlags_v2(CUdevice __pyx_v_dev, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevicePrimaryCtxSetFlags_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3022
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3022, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3023
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxSetFlags_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3024
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxSetFlags_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3025
 *     if __cuDevicePrimaryCtxSetFlags_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevicePrimaryCtxSetFl};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3025, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3025, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3024
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxSetFlags_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3023
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxSetFlags_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3026
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2)(__pyx_v_dev, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3026, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3027
 *             raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3020
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevicePrimaryCtxSetFlags_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3029
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxGetState
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxGetState(CUdevice __pyx_v_dev, unsigned int *__pyx_v_flags, int *__pyx_v_active) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevicePrimaryCtxGetState", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3031
 * cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDevicePrimaryCtxGetState
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDevicePrimaryCtxGetState == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3031, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3032
 *     global __cuDevicePrimaryCtxGetState
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxGetState == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3033
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxGetState == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxGetState)(dev, flags, active)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3034
 *     if __cuDevicePrimaryCtxGetState == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, unsigned int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxGetState)(dev, flags, active)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevicePrimaryCtxGetSt};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3034, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3034, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3033
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxGetState == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxGetState)(dev, flags, active)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3032
 *     global __cuDevicePrimaryCtxGetState
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxGetState == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3035
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxGetState)(dev, flags, active)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, unsigned int *, int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState)(__pyx_v_dev, __pyx_v_flags, __pyx_v_active); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3035, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3036
 *             raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
 *     err = (<CUresult (*)(CUdevice, unsigned int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxGetState)(dev, flags, active)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3029
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxGetState
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevicePrimaryCtxGetState", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3038
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxReset_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxReset_v2(CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevicePrimaryCtxReset_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3040
 * cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDevicePrimaryCtxReset_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3040, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3041
 *     global __cuDevicePrimaryCtxReset_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3042
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxReset_v2)(dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3043
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxReset_v2)(dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevicePrimaryCtxReset};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3043, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3043, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3042
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxReset_v2)(dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3041
 *     global __cuDevicePrimaryCtxReset_v2
 *     cuPythonInit()
 *     if __cuDevicePrimaryCtxReset_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3044
 *         with gil:
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxReset_v2)(dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2)(__pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3044, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3045
 *             raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevicePrimaryCtxReset_v2)(dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3038
 *     return err
 * 
 * cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxReset_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevicePrimaryCtxReset_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3047
 *     return err
 * 
 * cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxCreate_v4
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxCreate_v4(CUcontext *__pyx_v_pctx, CUctxCreateParams *__pyx_v_ctxCreateParams, unsigned int __pyx_v_flags, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxCreate_v4", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3049
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3049, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3050
 *     global __cuCtxCreate_v4
 *     cuPythonInit()
 *     if __cuCtxCreate_v4 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3051
 *     cuPythonInit()
 *     if __cuCtxCreate_v4 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
 *     err = (<CUresult (*)(CUcontext*, CUctxCreateParams*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3052
 *     if __cuCtxCreate_v4 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*, CUctxCreateParams*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxCreate_v4_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3052, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3052, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3051
 *     cuPythonInit()
 *     if __cuCtxCreate_v4 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
 *     err = (<CUresult (*)(CUcontext*, CUctxCreateParams*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3050
 *     global __cuCtxCreate_v4
 *     cuPythonInit()
 *     if __cuCtxCreate_v4 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3053
 *         with gil:
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
 *     err = (<CUresult (*)(CUcontext*, CUctxCreateParams*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *, CUctxCreateParams *, unsigned int, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4)(__pyx_v_pctx, __pyx_v_ctxCreateParams, __pyx_v_flags, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3053, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3054
 *             raise RuntimeError('Function "cuCtxCreate_v4" not found')
 *     err = (<CUresult (*)(CUcontext*, CUctxCreateParams*, unsigned int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3047
 *     return err
 * 
 * cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxCreate_v4
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxCreate_v4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3056
 *     return err
 * 
 * cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDestroy_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDestroy_v2(CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxDestroy_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3058
 * cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxDestroy_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxDestroy_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3058, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3059
 *     global __cuCtxDestroy_v2
 *     cuPythonInit()
 *     if __cuCtxDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3060
 *     cuPythonInit()
 *     if __cuCtxDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDestroy_v2)(ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3061
 *     if __cuCtxDestroy_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDestroy_v2)(ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxDestroy_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3061, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3061, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3060
 *     cuPythonInit()
 *     if __cuCtxDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDestroy_v2)(ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3059
 *     global __cuCtxDestroy_v2
 *     cuPythonInit()
 *     if __cuCtxDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3062
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDestroy_v2)(ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2)(__pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3062, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3063
 *             raise RuntimeError('Function "cuCtxDestroy_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDestroy_v2)(ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3056
 *     return err
 * 
 * cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDestroy_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxDestroy_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3065
 *     return err
 * 
 * cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxPushCurrent_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxPushCurrent_v2(CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxPushCurrent_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3067
 * cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxPushCurrent_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxPushCurrent_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3067, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3068
 *     global __cuCtxPushCurrent_v2
 *     cuPythonInit()
 *     if __cuCtxPushCurrent_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3069
 *     cuPythonInit()
 *     if __cuCtxPushCurrent_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPushCurrent_v2)(ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3070
 *     if __cuCtxPushCurrent_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPushCurrent_v2)(ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxPushCurrent_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3070, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3070, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3069
 *     cuPythonInit()
 *     if __cuCtxPushCurrent_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPushCurrent_v2)(ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3068
 *     global __cuCtxPushCurrent_v2
 *     cuPythonInit()
 *     if __cuCtxPushCurrent_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3071
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPushCurrent_v2)(ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2)(__pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3071, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3072
 *             raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPushCurrent_v2)(ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3065
 *     return err
 * 
 * cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxPushCurrent_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxPushCurrent_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3074
 *     return err
 * 
 * cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxPopCurrent_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxPopCurrent_v2(CUcontext *__pyx_v_pctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxPopCurrent_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3076
 * cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxPopCurrent_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxPopCurrent_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3076, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3077
 *     global __cuCtxPopCurrent_v2
 *     cuPythonInit()
 *     if __cuCtxPopCurrent_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3078
 *     cuPythonInit()
 *     if __cuCtxPopCurrent_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPopCurrent_v2)(pctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3079
 *     if __cuCtxPopCurrent_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPopCurrent_v2)(pctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxPopCurrent_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3079, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3079, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3078
 *     cuPythonInit()
 *     if __cuCtxPopCurrent_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPopCurrent_v2)(pctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3077
 *     global __cuCtxPopCurrent_v2
 *     cuPythonInit()
 *     if __cuCtxPopCurrent_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3080
 *         with gil:
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPopCurrent_v2)(pctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2)(__pyx_v_pctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3080, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3081
 *             raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxPopCurrent_v2)(pctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3074
 *     return err
 * 
 * cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxPopCurrent_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxPopCurrent_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3083
 *     return err
 * 
 * cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCurrent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetCurrent(CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSetCurrent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3085
 * cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSetCurrent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSetCurrent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3085, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3086
 *     global __cuCtxSetCurrent
 *     cuPythonInit()
 *     if __cuCtxSetCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3087
 *     cuPythonInit()
 *     if __cuCtxSetCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCurrent)(ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3088
 *     if __cuCtxSetCurrent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCurrent)(ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSetCurrent_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3088, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3088, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3087
 *     cuPythonInit()
 *     if __cuCtxSetCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCurrent)(ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3086
 *     global __cuCtxSetCurrent
 *     cuPythonInit()
 *     if __cuCtxSetCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3089
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCurrent)(ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent)(__pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3089, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3090
 *             raise RuntimeError('Function "cuCtxSetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCurrent)(ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3083
 *     return err
 * 
 * cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCurrent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSetCurrent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3092
 *     return err
 * 
 * cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCurrent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetCurrent(CUcontext *__pyx_v_pctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetCurrent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3094
 * cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetCurrent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetCurrent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3094, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3095
 *     global __cuCtxGetCurrent
 *     cuPythonInit()
 *     if __cuCtxGetCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3096
 *     cuPythonInit()
 *     if __cuCtxGetCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCurrent)(pctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3097
 *     if __cuCtxGetCurrent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCurrent)(pctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetCurrent_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3097, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3097, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3096
 *     cuPythonInit()
 *     if __cuCtxGetCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCurrent)(pctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3095
 *     global __cuCtxGetCurrent
 *     cuPythonInit()
 *     if __cuCtxGetCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3098
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCurrent)(pctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent)(__pyx_v_pctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3098, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3099
 *             raise RuntimeError('Function "cuCtxGetCurrent" not found')
 *     err = (<CUresult (*)(CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCurrent)(pctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3092
 *     return err
 * 
 * cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCurrent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetCurrent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3101
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevice(CUdevice *__pyx_v_device) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetDevice", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3103
 * cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetDevice
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetDevice == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3103, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3104
 *     global __cuCtxGetDevice
 *     cuPythonInit()
 *     if __cuCtxGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3105
 *     cuPythonInit()
 *     if __cuCtxGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice)(device)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3106
 *     if __cuCtxGetDevice == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice)(device)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetDevice_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3106, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3106, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3105
 *     cuPythonInit()
 *     if __cuCtxGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice)(device)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3104
 *     global __cuCtxGetDevice
 *     cuPythonInit()
 *     if __cuCtxGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3107
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice)(device)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice)(__pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3107, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3108
 *             raise RuntimeError('Function "cuCtxGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice)(device)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3101
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3110
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevice_v2(CUdevice *__pyx_v_device, CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetDevice_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3112
 * cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetDevice_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetDevice_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3112, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3113
 *     global __cuCtxGetDevice_v2
 *     cuPythonInit()
 *     if __cuCtxGetDevice_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3114
 *     cuPythonInit()
 *     if __cuCtxGetDevice_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
 *     err = (<CUresult (*)(CUdevice*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice_v2)(device, ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3115
 *     if __cuCtxGetDevice_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice_v2)(device, ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetDevice_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3115, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3115, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3114
 *     cuPythonInit()
 *     if __cuCtxGetDevice_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
 *     err = (<CUresult (*)(CUdevice*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice_v2)(device, ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3113
 *     global __cuCtxGetDevice_v2
 *     cuPythonInit()
 *     if __cuCtxGetDevice_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3116
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
 *     err = (<CUresult (*)(CUdevice*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice_v2)(device, ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice *, CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2)(__pyx_v_device, __pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3116, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3117
 *             raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
 *     err = (<CUresult (*)(CUdevice*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevice_v2)(device, ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3110
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetDevice_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3119
 *     return err
 * 
 * cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetFlags(unsigned int *__pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3121
 * cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3121, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3122
 *     global __cuCtxGetFlags
 *     cuPythonInit()
 *     if __cuCtxGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3123
 *     cuPythonInit()
 *     if __cuCtxGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetFlags)(flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3124
 *     if __cuCtxGetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetFlags)(flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetFlags_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3124, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3124, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3123
 *     cuPythonInit()
 *     if __cuCtxGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetFlags)(flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3122
 *     global __cuCtxGetFlags
 *     cuPythonInit()
 *     if __cuCtxGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3125
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetFlags)(flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags)(__pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3125, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3126
 *             raise RuntimeError('Function "cuCtxGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetFlags)(flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3119
 *     return err
 * 
 * cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3128
 *     return err
 * 
 * cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetFlags(unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3130
 * cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3130, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3131
 *     global __cuCtxSetFlags
 *     cuPythonInit()
 *     if __cuCtxSetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3132
 *     cuPythonInit()
 *     if __cuCtxSetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetFlags)(flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3133
 *     if __cuCtxSetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetFlags)(flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSetFlags_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3133, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3133, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3132
 *     cuPythonInit()
 *     if __cuCtxSetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetFlags)(flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3131
 *     global __cuCtxSetFlags
 *     cuPythonInit()
 *     if __cuCtxSetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3134
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetFlags)(flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags)(__pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3134, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3135
 *             raise RuntimeError('Function "cuCtxSetFlags" not found')
 *     err = (<CUresult (*)(unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetFlags)(flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3128
 *     return err
 * 
 * cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3137
 *     return err
 * 
 * cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetId(CUcontext __pyx_v_ctx, unsigned PY_LONG_LONG *__pyx_v_ctxId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3139
 * cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3139, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3140
 *     global __cuCtxGetId
 *     cuPythonInit()
 *     if __cuCtxGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3141
 *     cuPythonInit()
 *     if __cuCtxGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetId" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetId)(ctx, ctxId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3142
 *     if __cuCtxGetId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetId)(ctx, ctxId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetId_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3142, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3142, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3141
 *     cuPythonInit()
 *     if __cuCtxGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetId" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetId)(ctx, ctxId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3140
 *     global __cuCtxGetId
 *     cuPythonInit()
 *     if __cuCtxGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3143
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetId" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetId)(ctx, ctxId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, unsigned PY_LONG_LONG *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId)(__pyx_v_ctx, __pyx_v_ctxId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3143, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3144
 *             raise RuntimeError('Function "cuCtxGetId" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetId)(ctx, ctxId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3137
 *     return err
 * 
 * cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3146
 *     return err
 * 
 * cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSynchronize(void) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSynchronize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3148
 * cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSynchronize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSynchronize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3148, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3149
 *     global __cuCtxSynchronize
 *     cuPythonInit()
 *     if __cuCtxSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3150
 *     cuPythonInit()
 *     if __cuCtxSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize)()
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3151
 *     if __cuCtxSynchronize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize)()
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSynchronize_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3151, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3151, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3150
 *     cuPythonInit()
 *     if __cuCtxSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize)()
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3149
 *     global __cuCtxSynchronize
 *     cuPythonInit()
 *     if __cuCtxSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3152
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize)()             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize)(); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3152, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3153
 *             raise RuntimeError('Function "cuCtxSynchronize" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize)()
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3146
 *     return err
 * 
 * cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3155
 *     return err
 * 
 * cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSynchronize_v2(CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSynchronize_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3157
 * cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSynchronize_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSynchronize_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3157, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3158
 *     global __cuCtxSynchronize_v2
 *     cuPythonInit()
 *     if __cuCtxSynchronize_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3159
 *     cuPythonInit()
 *     if __cuCtxSynchronize_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize_v2)(ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3160
 *     if __cuCtxSynchronize_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize_v2)(ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSynchronize_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3160, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3160, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3159
 *     cuPythonInit()
 *     if __cuCtxSynchronize_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize_v2)(ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3158
 *     global __cuCtxSynchronize_v2
 *     cuPythonInit()
 *     if __cuCtxSynchronize_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3161
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize_v2)(ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2)(__pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3161, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3162
 *             raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSynchronize_v2)(ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3155
 *     return err
 * 
 * cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSynchronize_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3164
 *     return err
 * 
 * cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetLimit
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetLimit(CUlimit __pyx_v_limit, size_t __pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSetLimit", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3166
 * cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSetLimit
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSetLimit == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3166, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3167
 *     global __cuCtxSetLimit
 *     cuPythonInit()
 *     if __cuCtxSetLimit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3168
 *     cuPythonInit()
 *     if __cuCtxSetLimit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
 *     err = (<CUresult (*)(CUlimit, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetLimit)(limit, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3169
 *     if __cuCtxSetLimit == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlimit, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetLimit)(limit, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSetLimit_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3169, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3169, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3168
 *     cuPythonInit()
 *     if __cuCtxSetLimit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
 *     err = (<CUresult (*)(CUlimit, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetLimit)(limit, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3167
 *     global __cuCtxSetLimit
 *     cuPythonInit()
 *     if __cuCtxSetLimit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3170
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
 *     err = (<CUresult (*)(CUlimit, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetLimit)(limit, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlimit, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit)(__pyx_v_limit, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3170, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3171
 *             raise RuntimeError('Function "cuCtxSetLimit" not found')
 *     err = (<CUresult (*)(CUlimit, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetLimit)(limit, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3164
 *     return err
 * 
 * cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetLimit
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3173
 *     return err
 * 
 * cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetLimit
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetLimit(size_t *__pyx_v_pvalue, CUlimit __pyx_v_limit) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetLimit", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3175
 * cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetLimit
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetLimit == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3175, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3176
 *     global __cuCtxGetLimit
 *     cuPythonInit()
 *     if __cuCtxGetLimit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3177
 *     cuPythonInit()
 *     if __cuCtxGetLimit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
 *     err = (<CUresult (*)(size_t*, CUlimit) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetLimit)(pvalue, limit)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3178
 *     if __cuCtxGetLimit == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, CUlimit) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetLimit)(pvalue, limit)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetLimit_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3178, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3178, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3177
 *     cuPythonInit()
 *     if __cuCtxGetLimit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
 *     err = (<CUresult (*)(size_t*, CUlimit) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetLimit)(pvalue, limit)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3176
 *     global __cuCtxGetLimit
 *     cuPythonInit()
 *     if __cuCtxGetLimit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3179
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
 *     err = (<CUresult (*)(size_t*, CUlimit) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetLimit)(pvalue, limit)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUlimit))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit)(__pyx_v_pvalue, __pyx_v_limit); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3179, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3180
 *             raise RuntimeError('Function "cuCtxGetLimit" not found')
 *     err = (<CUresult (*)(size_t*, CUlimit) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetLimit)(pvalue, limit)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3173
 *     return err
 * 
 * cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetLimit
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3182
 *     return err
 * 
 * cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCacheConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetCacheConfig(CUfunc_cache *__pyx_v_pconfig) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetCacheConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3184
 * cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetCacheConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetCacheConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3184, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3185
 *     global __cuCtxGetCacheConfig
 *     cuPythonInit()
 *     if __cuCtxGetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3186
 *     cuPythonInit()
 *     if __cuCtxGetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCacheConfig)(pconfig)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3187
 *     if __cuCtxGetCacheConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunc_cache*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCacheConfig)(pconfig)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetCacheConfig_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3187, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3187, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3186
 *     cuPythonInit()
 *     if __cuCtxGetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCacheConfig)(pconfig)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3185
 *     global __cuCtxGetCacheConfig
 *     cuPythonInit()
 *     if __cuCtxGetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3188
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCacheConfig)(pconfig)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunc_cache *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig)(__pyx_v_pconfig); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3188, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3189
 *             raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetCacheConfig)(pconfig)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3182
 *     return err
 * 
 * cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCacheConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3191
 *     return err
 * 
 * cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCacheConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetCacheConfig(CUfunc_cache __pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSetCacheConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3193
 * cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSetCacheConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSetCacheConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3193, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3194
 *     global __cuCtxSetCacheConfig
 *     cuPythonInit()
 *     if __cuCtxSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3195
 *     cuPythonInit()
 *     if __cuCtxSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCacheConfig)(config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3196
 *     if __cuCtxSetCacheConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCacheConfig)(config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSetCacheConfig_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3196, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3196, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3195
 *     cuPythonInit()
 *     if __cuCtxSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCacheConfig)(config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3194
 *     global __cuCtxSetCacheConfig
 *     cuPythonInit()
 *     if __cuCtxSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3197
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCacheConfig)(config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunc_cache))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig)(__pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3197, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3198
 *             raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetCacheConfig)(config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3191
 *     return err
 * 
 * cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCacheConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3200
 *     return err
 * 
 * cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetApiVersion
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetApiVersion(CUcontext __pyx_v_ctx, unsigned int *__pyx_v_version) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetApiVersion", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3202
 * cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetApiVersion
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetApiVersion == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3202, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3203
 *     global __cuCtxGetApiVersion
 *     cuPythonInit()
 *     if __cuCtxGetApiVersion == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3204
 *     cuPythonInit()
 *     if __cuCtxGetApiVersion == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetApiVersion)(ctx, version)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3205
 *     if __cuCtxGetApiVersion == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetApiVersion)(ctx, version)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetApiVersion_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3205, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3205, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3204
 *     cuPythonInit()
 *     if __cuCtxGetApiVersion == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetApiVersion)(ctx, version)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3203
 *     global __cuCtxGetApiVersion
 *     cuPythonInit()
 *     if __cuCtxGetApiVersion == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3206
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetApiVersion)(ctx, version)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion)(__pyx_v_ctx, __pyx_v_version); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3206, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3207
 *             raise RuntimeError('Function "cuCtxGetApiVersion" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetApiVersion)(ctx, version)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3200
 *     return err
 * 
 * cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetApiVersion
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetApiVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3209
 *     return err
 * 
 * cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetStreamPriorityRange
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetStreamPriorityRange(int *__pyx_v_leastPriority, int *__pyx_v_greatestPriority) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetStreamPriorityRange", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3211
 * cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetStreamPriorityRange
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetStreamPriorityRange == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3211, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3212
 *     global __cuCtxGetStreamPriorityRange
 *     cuPythonInit()
 *     if __cuCtxGetStreamPriorityRange == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3213
 *     cuPythonInit()
 *     if __cuCtxGetStreamPriorityRange == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
 *     err = (<CUresult (*)(int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3214
 *     if __cuCtxGetStreamPriorityRange == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetStreamPriorityR};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3214, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3214, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3213
 *     cuPythonInit()
 *     if __cuCtxGetStreamPriorityRange == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
 *     err = (<CUresult (*)(int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3212
 *     global __cuCtxGetStreamPriorityRange
 *     cuPythonInit()
 *     if __cuCtxGetStreamPriorityRange == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3215
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
 *     err = (<CUresult (*)(int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange)(__pyx_v_leastPriority, __pyx_v_greatestPriority); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3215, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3216
 *             raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
 *     err = (<CUresult (*)(int*, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3209
 *     return err
 * 
 * cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetStreamPriorityRange
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetStreamPriorityRange", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3218
 *     return err
 * 
 * cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxResetPersistingL2Cache
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxResetPersistingL2Cache(void) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxResetPersistingL2Cache", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3220
 * cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxResetPersistingL2Cache
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxResetPersistingL2Cache == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3220, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3221
 *     global __cuCtxResetPersistingL2Cache
 *     cuPythonInit()
 *     if __cuCtxResetPersistingL2Cache == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3222
 *     cuPythonInit()
 *     if __cuCtxResetPersistingL2Cache == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxResetPersistingL2Cache)()
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3223
 *     if __cuCtxResetPersistingL2Cache == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxResetPersistingL2Cache)()
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxResetPersistingL2C};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3223, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3223, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3222
 *     cuPythonInit()
 *     if __cuCtxResetPersistingL2Cache == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxResetPersistingL2Cache)()
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3221
 *     global __cuCtxResetPersistingL2Cache
 *     cuPythonInit()
 *     if __cuCtxResetPersistingL2Cache == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3224
 *         with gil:
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxResetPersistingL2Cache)()             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache)(); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3224, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3225
 *             raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxResetPersistingL2Cache)()
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3218
 *     return err
 * 
 * cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxResetPersistingL2Cache
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxResetPersistingL2Cache", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3227
 *     return err
 * 
 * cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetExecAffinity
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetExecAffinity(CUexecAffinityParam *__pyx_v_pExecAffinity, CUexecAffinityType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetExecAffinity", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3229
 * cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetExecAffinity
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetExecAffinity == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3229, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3230
 *     global __cuCtxGetExecAffinity
 *     cuPythonInit()
 *     if __cuCtxGetExecAffinity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3231
 *     cuPythonInit()
 *     if __cuCtxGetExecAffinity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
 *     err = (<CUresult (*)(CUexecAffinityParam*, CUexecAffinityType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetExecAffinity)(pExecAffinity, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3232
 *     if __cuCtxGetExecAffinity == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUexecAffinityParam*, CUexecAffinityType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetExecAffinity)(pExecAffinity, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetExecAffinity_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3232, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3232, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3231
 *     cuPythonInit()
 *     if __cuCtxGetExecAffinity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
 *     err = (<CUresult (*)(CUexecAffinityParam*, CUexecAffinityType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetExecAffinity)(pExecAffinity, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3230
 *     global __cuCtxGetExecAffinity
 *     cuPythonInit()
 *     if __cuCtxGetExecAffinity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3233
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
 *     err = (<CUresult (*)(CUexecAffinityParam*, CUexecAffinityType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetExecAffinity)(pExecAffinity, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexecAffinityParam *, CUexecAffinityType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity)(__pyx_v_pExecAffinity, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3233, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3234
 *             raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
 *     err = (<CUresult (*)(CUexecAffinityParam*, CUexecAffinityType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetExecAffinity)(pExecAffinity, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3227
 *     return err
 * 
 * cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetExecAffinity
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetExecAffinity", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3236
 *     return err
 * 
 * cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxRecordEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxRecordEvent(CUcontext __pyx_v_hCtx, CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxRecordEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3238
 * cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxRecordEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxRecordEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3238, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3239
 *     global __cuCtxRecordEvent
 *     cuPythonInit()
 *     if __cuCtxRecordEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3240
 *     cuPythonInit()
 *     if __cuCtxRecordEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxRecordEvent)(hCtx, hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3241
 *     if __cuCtxRecordEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxRecordEvent)(hCtx, hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxRecordEvent_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3241, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3241, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3240
 *     cuPythonInit()
 *     if __cuCtxRecordEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxRecordEvent)(hCtx, hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3239
 *     global __cuCtxRecordEvent
 *     cuPythonInit()
 *     if __cuCtxRecordEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3242
 *         with gil:
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxRecordEvent)(hCtx, hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent)(__pyx_v_hCtx, __pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3242, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3243
 *             raise RuntimeError('Function "cuCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxRecordEvent)(hCtx, hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3236
 *     return err
 * 
 * cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxRecordEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxRecordEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3245
 *     return err
 * 
 * cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxWaitEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxWaitEvent(CUcontext __pyx_v_hCtx, CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxWaitEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3247
 * cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxWaitEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxWaitEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3247, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3248
 *     global __cuCtxWaitEvent
 *     cuPythonInit()
 *     if __cuCtxWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3249
 *     cuPythonInit()
 *     if __cuCtxWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxWaitEvent)(hCtx, hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3250
 *     if __cuCtxWaitEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxWaitEvent)(hCtx, hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxWaitEvent_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3250, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3250, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3249
 *     cuPythonInit()
 *     if __cuCtxWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxWaitEvent)(hCtx, hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3248
 *     global __cuCtxWaitEvent
 *     cuPythonInit()
 *     if __cuCtxWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3251
 *         with gil:
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxWaitEvent)(hCtx, hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent)(__pyx_v_hCtx, __pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3251, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3252
 *             raise RuntimeError('Function "cuCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUcontext, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxWaitEvent)(hCtx, hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3245
 *     return err
 * 
 * cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxWaitEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3254
 *     return err
 * 
 * cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxAttach
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxAttach(CUcontext *__pyx_v_pctx, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxAttach", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3256
 * cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxAttach
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxAttach == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3256, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3257
 *     global __cuCtxAttach
 *     cuPythonInit()
 *     if __cuCtxAttach == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxAttach" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3258
 *     cuPythonInit()
 *     if __cuCtxAttach == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxAttach" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxAttach)(pctx, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3259
 *     if __cuCtxAttach == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxAttach" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxAttach)(pctx, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxAttach_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3259, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3259, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3258
 *     cuPythonInit()
 *     if __cuCtxAttach == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxAttach" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxAttach)(pctx, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3257
 *     global __cuCtxAttach
 *     cuPythonInit()
 *     if __cuCtxAttach == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxAttach" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3260
 *         with gil:
 *             raise RuntimeError('Function "cuCtxAttach" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxAttach)(pctx, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach)(__pyx_v_pctx, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3260, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3261
 *             raise RuntimeError('Function "cuCtxAttach" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxAttach)(pctx, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3254
 *     return err
 * 
 * cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxAttach
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxAttach", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3263
 *     return err
 * 
 * cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDetach
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDetach(CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxDetach", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3265
 * cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxDetach
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxDetach == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3265, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3266
 *     global __cuCtxDetach
 *     cuPythonInit()
 *     if __cuCtxDetach == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDetach" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3267
 *     cuPythonInit()
 *     if __cuCtxDetach == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDetach" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDetach)(ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3268
 *     if __cuCtxDetach == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDetach" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDetach)(ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxDetach_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3268, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3268, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3267
 *     cuPythonInit()
 *     if __cuCtxDetach == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDetach" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDetach)(ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3266
 *     global __cuCtxDetach
 *     cuPythonInit()
 *     if __cuCtxDetach == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDetach" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3269
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDetach" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDetach)(ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach)(__pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3269, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3270
 *             raise RuntimeError('Function "cuCtxDetach" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDetach)(ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3263
 *     return err
 * 
 * cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDetach
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxDetach", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3272
 *     return err
 * 
 * cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetSharedMemConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetSharedMemConfig(CUsharedconfig *__pyx_v_pConfig) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetSharedMemConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3274
 * cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetSharedMemConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetSharedMemConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3274, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3275
 *     global __cuCtxGetSharedMemConfig
 *     cuPythonInit()
 *     if __cuCtxGetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3276
 *     cuPythonInit()
 *     if __cuCtxGetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetSharedMemConfig)(pConfig)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3277
 *     if __cuCtxGetSharedMemConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsharedconfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetSharedMemConfig)(pConfig)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetSharedMemConfig};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3277, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3277, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3276
 *     cuPythonInit()
 *     if __cuCtxGetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetSharedMemConfig)(pConfig)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3275
 *     global __cuCtxGetSharedMemConfig
 *     cuPythonInit()
 *     if __cuCtxGetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3278
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetSharedMemConfig)(pConfig)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsharedconfig *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig)(__pyx_v_pConfig); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3278, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3279
 *             raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetSharedMemConfig)(pConfig)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3272
 *     return err
 * 
 * cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetSharedMemConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3281
 *     return err
 * 
 * cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetSharedMemConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetSharedMemConfig(CUsharedconfig __pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxSetSharedMemConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3283
 * cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxSetSharedMemConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxSetSharedMemConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3283, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3284
 *     global __cuCtxSetSharedMemConfig
 *     cuPythonInit()
 *     if __cuCtxSetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3285
 *     cuPythonInit()
 *     if __cuCtxSetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetSharedMemConfig)(config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3286
 *     if __cuCtxSetSharedMemConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetSharedMemConfig)(config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxSetSharedMemConfig};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3286, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3286, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3285
 *     cuPythonInit()
 *     if __cuCtxSetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetSharedMemConfig)(config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3284
 *     global __cuCtxSetSharedMemConfig
 *     cuPythonInit()
 *     if __cuCtxSetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3287
 *         with gil:
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetSharedMemConfig)(config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsharedconfig))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig)(__pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3287, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3288
 *             raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxSetSharedMemConfig)(config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3281
 *     return err
 * 
 * cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxSetSharedMemConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3290
 *     return err
 * 
 * cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoad
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoad(CUmodule *__pyx_v_module, char const *__pyx_v_fname) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleLoad", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3292
 * cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleLoad
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleLoad == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3292, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3293
 *     global __cuModuleLoad
 *     cuPythonInit()
 *     if __cuModuleLoad == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoad" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3294
 *     cuPythonInit()
 *     if __cuModuleLoad == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoad" not found')
 *     err = (<CUresult (*)(CUmodule*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoad)(module, fname)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3295
 *     if __cuModuleLoad == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoad" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoad)(module, fname)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleLoad_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3295, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3295, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3294
 *     cuPythonInit()
 *     if __cuModuleLoad == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoad" not found')
 *     err = (<CUresult (*)(CUmodule*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoad)(module, fname)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3293
 *     global __cuModuleLoad
 *     cuPythonInit()
 *     if __cuModuleLoad == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoad" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3296
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoad" not found')
 *     err = (<CUresult (*)(CUmodule*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoad)(module, fname)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad)(__pyx_v_module, __pyx_v_fname); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3296, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3297
 *             raise RuntimeError('Function "cuModuleLoad" not found')
 *     err = (<CUresult (*)(CUmodule*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoad)(module, fname)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3290
 *     return err
 * 
 * cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoad
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleLoad", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3299
 *     return err
 * 
 * cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadData
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadData(CUmodule *__pyx_v_module, void const *__pyx_v_image) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleLoadData", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3301
 * cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleLoadData
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleLoadData == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3301, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3302
 *     global __cuModuleLoadData
 *     cuPythonInit()
 *     if __cuModuleLoadData == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3303
 *     cuPythonInit()
 *     if __cuModuleLoadData == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadData)(module, image)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3304
 *     if __cuModuleLoadData == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadData" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadData)(module, image)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleLoadData_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3304, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3304, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3303
 *     cuPythonInit()
 *     if __cuModuleLoadData == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadData)(module, image)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3302
 *     global __cuModuleLoadData
 *     cuPythonInit()
 *     if __cuModuleLoadData == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3305
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadData)(module, image)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, void const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData)(__pyx_v_module, __pyx_v_image); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3305, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3306
 *             raise RuntimeError('Function "cuModuleLoadData" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadData)(module, image)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3299
 *     return err
 * 
 * cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadData
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleLoadData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3308
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadDataEx(CUmodule *__pyx_v_module, void const *__pyx_v_image, unsigned int __pyx_v_numOptions, CUjit_option *__pyx_v_options, void **__pyx_v_optionValues) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleLoadDataEx", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3310
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3310, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3311
 *     global __cuModuleLoadDataEx
 *     cuPythonInit()
 *     if __cuModuleLoadDataEx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3312
 *     cuPythonInit()
 *     if __cuModuleLoadDataEx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3313
 *     if __cuModuleLoadDataEx == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, const void*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleLoadDataEx_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3313, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3313, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3312
 *     cuPythonInit()
 *     if __cuModuleLoadDataEx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3311
 *     global __cuModuleLoadDataEx
 *     cuPythonInit()
 *     if __cuModuleLoadDataEx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3314
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, void const *, unsigned int, CUjit_option *, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx)(__pyx_v_module, __pyx_v_image, __pyx_v_numOptions, __pyx_v_options, __pyx_v_optionValues); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3314, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3315
 *             raise RuntimeError('Function "cuModuleLoadDataEx" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3308
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleLoadDataEx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3317
 *     return err
 * 
 * cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadFatBinary
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadFatBinary(CUmodule *__pyx_v_module, void const *__pyx_v_fatCubin) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleLoadFatBinary", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3319
 * cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleLoadFatBinary
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleLoadFatBinary == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3319, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3320
 *     global __cuModuleLoadFatBinary
 *     cuPythonInit()
 *     if __cuModuleLoadFatBinary == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3321
 *     cuPythonInit()
 *     if __cuModuleLoadFatBinary == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadFatBinary)(module, fatCubin)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3322
 *     if __cuModuleLoadFatBinary == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadFatBinary)(module, fatCubin)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleLoadFatBinary_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3322, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3322, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3321
 *     cuPythonInit()
 *     if __cuModuleLoadFatBinary == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadFatBinary)(module, fatCubin)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3320
 *     global __cuModuleLoadFatBinary
 *     cuPythonInit()
 *     if __cuModuleLoadFatBinary == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3323
 *         with gil:
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadFatBinary)(module, fatCubin)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, void const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary)(__pyx_v_module, __pyx_v_fatCubin); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3323, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3324
 *             raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
 *     err = (<CUresult (*)(CUmodule*, const void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleLoadFatBinary)(module, fatCubin)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3317
 *     return err
 * 
 * cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadFatBinary
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleLoadFatBinary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3326
 *     return err
 * 
 * cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleUnload
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleUnload(CUmodule __pyx_v_hmod) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleUnload", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3328
 * cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleUnload
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleUnload == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3328, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3329
 *     global __cuModuleUnload
 *     cuPythonInit()
 *     if __cuModuleUnload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleUnload" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3330
 *     cuPythonInit()
 *     if __cuModuleUnload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleUnload" not found')
 *     err = (<CUresult (*)(CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleUnload)(hmod)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3331
 *     if __cuModuleUnload == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleUnload" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleUnload)(hmod)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleUnload_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3331, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3331, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3330
 *     cuPythonInit()
 *     if __cuModuleUnload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleUnload" not found')
 *     err = (<CUresult (*)(CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleUnload)(hmod)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3329
 *     global __cuModuleUnload
 *     cuPythonInit()
 *     if __cuModuleUnload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleUnload" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3332
 *         with gil:
 *             raise RuntimeError('Function "cuModuleUnload" not found')
 *     err = (<CUresult (*)(CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleUnload)(hmod)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload)(__pyx_v_hmod); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3332, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3333
 *             raise RuntimeError('Function "cuModuleUnload" not found')
 *     err = (<CUresult (*)(CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleUnload)(hmod)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3326
 *     return err
 * 
 * cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleUnload
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleUnload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3335
 *     return err
 * 
 * cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetLoadingMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetLoadingMode(CUmoduleLoadingMode *__pyx_v_mode) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetLoadingMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3337
 * cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleGetLoadingMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleGetLoadingMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3337, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3338
 *     global __cuModuleGetLoadingMode
 *     cuPythonInit()
 *     if __cuModuleGetLoadingMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3339
 *     cuPythonInit()
 *     if __cuModuleGetLoadingMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
 *     err = (<CUresult (*)(CUmoduleLoadingMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetLoadingMode)(mode)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3340
 *     if __cuModuleGetLoadingMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmoduleLoadingMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetLoadingMode)(mode)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetLoadingMode};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3340, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3340, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3339
 *     cuPythonInit()
 *     if __cuModuleGetLoadingMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
 *     err = (<CUresult (*)(CUmoduleLoadingMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetLoadingMode)(mode)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3338
 *     global __cuModuleGetLoadingMode
 *     cuPythonInit()
 *     if __cuModuleGetLoadingMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3341
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
 *     err = (<CUresult (*)(CUmoduleLoadingMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetLoadingMode)(mode)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmoduleLoadingMode *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode)(__pyx_v_mode); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3341, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3342
 *             raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
 *     err = (<CUresult (*)(CUmoduleLoadingMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetLoadingMode)(mode)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3335
 *     return err
 * 
 * cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetLoadingMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetLoadingMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3344
 *     return err
 * 
 * cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunction
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetFunction(CUfunction *__pyx_v_hfunc, CUmodule __pyx_v_hmod, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetFunction", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3346
 * cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleGetFunction
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleGetFunction == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3346, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3347
 *     global __cuModuleGetFunction
 *     cuPythonInit()
 *     if __cuModuleGetFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3348
 *     cuPythonInit()
 *     if __cuModuleGetFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunction)(hfunc, hmod, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3349
 *     if __cuModuleGetFunction == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunction)(hfunc, hmod, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetFunction_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3349, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3349, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3348
 *     cuPythonInit()
 *     if __cuModuleGetFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunction)(hfunc, hmod, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3347
 *     global __cuModuleGetFunction
 *     cuPythonInit()
 *     if __cuModuleGetFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3350
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunction)(hfunc, hmod, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction *, CUmodule, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction)(__pyx_v_hfunc, __pyx_v_hmod, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3350, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3351
 *             raise RuntimeError('Function "cuModuleGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunction)(hfunc, hmod, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3344
 *     return err
 * 
 * cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunction
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3353
 *     return err
 * 
 * cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunctionCount
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetFunctionCount(unsigned int *__pyx_v_count, CUmodule __pyx_v_mod) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetFunctionCount", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3355
 * cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleGetFunctionCount
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleGetFunctionCount == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3355, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3356
 *     global __cuModuleGetFunctionCount
 *     cuPythonInit()
 *     if __cuModuleGetFunctionCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3357
 *     cuPythonInit()
 *     if __cuModuleGetFunctionCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunctionCount)(count, mod)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3358
 *     if __cuModuleGetFunctionCount == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunctionCount)(count, mod)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetFunctionCoun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3358, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3358, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3357
 *     cuPythonInit()
 *     if __cuModuleGetFunctionCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunctionCount)(count, mod)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3356
 *     global __cuModuleGetFunctionCount
 *     cuPythonInit()
 *     if __cuModuleGetFunctionCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3359
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunctionCount)(count, mod)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUmodule))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount)(__pyx_v_count, __pyx_v_mod); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3359, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3360
 *             raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetFunctionCount)(count, mod)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3353
 *     return err
 * 
 * cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunctionCount
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetFunctionCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3362
 *     return err
 * 
 * cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleEnumerateFunctions
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleEnumerateFunctions(CUfunction *__pyx_v_functions, unsigned int __pyx_v_numFunctions, CUmodule __pyx_v_mod) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleEnumerateFunctions", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3364
 * cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleEnumerateFunctions
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleEnumerateFunctions == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3364, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3365
 *     global __cuModuleEnumerateFunctions
 *     cuPythonInit()
 *     if __cuModuleEnumerateFunctions == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3366
 *     cuPythonInit()
 *     if __cuModuleEnumerateFunctions == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
 *     err = (<CUresult (*)(CUfunction*, unsigned int, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleEnumerateFunctions)(functions, numFunctions, mod)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3367
 *     if __cuModuleEnumerateFunctions == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction*, unsigned int, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleEnumerateFunctions)(functions, numFunctions, mod)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleEnumerateFuncti};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3367, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3367, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3366
 *     cuPythonInit()
 *     if __cuModuleEnumerateFunctions == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
 *     err = (<CUresult (*)(CUfunction*, unsigned int, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleEnumerateFunctions)(functions, numFunctions, mod)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3365
 *     global __cuModuleEnumerateFunctions
 *     cuPythonInit()
 *     if __cuModuleEnumerateFunctions == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3368
 *         with gil:
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
 *     err = (<CUresult (*)(CUfunction*, unsigned int, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleEnumerateFunctions)(functions, numFunctions, mod)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction *, unsigned int, CUmodule))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions)(__pyx_v_functions, __pyx_v_numFunctions, __pyx_v_mod); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3368, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3369
 *             raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
 *     err = (<CUresult (*)(CUfunction*, unsigned int, CUmodule) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleEnumerateFunctions)(functions, numFunctions, mod)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3362
 *     return err
 * 
 * cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleEnumerateFunctions
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleEnumerateFunctions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3371
 *     return err
 * 
 * cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetGlobal_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetGlobal_v2(CUdeviceptr *__pyx_v_dptr, size_t *__pyx_v_numbytes, CUmodule __pyx_v_hmod, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetGlobal_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3373
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3373, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3374
 *     global __cuModuleGetGlobal_v2
 *     cuPythonInit()
 *     if __cuModuleGetGlobal_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3375
 *     cuPythonInit()
 *     if __cuModuleGetGlobal_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3376
 *     if __cuModuleGetGlobal_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetGlobal_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3376, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3376, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3375
 *     cuPythonInit()
 *     if __cuModuleGetGlobal_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3374
 *     global __cuModuleGetGlobal_v2
 *     cuPythonInit()
 *     if __cuModuleGetGlobal_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3377
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, CUmodule, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2)(__pyx_v_dptr, __pyx_v_numbytes, __pyx_v_hmod, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3377, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3378
 *             raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3371
 *     return err
 * 
 * cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetGlobal_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetGlobal_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3380
 *     return err
 * 
 * cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkCreate_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkCreate_v2(unsigned int __pyx_v_numOptions, CUjit_option *__pyx_v_options, void **__pyx_v_optionValues, CUlinkState *__pyx_v_stateOut) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLinkCreate_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3382
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3382, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3383
 *     global __cuLinkCreate_v2
 *     cuPythonInit()
 *     if __cuLinkCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3384
 *     cuPythonInit()
 *     if __cuLinkCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
 *     err = (<CUresult (*)(unsigned int, CUjit_option*, void**, CUlinkState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3385
 *     if __cuLinkCreate_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int, CUjit_option*, void**, CUlinkState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLinkCreate_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3385, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3385, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3384
 *     cuPythonInit()
 *     if __cuLinkCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
 *     err = (<CUresult (*)(unsigned int, CUjit_option*, void**, CUlinkState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3383
 *     global __cuLinkCreate_v2
 *     cuPythonInit()
 *     if __cuLinkCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3386
 *         with gil:
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
 *     err = (<CUresult (*)(unsigned int, CUjit_option*, void**, CUlinkState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int, CUjit_option *, void **, CUlinkState *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2)(__pyx_v_numOptions, __pyx_v_options, __pyx_v_optionValues, __pyx_v_stateOut); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3386, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3387
 *             raise RuntimeError('Function "cuLinkCreate_v2" not found')
 *     err = (<CUresult (*)(unsigned int, CUjit_option*, void**, CUlinkState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3380
 *     return err
 * 
 * cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkCreate_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLinkCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3389
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkAddData_v2(CUlinkState __pyx_v_state, CUjitInputType __pyx_v_typename, void *__pyx_v_data, size_t __pyx_v_size, char const *__pyx_v_name, unsigned int __pyx_v_numOptions, CUjit_option *__pyx_v_options, void **__pyx_v_optionValues) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLinkAddData_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3391
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3391, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3392
 *     global __cuLinkAddData_v2
 *     cuPythonInit()
 *     if __cuLinkAddData_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3393
 *     cuPythonInit()
 *     if __cuLinkAddData_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, void*, size_t, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3394
 *     if __cuLinkAddData_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, void*, size_t, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLinkAddData_v2_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3394, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3394, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3393
 *     cuPythonInit()
 *     if __cuLinkAddData_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, void*, size_t, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3392
 *     global __cuLinkAddData_v2
 *     cuPythonInit()
 *     if __cuLinkAddData_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3395
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, void*, size_t, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlinkState, CUjitInputType, void *, size_t, char const *, unsigned int, CUjit_option *, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2)(__pyx_v_state, __pyx_v_typename, __pyx_v_data, __pyx_v_size, __pyx_v_name, __pyx_v_numOptions, __pyx_v_options, __pyx_v_optionValues); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3395, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3396
 *             raise RuntimeError('Function "cuLinkAddData_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, void*, size_t, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3389
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLinkAddData_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3398
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkAddFile_v2(CUlinkState __pyx_v_state, CUjitInputType __pyx_v_typename, char const *__pyx_v_path, unsigned int __pyx_v_numOptions, CUjit_option *__pyx_v_options, void **__pyx_v_optionValues) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLinkAddFile_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3400
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3400, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3401
 *     global __cuLinkAddFile_v2
 *     cuPythonInit()
 *     if __cuLinkAddFile_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3402
 *     cuPythonInit()
 *     if __cuLinkAddFile_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3403
 *     if __cuLinkAddFile_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLinkAddFile_v2_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3403, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3403, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3402
 *     cuPythonInit()
 *     if __cuLinkAddFile_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3401
 *     global __cuLinkAddFile_v2
 *     cuPythonInit()
 *     if __cuLinkAddFile_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3404
 *         with gil:
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlinkState, CUjitInputType, char const *, unsigned int, CUjit_option *, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2)(__pyx_v_state, __pyx_v_typename, __pyx_v_path, __pyx_v_numOptions, __pyx_v_options, __pyx_v_optionValues); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3404, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3405
 *             raise RuntimeError('Function "cuLinkAddFile_v2" not found')
 *     err = (<CUresult (*)(CUlinkState, CUjitInputType, const char*, unsigned int, CUjit_option*, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3398
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLinkAddFile_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3407
 *     return err
 * 
 * cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkComplete
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkComplete(CUlinkState __pyx_v_state, void **__pyx_v_cubinOut, size_t *__pyx_v_sizeOut) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLinkComplete", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3409
 * cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLinkComplete
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLinkComplete == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3409, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3410
 *     global __cuLinkComplete
 *     cuPythonInit()
 *     if __cuLinkComplete == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkComplete" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3411
 *     cuPythonInit()
 *     if __cuLinkComplete == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkComplete" not found')
 *     err = (<CUresult (*)(CUlinkState, void**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkComplete)(state, cubinOut, sizeOut)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3412
 *     if __cuLinkComplete == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLinkComplete" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlinkState, void**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkComplete)(state, cubinOut, sizeOut)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLinkComplete_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3412, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3412, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3411
 *     cuPythonInit()
 *     if __cuLinkComplete == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkComplete" not found')
 *     err = (<CUresult (*)(CUlinkState, void**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkComplete)(state, cubinOut, sizeOut)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3410
 *     global __cuLinkComplete
 *     cuPythonInit()
 *     if __cuLinkComplete == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkComplete" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3413
 *         with gil:
 *             raise RuntimeError('Function "cuLinkComplete" not found')
 *     err = (<CUresult (*)(CUlinkState, void**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkComplete)(state, cubinOut, sizeOut)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlinkState, void **, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete)(__pyx_v_state, __pyx_v_cubinOut, __pyx_v_sizeOut); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3413, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3414
 *             raise RuntimeError('Function "cuLinkComplete" not found')
 *     err = (<CUresult (*)(CUlinkState, void**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkComplete)(state, cubinOut, sizeOut)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3407
 *     return err
 * 
 * cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkComplete
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLinkComplete", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3416
 *     return err
 * 
 * cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkDestroy(CUlinkState __pyx_v_state) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLinkDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3418
 * cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLinkDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLinkDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3418, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3419
 *     global __cuLinkDestroy
 *     cuPythonInit()
 *     if __cuLinkDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3420
 *     cuPythonInit()
 *     if __cuLinkDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
 *     err = (<CUresult (*)(CUlinkState) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkDestroy)(state)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3421
 *     if __cuLinkDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLinkDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlinkState) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkDestroy)(state)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLinkDestroy_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3421, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3421, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3420
 *     cuPythonInit()
 *     if __cuLinkDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
 *     err = (<CUresult (*)(CUlinkState) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkDestroy)(state)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3419
 *     global __cuLinkDestroy
 *     cuPythonInit()
 *     if __cuLinkDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3422
 *         with gil:
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
 *     err = (<CUresult (*)(CUlinkState) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkDestroy)(state)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlinkState))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy)(__pyx_v_state); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3422, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3423
 *             raise RuntimeError('Function "cuLinkDestroy" not found')
 *     err = (<CUresult (*)(CUlinkState) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLinkDestroy)(state)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3416
 *     return err
 * 
 * cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLinkDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLinkDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3425
 *     return err
 * 
 * cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetTexRef
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetTexRef(CUtexref *__pyx_v_pTexRef, CUmodule __pyx_v_hmod, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetTexRef", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3427
 * cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleGetTexRef
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleGetTexRef == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3427, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3428
 *     global __cuModuleGetTexRef
 *     cuPythonInit()
 *     if __cuModuleGetTexRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3429
 *     cuPythonInit()
 *     if __cuModuleGetTexRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
 *     err = (<CUresult (*)(CUtexref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetTexRef)(pTexRef, hmod, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3430
 *     if __cuModuleGetTexRef == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetTexRef)(pTexRef, hmod, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetTexRef_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3430, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3430, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3429
 *     cuPythonInit()
 *     if __cuModuleGetTexRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
 *     err = (<CUresult (*)(CUtexref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetTexRef)(pTexRef, hmod, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3428
 *     global __cuModuleGetTexRef
 *     cuPythonInit()
 *     if __cuModuleGetTexRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3431
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
 *     err = (<CUresult (*)(CUtexref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetTexRef)(pTexRef, hmod, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref *, CUmodule, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef)(__pyx_v_pTexRef, __pyx_v_hmod, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3431, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3432
 *             raise RuntimeError('Function "cuModuleGetTexRef" not found')
 *     err = (<CUresult (*)(CUtexref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetTexRef)(pTexRef, hmod, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3425
 *     return err
 * 
 * cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetTexRef
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetTexRef", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3434
 *     return err
 * 
 * cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetSurfRef
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetSurfRef(CUsurfref *__pyx_v_pSurfRef, CUmodule __pyx_v_hmod, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuModuleGetSurfRef", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3436
 * cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuModuleGetSurfRef
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuModuleGetSurfRef == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3436, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3437
 *     global __cuModuleGetSurfRef
 *     cuPythonInit()
 *     if __cuModuleGetSurfRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3438
 *     cuPythonInit()
 *     if __cuModuleGetSurfRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
 *     err = (<CUresult (*)(CUsurfref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetSurfRef)(pSurfRef, hmod, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3439
 *     if __cuModuleGetSurfRef == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsurfref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetSurfRef)(pSurfRef, hmod, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuModuleGetSurfRef_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3439, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3439, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3438
 *     cuPythonInit()
 *     if __cuModuleGetSurfRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
 *     err = (<CUresult (*)(CUsurfref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetSurfRef)(pSurfRef, hmod, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3437
 *     global __cuModuleGetSurfRef
 *     cuPythonInit()
 *     if __cuModuleGetSurfRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3440
 *         with gil:
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
 *     err = (<CUresult (*)(CUsurfref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetSurfRef)(pSurfRef, hmod, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsurfref *, CUmodule, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef)(__pyx_v_pSurfRef, __pyx_v_hmod, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3440, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3441
 *             raise RuntimeError('Function "cuModuleGetSurfRef" not found')
 *     err = (<CUresult (*)(CUsurfref*, CUmodule, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuModuleGetSurfRef)(pSurfRef, hmod, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3434
 *     return err
 * 
 * cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuModuleGetSurfRef
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuModuleGetSurfRef", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3443
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryLoadData(CUlibrary *__pyx_v_library, void const *__pyx_v_code, CUjit_option *__pyx_v_jitOptions, void **__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, CUlibraryOption *__pyx_v_libraryOptions, void **__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryLoadData", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3445
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3445, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3446
 *     global __cuLibraryLoadData
 *     cuPythonInit()
 *     if __cuLibraryLoadData == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3447
 *     cuPythonInit()
 *     if __cuLibraryLoadData == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
 *     err = (<CUresult (*)(CUlibrary*, const void*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3448
 *     if __cuLibraryLoadData == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlibrary*, const void*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryLoadData_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3448, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3448, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3447
 *     cuPythonInit()
 *     if __cuLibraryLoadData == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
 *     err = (<CUresult (*)(CUlibrary*, const void*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3446
 *     global __cuLibraryLoadData
 *     cuPythonInit()
 *     if __cuLibraryLoadData == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3449
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
 *     err = (<CUresult (*)(CUlibrary*, const void*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlibrary *, void const *, CUjit_option *, void **, unsigned int, CUlibraryOption *, void **, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData)(__pyx_v_library, __pyx_v_code, __pyx_v_jitOptions, __pyx_v_jitOptionsValues, __pyx_v_numJitOptions, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues, __pyx_v_numLibraryOptions); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3449, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3450
 *             raise RuntimeError('Function "cuLibraryLoadData" not found')
 *     err = (<CUresult (*)(CUlibrary*, const void*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3443
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryLoadData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3452
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryLoadFromFile(CUlibrary *__pyx_v_library, char const *__pyx_v_fileName, CUjit_option *__pyx_v_jitOptions, void **__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, CUlibraryOption *__pyx_v_libraryOptions, void **__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryLoadFromFile", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3454
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3454, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3455
 *     global __cuLibraryLoadFromFile
 *     cuPythonInit()
 *     if __cuLibraryLoadFromFile == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3456
 *     cuPythonInit()
 *     if __cuLibraryLoadFromFile == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
 *     err = (<CUresult (*)(CUlibrary*, const char*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3457
 *     if __cuLibraryLoadFromFile == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlibrary*, const char*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryLoadFromFile_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3457, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3457, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3456
 *     cuPythonInit()
 *     if __cuLibraryLoadFromFile == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
 *     err = (<CUresult (*)(CUlibrary*, const char*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3455
 *     global __cuLibraryLoadFromFile
 *     cuPythonInit()
 *     if __cuLibraryLoadFromFile == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3458
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
 *     err = (<CUresult (*)(CUlibrary*, const char*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlibrary *, char const *, CUjit_option *, void **, unsigned int, CUlibraryOption *, void **, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile)(__pyx_v_library, __pyx_v_fileName, __pyx_v_jitOptions, __pyx_v_jitOptionsValues, __pyx_v_numJitOptions, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues, __pyx_v_numLibraryOptions); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3458, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3459
 *             raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
 *     err = (<CUresult (*)(CUlibrary*, const char*, CUjit_option*, void**, unsigned int, CUlibraryOption*, void**, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3452
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryLoadFromFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3461
 *     return err
 * 
 * cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryUnload
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryUnload(CUlibrary __pyx_v_library) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryUnload", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3463
 * cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryUnload
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryUnload == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3463, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3464
 *     global __cuLibraryUnload
 *     cuPythonInit()
 *     if __cuLibraryUnload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3465
 *     cuPythonInit()
 *     if __cuLibraryUnload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
 *     err = (<CUresult (*)(CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryUnload)(library)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3466
 *     if __cuLibraryUnload == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryUnload" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryUnload)(library)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryUnload_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3466, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3466, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3465
 *     cuPythonInit()
 *     if __cuLibraryUnload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
 *     err = (<CUresult (*)(CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryUnload)(library)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3464
 *     global __cuLibraryUnload
 *     cuPythonInit()
 *     if __cuLibraryUnload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3467
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
 *     err = (<CUresult (*)(CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryUnload)(library)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlibrary))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload)(__pyx_v_library); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3467, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3468
 *             raise RuntimeError('Function "cuLibraryUnload" not found')
 *     err = (<CUresult (*)(CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryUnload)(library)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3461
 *     return err
 * 
 * cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryUnload
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryUnload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3470
 *     return err
 * 
 * cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernel
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetKernel(CUkernel *__pyx_v_pKernel, CUlibrary __pyx_v_library, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetKernel", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3472
 * cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryGetKernel
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryGetKernel == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3472, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3473
 *     global __cuLibraryGetKernel
 *     cuPythonInit()
 *     if __cuLibraryGetKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3474
 *     cuPythonInit()
 *     if __cuLibraryGetKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
 *     err = (<CUresult (*)(CUkernel*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernel)(pKernel, library, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3475
 *     if __cuLibraryGetKernel == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUkernel*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernel)(pKernel, library, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetKernel_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3475, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3475, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3474
 *     cuPythonInit()
 *     if __cuLibraryGetKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
 *     err = (<CUresult (*)(CUkernel*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernel)(pKernel, library, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3473
 *     global __cuLibraryGetKernel
 *     cuPythonInit()
 *     if __cuLibraryGetKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3476
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
 *     err = (<CUresult (*)(CUkernel*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernel)(pKernel, library, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUkernel *, CUlibrary, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel)(__pyx_v_pKernel, __pyx_v_library, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3476, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3477
 *             raise RuntimeError('Function "cuLibraryGetKernel" not found')
 *     err = (<CUresult (*)(CUkernel*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernel)(pKernel, library, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3470
 *     return err
 * 
 * cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernel
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3479
 *     return err
 * 
 * cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernelCount
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetKernelCount(unsigned int *__pyx_v_count, CUlibrary __pyx_v_lib) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetKernelCount", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3481
 * cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryGetKernelCount
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryGetKernelCount == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3481, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3482
 *     global __cuLibraryGetKernelCount
 *     cuPythonInit()
 *     if __cuLibraryGetKernelCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3483
 *     cuPythonInit()
 *     if __cuLibraryGetKernelCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernelCount)(count, lib)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3484
 *     if __cuLibraryGetKernelCount == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernelCount)(count, lib)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetKernelCount};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3484, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3484, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3483
 *     cuPythonInit()
 *     if __cuLibraryGetKernelCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernelCount)(count, lib)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3482
 *     global __cuLibraryGetKernelCount
 *     cuPythonInit()
 *     if __cuLibraryGetKernelCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3485
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernelCount)(count, lib)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUlibrary))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount)(__pyx_v_count, __pyx_v_lib); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3485, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3486
 *             raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
 *     err = (<CUresult (*)(unsigned int*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetKernelCount)(count, lib)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3479
 *     return err
 * 
 * cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernelCount
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetKernelCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3488
 *     return err
 * 
 * cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryEnumerateKernels
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryEnumerateKernels(CUkernel *__pyx_v_kernels, unsigned int __pyx_v_numKernels, CUlibrary __pyx_v_lib) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryEnumerateKernels", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3490
 * cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryEnumerateKernels
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryEnumerateKernels == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3490, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3491
 *     global __cuLibraryEnumerateKernels
 *     cuPythonInit()
 *     if __cuLibraryEnumerateKernels == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3492
 *     cuPythonInit()
 *     if __cuLibraryEnumerateKernels == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
 *     err = (<CUresult (*)(CUkernel*, unsigned int, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryEnumerateKernels)(kernels, numKernels, lib)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3493
 *     if __cuLibraryEnumerateKernels == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUkernel*, unsigned int, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryEnumerateKernels)(kernels, numKernels, lib)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryEnumerateKerne};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3493, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3493, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3492
 *     cuPythonInit()
 *     if __cuLibraryEnumerateKernels == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
 *     err = (<CUresult (*)(CUkernel*, unsigned int, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryEnumerateKernels)(kernels, numKernels, lib)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3491
 *     global __cuLibraryEnumerateKernels
 *     cuPythonInit()
 *     if __cuLibraryEnumerateKernels == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3494
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
 *     err = (<CUresult (*)(CUkernel*, unsigned int, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryEnumerateKernels)(kernels, numKernels, lib)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUkernel *, unsigned int, CUlibrary))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels)(__pyx_v_kernels, __pyx_v_numKernels, __pyx_v_lib); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3494, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3495
 *             raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
 *     err = (<CUresult (*)(CUkernel*, unsigned int, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryEnumerateKernels)(kernels, numKernels, lib)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3488
 *     return err
 * 
 * cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryEnumerateKernels
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryEnumerateKernels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3497
 *     return err
 * 
 * cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetModule
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetModule(CUmodule *__pyx_v_pMod, CUlibrary __pyx_v_library) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetModule", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3499
 * cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryGetModule
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryGetModule == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3499, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3500
 *     global __cuLibraryGetModule
 *     cuPythonInit()
 *     if __cuLibraryGetModule == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3501
 *     cuPythonInit()
 *     if __cuLibraryGetModule == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetModule)(pMod, library)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3502
 *     if __cuLibraryGetModule == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetModule)(pMod, library)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetModule_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3502, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3502, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3501
 *     cuPythonInit()
 *     if __cuLibraryGetModule == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetModule)(pMod, library)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3500
 *     global __cuLibraryGetModule
 *     cuPythonInit()
 *     if __cuLibraryGetModule == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3503
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetModule)(pMod, library)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, CUlibrary))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule)(__pyx_v_pMod, __pyx_v_library); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3503, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3504
 *             raise RuntimeError('Function "cuLibraryGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUlibrary) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetModule)(pMod, library)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3497
 *     return err
 * 
 * cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetModule
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetModule", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3506
 *     return err
 * 
 * cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetFunction
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetFunction(CUfunction *__pyx_v_pFunc, CUkernel __pyx_v_kernel) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelGetFunction", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3508
 * cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuKernelGetFunction
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuKernelGetFunction == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3508, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3509
 *     global __cuKernelGetFunction
 *     cuPythonInit()
 *     if __cuKernelGetFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3510
 *     cuPythonInit()
 *     if __cuKernelGetFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetFunction)(pFunc, kernel)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3511
 *     if __cuKernelGetFunction == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetFunction)(pFunc, kernel)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelGetFunction_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3511, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3511, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3510
 *     cuPythonInit()
 *     if __cuKernelGetFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetFunction)(pFunc, kernel)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3509
 *     global __cuKernelGetFunction
 *     cuPythonInit()
 *     if __cuKernelGetFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3512
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetFunction)(pFunc, kernel)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction *, CUkernel))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction)(__pyx_v_pFunc, __pyx_v_kernel); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3512, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3513
 *             raise RuntimeError('Function "cuKernelGetFunction" not found')
 *     err = (<CUresult (*)(CUfunction*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetFunction)(pFunc, kernel)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3506
 *     return err
 * 
 * cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetFunction
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelGetFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3515
 *     return err
 * 
 * cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetLibrary
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetLibrary(CUlibrary *__pyx_v_pLib, CUkernel __pyx_v_kernel) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelGetLibrary", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3517
 * cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuKernelGetLibrary
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuKernelGetLibrary == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3518
 *     global __cuKernelGetLibrary
 *     cuPythonInit()
 *     if __cuKernelGetLibrary == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3519
 *     cuPythonInit()
 *     if __cuKernelGetLibrary == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
 *     err = (<CUresult (*)(CUlibrary*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetLibrary)(pLib, kernel)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3520
 *     if __cuKernelGetLibrary == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlibrary*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetLibrary)(pLib, kernel)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelGetLibrary_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3520, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3520, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3519
 *     cuPythonInit()
 *     if __cuKernelGetLibrary == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
 *     err = (<CUresult (*)(CUlibrary*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetLibrary)(pLib, kernel)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3518
 *     global __cuKernelGetLibrary
 *     cuPythonInit()
 *     if __cuKernelGetLibrary == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3521
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
 *     err = (<CUresult (*)(CUlibrary*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetLibrary)(pLib, kernel)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlibrary *, CUkernel))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary)(__pyx_v_pLib, __pyx_v_kernel); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3521, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3522
 *             raise RuntimeError('Function "cuKernelGetLibrary" not found')
 *     err = (<CUresult (*)(CUlibrary*, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetLibrary)(pLib, kernel)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3515
 *     return err
 * 
 * cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetLibrary
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelGetLibrary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3524
 *     return err
 * 
 * cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetGlobal
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetGlobal(CUdeviceptr *__pyx_v_dptr, size_t *__pyx_v_numbytes, CUlibrary __pyx_v_library, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetGlobal", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3526
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3526, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3527
 *     global __cuLibraryGetGlobal
 *     cuPythonInit()
 *     if __cuLibraryGetGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3528
 *     cuPythonInit()
 *     if __cuLibraryGetGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetGlobal)(dptr, numbytes, library, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3529
 *     if __cuLibraryGetGlobal == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetGlobal)(dptr, numbytes, library, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetGlobal_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3529, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3529, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3528
 *     cuPythonInit()
 *     if __cuLibraryGetGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetGlobal)(dptr, numbytes, library, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3527
 *     global __cuLibraryGetGlobal
 *     cuPythonInit()
 *     if __cuLibraryGetGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3530
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetGlobal)(dptr, numbytes, library, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, CUlibrary, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal)(__pyx_v_dptr, __pyx_v_numbytes, __pyx_v_library, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3530, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3531
 *             raise RuntimeError('Function "cuLibraryGetGlobal" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetGlobal)(dptr, numbytes, library, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3524
 *     return err
 * 
 * cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetGlobal
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3533
 *     return err
 * 
 * cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetManaged
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetManaged(CUdeviceptr *__pyx_v_dptr, size_t *__pyx_v_numbytes, CUlibrary __pyx_v_library, char const *__pyx_v_name) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetManaged", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3535
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3535, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3536
 *     global __cuLibraryGetManaged
 *     cuPythonInit()
 *     if __cuLibraryGetManaged == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3537
 *     cuPythonInit()
 *     if __cuLibraryGetManaged == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetManaged)(dptr, numbytes, library, name)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3538
 *     if __cuLibraryGetManaged == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetManaged)(dptr, numbytes, library, name)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetManaged_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3538, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3538, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3537
 *     cuPythonInit()
 *     if __cuLibraryGetManaged == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetManaged)(dptr, numbytes, library, name)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3536
 *     global __cuLibraryGetManaged
 *     cuPythonInit()
 *     if __cuLibraryGetManaged == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3539
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetManaged)(dptr, numbytes, library, name)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, CUlibrary, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged)(__pyx_v_dptr, __pyx_v_numbytes, __pyx_v_library, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3539, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3540
 *             raise RuntimeError('Function "cuLibraryGetManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetManaged)(dptr, numbytes, library, name)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3533
 *     return err
 * 
 * cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetManaged
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3542
 *     return err
 * 
 * cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetUnifiedFunction
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetUnifiedFunction(void **__pyx_v_fptr, CUlibrary __pyx_v_library, char const *__pyx_v_symbol) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLibraryGetUnifiedFunction", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3544
 * cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLibraryGetUnifiedFunction
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLibraryGetUnifiedFunction == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3544, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3545
 *     global __cuLibraryGetUnifiedFunction
 *     cuPythonInit()
 *     if __cuLibraryGetUnifiedFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3546
 *     cuPythonInit()
 *     if __cuLibraryGetUnifiedFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
 *     err = (<CUresult (*)(void**, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetUnifiedFunction)(fptr, library, symbol)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3547
 *     if __cuLibraryGetUnifiedFunction == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void**, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetUnifiedFunction)(fptr, library, symbol)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLibraryGetUnifiedFunc};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3547, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3547, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3546
 *     cuPythonInit()
 *     if __cuLibraryGetUnifiedFunction == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
 *     err = (<CUresult (*)(void**, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetUnifiedFunction)(fptr, library, symbol)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3545
 *     global __cuLibraryGetUnifiedFunction
 *     cuPythonInit()
 *     if __cuLibraryGetUnifiedFunction == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3548
 *         with gil:
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
 *     err = (<CUresult (*)(void**, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetUnifiedFunction)(fptr, library, symbol)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void **, CUlibrary, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction)(__pyx_v_fptr, __pyx_v_library, __pyx_v_symbol); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3548, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3549
 *             raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
 *     err = (<CUresult (*)(void**, CUlibrary, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLibraryGetUnifiedFunction)(fptr, library, symbol)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3542
 *     return err
 * 
 * cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetUnifiedFunction
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLibraryGetUnifiedFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3551
 *     return err
 * 
 * cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetAttribute(int *__pyx_v_pi, CUfunction_attribute __pyx_v_attrib, CUkernel __pyx_v_kernel, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3553
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3553, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3554
 *     global __cuKernelGetAttribute
 *     cuPythonInit()
 *     if __cuKernelGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3555
 *     cuPythonInit()
 *     if __cuKernelGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetAttribute)(pi, attrib, kernel, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3556
 *     if __cuKernelGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetAttribute)(pi, attrib, kernel, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelGetAttribute_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3556, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3556, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3555
 *     cuPythonInit()
 *     if __cuKernelGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetAttribute)(pi, attrib, kernel, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3554
 *     global __cuKernelGetAttribute
 *     cuPythonInit()
 *     if __cuKernelGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3557
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetAttribute)(pi, attrib, kernel, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction_attribute, CUkernel, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute)(__pyx_v_pi, __pyx_v_attrib, __pyx_v_kernel, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3557, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3558
 *             raise RuntimeError('Function "cuKernelGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetAttribute)(pi, attrib, kernel, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3551
 *     return err
 * 
 * cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3560
 *     return err
 * 
 * cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelSetAttribute(CUfunction_attribute __pyx_v_attrib, int __pyx_v_val, CUkernel __pyx_v_kernel, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3562
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3562, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3563
 *     global __cuKernelSetAttribute
 *     cuPythonInit()
 *     if __cuKernelSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3564
 *     cuPythonInit()
 *     if __cuKernelSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetAttribute)(attrib, val, kernel, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3565
 *     if __cuKernelSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetAttribute)(attrib, val, kernel, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelSetAttribute_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3565, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3565, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3564
 *     cuPythonInit()
 *     if __cuKernelSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetAttribute)(attrib, val, kernel, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3563
 *     global __cuKernelSetAttribute
 *     cuPythonInit()
 *     if __cuKernelSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3566
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetAttribute)(attrib, val, kernel, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute)(__pyx_v_attrib, __pyx_v_val, __pyx_v_kernel, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3566, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3567
 *             raise RuntimeError('Function "cuKernelSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction_attribute, int, CUkernel, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetAttribute)(attrib, val, kernel, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3560
 *     return err
 * 
 * cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3569
 *     return err
 * 
 * cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelSetCacheConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelSetCacheConfig(CUkernel __pyx_v_kernel, CUfunc_cache __pyx_v_config, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelSetCacheConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3571
 * cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuKernelSetCacheConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuKernelSetCacheConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3571, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3572
 *     global __cuKernelSetCacheConfig
 *     cuPythonInit()
 *     if __cuKernelSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3573
 *     cuPythonInit()
 *     if __cuKernelSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUkernel, CUfunc_cache, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetCacheConfig)(kernel, config, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3574
 *     if __cuKernelSetCacheConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUkernel, CUfunc_cache, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetCacheConfig)(kernel, config, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelSetCacheConfig};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3574, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3574, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3573
 *     cuPythonInit()
 *     if __cuKernelSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUkernel, CUfunc_cache, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetCacheConfig)(kernel, config, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3572
 *     global __cuKernelSetCacheConfig
 *     cuPythonInit()
 *     if __cuKernelSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3575
 *         with gil:
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUkernel, CUfunc_cache, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetCacheConfig)(kernel, config, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUkernel, CUfunc_cache, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig)(__pyx_v_kernel, __pyx_v_config, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3575, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3576
 *             raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUkernel, CUfunc_cache, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelSetCacheConfig)(kernel, config, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3569
 *     return err
 * 
 * cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelSetCacheConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3578
 *     return err
 * 
 * cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetName
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetName(char const **__pyx_v_name, CUkernel __pyx_v_hfunc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelGetName", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3580
 * cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuKernelGetName
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuKernelGetName == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3580, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3581
 *     global __cuKernelGetName
 *     cuPythonInit()
 *     if __cuKernelGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetName" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3582
 *     cuPythonInit()
 *     if __cuKernelGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetName" not found')
 *     err = (<CUresult (*)(const char**, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetName)(name, hfunc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3583
 *     if __cuKernelGetName == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetName" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const char**, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetName)(name, hfunc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelGetName_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3583, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3583, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3582
 *     cuPythonInit()
 *     if __cuKernelGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetName" not found')
 *     err = (<CUresult (*)(const char**, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetName)(name, hfunc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3581
 *     global __cuKernelGetName
 *     cuPythonInit()
 *     if __cuKernelGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetName" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3584
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetName" not found')
 *     err = (<CUresult (*)(const char**, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetName)(name, hfunc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char const **, CUkernel))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName)(__pyx_v_name, __pyx_v_hfunc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3584, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3585
 *             raise RuntimeError('Function "cuKernelGetName" not found')
 *     err = (<CUresult (*)(const char**, CUkernel) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetName)(name, hfunc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3578
 *     return err
 * 
 * cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetName
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelGetName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3587
 *     return err
 * 
 * cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetParamInfo
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetParamInfo(CUkernel __pyx_v_kernel, size_t __pyx_v_paramIndex, size_t *__pyx_v_paramOffset, size_t *__pyx_v_paramSize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuKernelGetParamInfo", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3589
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3589, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3590
 *     global __cuKernelGetParamInfo
 *     cuPythonInit()
 *     if __cuKernelGetParamInfo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3591
 *     cuPythonInit()
 *     if __cuKernelGetParamInfo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
 *     err = (<CUresult (*)(CUkernel, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3592
 *     if __cuKernelGetParamInfo == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUkernel, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuKernelGetParamInfo_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3592, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3592, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3591
 *     cuPythonInit()
 *     if __cuKernelGetParamInfo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
 *     err = (<CUresult (*)(CUkernel, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3590
 *     global __cuKernelGetParamInfo
 *     cuPythonInit()
 *     if __cuKernelGetParamInfo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3593
 *         with gil:
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
 *     err = (<CUresult (*)(CUkernel, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUkernel, size_t, size_t *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo)(__pyx_v_kernel, __pyx_v_paramIndex, __pyx_v_paramOffset, __pyx_v_paramSize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3593, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3594
 *             raise RuntimeError('Function "cuKernelGetParamInfo" not found')
 *     err = (<CUresult (*)(CUkernel, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3587
 *     return err
 * 
 * cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuKernelGetParamInfo
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuKernelGetParamInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3596
 *     return err
 * 
 * cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetInfo_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetInfo_v2(size_t *__pyx_v_free, size_t *__pyx_v_total) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetInfo_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3598
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3598, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3599
 *     global __cuMemGetInfo_v2
 *     cuPythonInit()
 *     if __cuMemGetInfo_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3600
 *     cuPythonInit()
 *     if __cuMemGetInfo_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
 *     err = (<CUresult (*)(size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetInfo_v2)(free, total)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3601
 *     if __cuMemGetInfo_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetInfo_v2)(free, total)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetInfo_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3601, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3601, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3600
 *     cuPythonInit()
 *     if __cuMemGetInfo_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
 *     err = (<CUresult (*)(size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetInfo_v2)(free, total)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3599
 *     global __cuMemGetInfo_v2
 *     cuPythonInit()
 *     if __cuMemGetInfo_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3602
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
 *     err = (<CUresult (*)(size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetInfo_v2)(free, total)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2)(__pyx_v_free, __pyx_v_total); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3602, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3603
 *             raise RuntimeError('Function "cuMemGetInfo_v2" not found')
 *     err = (<CUresult (*)(size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetInfo_v2)(free, total)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3596
 *     return err
 * 
 * cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetInfo_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetInfo_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3605
 *     return err
 * 
 * cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAlloc_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAlloc_v2(CUdeviceptr *__pyx_v_dptr, size_t __pyx_v_bytesize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAlloc_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3607
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3607, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3608
 *     global __cuMemAlloc_v2
 *     cuPythonInit()
 *     if __cuMemAlloc_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3609
 *     cuPythonInit()
 *     if __cuMemAlloc_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAlloc_v2)(dptr, bytesize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3610
 *     if __cuMemAlloc_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAlloc_v2)(dptr, bytesize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAlloc_v2_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3610, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3610, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3609
 *     cuPythonInit()
 *     if __cuMemAlloc_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAlloc_v2)(dptr, bytesize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3608
 *     global __cuMemAlloc_v2
 *     cuPythonInit()
 *     if __cuMemAlloc_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3611
 *         with gil:
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAlloc_v2)(dptr, bytesize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2)(__pyx_v_dptr, __pyx_v_bytesize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3611, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3612
 *             raise RuntimeError('Function "cuMemAlloc_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAlloc_v2)(dptr, bytesize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3605
 *     return err
 * 
 * cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAlloc_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAlloc_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3614
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocPitch_v2(CUdeviceptr *__pyx_v_dptr, size_t *__pyx_v_pPitch, size_t __pyx_v_WidthInBytes, size_t __pyx_v_Height, unsigned int __pyx_v_ElementSizeBytes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAllocPitch_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3616
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3616, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3617
 *     global __cuMemAllocPitch_v2
 *     cuPythonInit()
 *     if __cuMemAllocPitch_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3618
 *     cuPythonInit()
 *     if __cuMemAllocPitch_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3619
 *     if __cuMemAllocPitch_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAllocPitch_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3619, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3619, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3618
 *     cuPythonInit()
 *     if __cuMemAllocPitch_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3617
 *     global __cuMemAllocPitch_v2
 *     cuPythonInit()
 *     if __cuMemAllocPitch_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3620
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, size_t, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2)(__pyx_v_dptr, __pyx_v_pPitch, __pyx_v_WidthInBytes, __pyx_v_Height, __pyx_v_ElementSizeBytes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3620, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3621
 *             raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3614
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAllocPitch_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3623
 *     return err
 * 
 * cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFree_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFree_v2(CUdeviceptr __pyx_v_dptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemFree_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3625
 * cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemFree_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemFree_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3625, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3626
 *     global __cuMemFree_v2
 *     cuPythonInit()
 *     if __cuMemFree_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3627
 *     cuPythonInit()
 *     if __cuMemFree_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFree_v2)(dptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3628
 *     if __cuMemFree_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemFree_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFree_v2)(dptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemFree_v2_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3628, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3628, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3627
 *     cuPythonInit()
 *     if __cuMemFree_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFree_v2)(dptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3626
 *     global __cuMemFree_v2
 *     cuPythonInit()
 *     if __cuMemFree_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3629
 *         with gil:
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFree_v2)(dptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2)(__pyx_v_dptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3629, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3630
 *             raise RuntimeError('Function "cuMemFree_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFree_v2)(dptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3623
 *     return err
 * 
 * cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFree_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemFree_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3632
 *     return err
 * 
 * cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAddressRange_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAddressRange_v2(CUdeviceptr *__pyx_v_pbase, size_t *__pyx_v_psize, CUdeviceptr __pyx_v_dptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetAddressRange_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3634
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3634, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3635
 *     global __cuMemGetAddressRange_v2
 *     cuPythonInit()
 *     if __cuMemGetAddressRange_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3636
 *     cuPythonInit()
 *     if __cuMemGetAddressRange_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAddressRange_v2)(pbase, psize, dptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3637
 *     if __cuMemGetAddressRange_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAddressRange_v2)(pbase, psize, dptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetAddressRange_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3637, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3637, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3636
 *     cuPythonInit()
 *     if __cuMemGetAddressRange_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAddressRange_v2)(pbase, psize, dptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3635
 *     global __cuMemGetAddressRange_v2
 *     cuPythonInit()
 *     if __cuMemGetAddressRange_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3638
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAddressRange_v2)(pbase, psize, dptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2)(__pyx_v_pbase, __pyx_v_psize, __pyx_v_dptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3638, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3639
 *             raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAddressRange_v2)(pbase, psize, dptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3632
 *     return err
 * 
 * cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAddressRange_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetAddressRange_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3641
 *     return err
 * 
 * cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocHost_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocHost_v2(void **__pyx_v_pp, size_t __pyx_v_bytesize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAllocHost_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3643
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3643, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3644
 *     global __cuMemAllocHost_v2
 *     cuPythonInit()
 *     if __cuMemAllocHost_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3645
 *     cuPythonInit()
 *     if __cuMemAllocHost_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
 *     err = (<CUresult (*)(void**, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocHost_v2)(pp, bytesize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3646
 *     if __cuMemAllocHost_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void**, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocHost_v2)(pp, bytesize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAllocHost_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3646, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3646, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3645
 *     cuPythonInit()
 *     if __cuMemAllocHost_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
 *     err = (<CUresult (*)(void**, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocHost_v2)(pp, bytesize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3644
 *     global __cuMemAllocHost_v2
 *     cuPythonInit()
 *     if __cuMemAllocHost_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3647
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
 *     err = (<CUresult (*)(void**, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocHost_v2)(pp, bytesize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void **, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2)(__pyx_v_pp, __pyx_v_bytesize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3647, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3648
 *             raise RuntimeError('Function "cuMemAllocHost_v2" not found')
 *     err = (<CUresult (*)(void**, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocHost_v2)(pp, bytesize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3641
 *     return err
 * 
 * cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocHost_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAllocHost_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3650
 *     return err
 * 
 * cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFreeHost
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFreeHost(void *__pyx_v_p) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemFreeHost", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3652
 * cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemFreeHost
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemFreeHost == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3652, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3653
 *     global __cuMemFreeHost
 *     cuPythonInit()
 *     if __cuMemFreeHost == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3654
 *     cuPythonInit()
 *     if __cuMemFreeHost == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeHost)(p)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3655
 *     if __cuMemFreeHost == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeHost" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeHost)(p)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemFreeHost_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3655, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3655, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3654
 *     cuPythonInit()
 *     if __cuMemFreeHost == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeHost)(p)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3653
 *     global __cuMemFreeHost
 *     cuPythonInit()
 *     if __cuMemFreeHost == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3656
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeHost)(p)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost)(__pyx_v_p); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3656, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3657
 *             raise RuntimeError('Function "cuMemFreeHost" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeHost)(p)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3650
 *     return err
 * 
 * cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFreeHost
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemFreeHost", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3659
 *     return err
 * 
 * cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostAlloc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostAlloc(void **__pyx_v_pp, size_t __pyx_v_bytesize, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemHostAlloc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3661
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3661, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3662
 *     global __cuMemHostAlloc
 *     cuPythonInit()
 *     if __cuMemHostAlloc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3663
 *     cuPythonInit()
 *     if __cuMemHostAlloc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
 *     err = (<CUresult (*)(void**, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostAlloc)(pp, bytesize, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3664
 *     if __cuMemHostAlloc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void**, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostAlloc)(pp, bytesize, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemHostAlloc_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3664, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3664, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3663
 *     cuPythonInit()
 *     if __cuMemHostAlloc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
 *     err = (<CUresult (*)(void**, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostAlloc)(pp, bytesize, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3662
 *     global __cuMemHostAlloc
 *     cuPythonInit()
 *     if __cuMemHostAlloc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3665
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
 *     err = (<CUresult (*)(void**, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostAlloc)(pp, bytesize, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void **, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc)(__pyx_v_pp, __pyx_v_bytesize, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3665, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3666
 *             raise RuntimeError('Function "cuMemHostAlloc" not found')
 *     err = (<CUresult (*)(void**, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostAlloc)(pp, bytesize, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3659
 *     return err
 * 
 * cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostAlloc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemHostAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3668
 *     return err
 * 
 * cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetDevicePointer_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostGetDevicePointer_v2(CUdeviceptr *__pyx_v_pdptr, void *__pyx_v_p, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemHostGetDevicePointer_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3670
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3670, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3671
 *     global __cuMemHostGetDevicePointer_v2
 *     cuPythonInit()
 *     if __cuMemHostGetDevicePointer_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3672
 *     cuPythonInit()
 *     if __cuMemHostGetDevicePointer_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3673
 *     if __cuMemHostGetDevicePointer_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemHostGetDevicePoint};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3673, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3673, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3672
 *     cuPythonInit()
 *     if __cuMemHostGetDevicePointer_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3671
 *     global __cuMemHostGetDevicePointer_v2
 *     cuPythonInit()
 *     if __cuMemHostGetDevicePointer_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3674
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, void *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2)(__pyx_v_pdptr, __pyx_v_p, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3674, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3675
 *             raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3668
 *     return err
 * 
 * cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetDevicePointer_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemHostGetDevicePointer_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3677
 *     return err
 * 
 * cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostGetFlags(unsigned int *__pyx_v_pFlags, void *__pyx_v_p) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemHostGetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3679
 * cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemHostGetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemHostGetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3679, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3680
 *     global __cuMemHostGetFlags
 *     cuPythonInit()
 *     if __cuMemHostGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3681
 *     cuPythonInit()
 *     if __cuMemHostGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetFlags)(pFlags, p)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3682
 *     if __cuMemHostGetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetFlags)(pFlags, p)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemHostGetFlags_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3682, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3682, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3681
 *     cuPythonInit()
 *     if __cuMemHostGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetFlags)(pFlags, p)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3680
 *     global __cuMemHostGetFlags
 *     cuPythonInit()
 *     if __cuMemHostGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3683
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetFlags)(pFlags, p)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags)(__pyx_v_pFlags, __pyx_v_p); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3683, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3684
 *             raise RuntimeError('Function "cuMemHostGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostGetFlags)(pFlags, p)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3677
 *     return err
 * 
 * cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemHostGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3686
 *     return err
 * 
 * cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocManaged
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocManaged(CUdeviceptr *__pyx_v_dptr, size_t __pyx_v_bytesize, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAllocManaged", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3688
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3688, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3689
 *     global __cuMemAllocManaged
 *     cuPythonInit()
 *     if __cuMemAllocManaged == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3690
 *     cuPythonInit()
 *     if __cuMemAllocManaged == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocManaged)(dptr, bytesize, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3691
 *     if __cuMemAllocManaged == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocManaged)(dptr, bytesize, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAllocManaged_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3691, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3691, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3690
 *     cuPythonInit()
 *     if __cuMemAllocManaged == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocManaged)(dptr, bytesize, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3689
 *     global __cuMemAllocManaged
 *     cuPythonInit()
 *     if __cuMemAllocManaged == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3692
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocManaged)(dptr, bytesize, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged)(__pyx_v_dptr, __pyx_v_bytesize, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3692, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3693
 *             raise RuntimeError('Function "cuMemAllocManaged" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocManaged)(dptr, bytesize, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3686
 *     return err
 * 
 * cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocManaged
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAllocManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3695
 *     return err
 * 
 * cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceRegisterAsyncNotification
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceRegisterAsyncNotification(CUdevice __pyx_v_device, CUasyncCallback __pyx_v_callbackFunc, void *__pyx_v_userData, CUasyncCallbackHandle *__pyx_v_callback) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceRegisterAsyncNotification", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3697
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3697, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3698
 *     global __cuDeviceRegisterAsyncNotification
 *     cuPythonInit()
 *     if __cuDeviceRegisterAsyncNotification == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3699
 *     cuPythonInit()
 *     if __cuDeviceRegisterAsyncNotification == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallback, void*, CUasyncCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3700
 *     if __cuDeviceRegisterAsyncNotification == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUasyncCallback, void*, CUasyncCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceRegisterAsyncNo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3700, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3700, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3699
 *     cuPythonInit()
 *     if __cuDeviceRegisterAsyncNotification == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallback, void*, CUasyncCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3698
 *     global __cuDeviceRegisterAsyncNotification
 *     cuPythonInit()
 *     if __cuDeviceRegisterAsyncNotification == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3701
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallback, void*, CUasyncCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUasyncCallback, void *, CUasyncCallbackHandle *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification)(__pyx_v_device, __pyx_v_callbackFunc, __pyx_v_userData, __pyx_v_callback); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3701, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3702
 *             raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallback, void*, CUasyncCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3695
 *     return err
 * 
 * cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceRegisterAsyncNotification
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceRegisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3704
 *     return err
 * 
 * cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceUnregisterAsyncNotification
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceUnregisterAsyncNotification(CUdevice __pyx_v_device, CUasyncCallbackHandle __pyx_v_callback) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceUnregisterAsyncNotification", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3706
 * cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceUnregisterAsyncNotification
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceUnregisterAsyncNotification == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3706, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3707
 *     global __cuDeviceUnregisterAsyncNotification
 *     cuPythonInit()
 *     if __cuDeviceUnregisterAsyncNotification == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3708
 *     cuPythonInit()
 *     if __cuDeviceUnregisterAsyncNotification == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceUnregisterAsyncNotification)(device, callback)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3709
 *     if __cuDeviceUnregisterAsyncNotification == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUasyncCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceUnregisterAsyncNotification)(device, callback)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceUnregisterAsync};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3709, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3709, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3708
 *     cuPythonInit()
 *     if __cuDeviceUnregisterAsyncNotification == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceUnregisterAsyncNotification)(device, callback)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3707
 *     global __cuDeviceUnregisterAsyncNotification
 *     cuPythonInit()
 *     if __cuDeviceUnregisterAsyncNotification == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3710
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceUnregisterAsyncNotification)(device, callback)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUasyncCallbackHandle))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification)(__pyx_v_device, __pyx_v_callback); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3710, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3711
 *             raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
 *     err = (<CUresult (*)(CUdevice, CUasyncCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceUnregisterAsyncNotification)(device, callback)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3704
 *     return err
 * 
 * cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceUnregisterAsyncNotification
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceUnregisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3713
 *     return err
 * 
 * cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetByPCIBusId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetByPCIBusId(CUdevice *__pyx_v_dev, char const *__pyx_v_pciBusId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetByPCIBusId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3715
 * cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetByPCIBusId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetByPCIBusId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3715, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3716
 *     global __cuDeviceGetByPCIBusId
 *     cuPythonInit()
 *     if __cuDeviceGetByPCIBusId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3717
 *     cuPythonInit()
 *     if __cuDeviceGetByPCIBusId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
 *     err = (<CUresult (*)(CUdevice*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetByPCIBusId)(dev, pciBusId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3718
 *     if __cuDeviceGetByPCIBusId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetByPCIBusId)(dev, pciBusId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetByPCIBusId_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3718, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3718, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3717
 *     cuPythonInit()
 *     if __cuDeviceGetByPCIBusId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
 *     err = (<CUresult (*)(CUdevice*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetByPCIBusId)(dev, pciBusId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3716
 *     global __cuDeviceGetByPCIBusId
 *     cuPythonInit()
 *     if __cuDeviceGetByPCIBusId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3719
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
 *     err = (<CUresult (*)(CUdevice*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetByPCIBusId)(dev, pciBusId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice *, char const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId)(__pyx_v_dev, __pyx_v_pciBusId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3719, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3720
 *             raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
 *     err = (<CUresult (*)(CUdevice*, const char*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetByPCIBusId)(dev, pciBusId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3713
 *     return err
 * 
 * cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetByPCIBusId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetByPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3722
 *     return err
 * 
 * cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetPCIBusId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetPCIBusId(char *__pyx_v_pciBusId, int __pyx_v_length, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetPCIBusId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3724
 * cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetPCIBusId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetPCIBusId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3724, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3725
 *     global __cuDeviceGetPCIBusId
 *     cuPythonInit()
 *     if __cuDeviceGetPCIBusId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3726
 *     cuPythonInit()
 *     if __cuDeviceGetPCIBusId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetPCIBusId)(pciBusId, length, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3727
 *     if __cuDeviceGetPCIBusId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetPCIBusId)(pciBusId, length, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetPCIBusId_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3727, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3727, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3726
 *     cuPythonInit()
 *     if __cuDeviceGetPCIBusId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetPCIBusId)(pciBusId, length, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3725
 *     global __cuDeviceGetPCIBusId
 *     cuPythonInit()
 *     if __cuDeviceGetPCIBusId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3728
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetPCIBusId)(pciBusId, length, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char *, int, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId)(__pyx_v_pciBusId, __pyx_v_length, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3728, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3729
 *             raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
 *     err = (<CUresult (*)(char*, int, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetPCIBusId)(pciBusId, length, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3722
 *     return err
 * 
 * cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetPCIBusId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3731
 *     return err
 * 
 * cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcGetEventHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcGetEventHandle(CUipcEventHandle *__pyx_v_pHandle, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuIpcGetEventHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3733
 * cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuIpcGetEventHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuIpcGetEventHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3733, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3734
 *     global __cuIpcGetEventHandle
 *     cuPythonInit()
 *     if __cuIpcGetEventHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3735
 *     cuPythonInit()
 *     if __cuIpcGetEventHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
 *     err = (<CUresult (*)(CUipcEventHandle*, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetEventHandle)(pHandle, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3736
 *     if __cuIpcGetEventHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUipcEventHandle*, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetEventHandle)(pHandle, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuIpcGetEventHandle_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3736, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3736, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3735
 *     cuPythonInit()
 *     if __cuIpcGetEventHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
 *     err = (<CUresult (*)(CUipcEventHandle*, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetEventHandle)(pHandle, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3734
 *     global __cuIpcGetEventHandle
 *     cuPythonInit()
 *     if __cuIpcGetEventHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3737
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
 *     err = (<CUresult (*)(CUipcEventHandle*, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetEventHandle)(pHandle, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUipcEventHandle *, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle)(__pyx_v_pHandle, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3737, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3738
 *             raise RuntimeError('Function "cuIpcGetEventHandle" not found')
 *     err = (<CUresult (*)(CUipcEventHandle*, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetEventHandle)(pHandle, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3731
 *     return err
 * 
 * cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcGetEventHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuIpcGetEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3740
 *     return err
 * 
 * cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenEventHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcOpenEventHandle(CUevent *__pyx_v_phEvent, CUipcEventHandle __pyx_v_handle) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuIpcOpenEventHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3742
 * cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuIpcOpenEventHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuIpcOpenEventHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3742, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3743
 *     global __cuIpcOpenEventHandle
 *     cuPythonInit()
 *     if __cuIpcOpenEventHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3744
 *     cuPythonInit()
 *     if __cuIpcOpenEventHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
 *     err = (<CUresult (*)(CUevent*, CUipcEventHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenEventHandle)(phEvent, handle)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3745
 *     if __cuIpcOpenEventHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent*, CUipcEventHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenEventHandle)(phEvent, handle)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuIpcOpenEventHandle_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3745, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3745, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3744
 *     cuPythonInit()
 *     if __cuIpcOpenEventHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
 *     err = (<CUresult (*)(CUevent*, CUipcEventHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenEventHandle)(phEvent, handle)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3743
 *     global __cuIpcOpenEventHandle
 *     cuPythonInit()
 *     if __cuIpcOpenEventHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3746
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
 *     err = (<CUresult (*)(CUevent*, CUipcEventHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenEventHandle)(phEvent, handle)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent *, CUipcEventHandle))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle)(__pyx_v_phEvent, __pyx_v_handle); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3746, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3747
 *             raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
 *     err = (<CUresult (*)(CUevent*, CUipcEventHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenEventHandle)(phEvent, handle)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3740
 *     return err
 * 
 * cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenEventHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuIpcOpenEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3749
 *     return err
 * 
 * cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcGetMemHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcGetMemHandle(CUipcMemHandle *__pyx_v_pHandle, CUdeviceptr __pyx_v_dptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuIpcGetMemHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3751
 * cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuIpcGetMemHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuIpcGetMemHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3751, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3752
 *     global __cuIpcGetMemHandle
 *     cuPythonInit()
 *     if __cuIpcGetMemHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3753
 *     cuPythonInit()
 *     if __cuIpcGetMemHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
 *     err = (<CUresult (*)(CUipcMemHandle*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetMemHandle)(pHandle, dptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3754
 *     if __cuIpcGetMemHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUipcMemHandle*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetMemHandle)(pHandle, dptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuIpcGetMemHandle_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3754, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3754, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3753
 *     cuPythonInit()
 *     if __cuIpcGetMemHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
 *     err = (<CUresult (*)(CUipcMemHandle*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetMemHandle)(pHandle, dptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3752
 *     global __cuIpcGetMemHandle
 *     cuPythonInit()
 *     if __cuIpcGetMemHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3755
 *         with gil:
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
 *     err = (<CUresult (*)(CUipcMemHandle*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetMemHandle)(pHandle, dptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUipcMemHandle *, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle)(__pyx_v_pHandle, __pyx_v_dptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3755, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3756
 *             raise RuntimeError('Function "cuIpcGetMemHandle" not found')
 *     err = (<CUresult (*)(CUipcMemHandle*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcGetMemHandle)(pHandle, dptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3749
 *     return err
 * 
 * cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcGetMemHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuIpcGetMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3758
 *     return err
 * 
 * cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenMemHandle_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcOpenMemHandle_v2(CUdeviceptr *__pyx_v_pdptr, CUipcMemHandle __pyx_v_handle, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuIpcOpenMemHandle_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3760
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3760, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3761
 *     global __cuIpcOpenMemHandle_v2
 *     cuPythonInit()
 *     if __cuIpcOpenMemHandle_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3762
 *     cuPythonInit()
 *     if __cuIpcOpenMemHandle_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUipcMemHandle, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3763
 *     if __cuIpcOpenMemHandle_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, CUipcMemHandle, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuIpcOpenMemHandle_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3763, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3763, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3762
 *     cuPythonInit()
 *     if __cuIpcOpenMemHandle_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUipcMemHandle, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3761
 *     global __cuIpcOpenMemHandle_v2
 *     cuPythonInit()
 *     if __cuIpcOpenMemHandle_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3764
 *         with gil:
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUipcMemHandle, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, CUipcMemHandle, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2)(__pyx_v_pdptr, __pyx_v_handle, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3764, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3765
 *             raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUipcMemHandle, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3758
 *     return err
 * 
 * cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenMemHandle_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuIpcOpenMemHandle_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3767
 *     return err
 * 
 * cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcCloseMemHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcCloseMemHandle(CUdeviceptr __pyx_v_dptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuIpcCloseMemHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3769
 * cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuIpcCloseMemHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuIpcCloseMemHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3769, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3770
 *     global __cuIpcCloseMemHandle
 *     cuPythonInit()
 *     if __cuIpcCloseMemHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3771
 *     cuPythonInit()
 *     if __cuIpcCloseMemHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcCloseMemHandle)(dptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3772
 *     if __cuIpcCloseMemHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcCloseMemHandle)(dptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuIpcCloseMemHandle_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3772, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3772, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3771
 *     cuPythonInit()
 *     if __cuIpcCloseMemHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcCloseMemHandle)(dptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3770
 *     global __cuIpcCloseMemHandle
 *     cuPythonInit()
 *     if __cuIpcCloseMemHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3773
 *         with gil:
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcCloseMemHandle)(dptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle)(__pyx_v_dptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3773, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3774
 *             raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
 *     err = (<CUresult (*)(CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuIpcCloseMemHandle)(dptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3767
 *     return err
 * 
 * cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuIpcCloseMemHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuIpcCloseMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3776
 *     return err
 * 
 * cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostRegister_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostRegister_v2(void *__pyx_v_p, size_t __pyx_v_bytesize, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemHostRegister_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3778
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3778, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3779
 *     global __cuMemHostRegister_v2
 *     cuPythonInit()
 *     if __cuMemHostRegister_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3780
 *     cuPythonInit()
 *     if __cuMemHostRegister_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
 *     err = (<CUresult (*)(void*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostRegister_v2)(p, bytesize, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3781
 *     if __cuMemHostRegister_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostRegister_v2)(p, bytesize, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemHostRegister_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3781, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3781, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3780
 *     cuPythonInit()
 *     if __cuMemHostRegister_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
 *     err = (<CUresult (*)(void*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostRegister_v2)(p, bytesize, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3779
 *     global __cuMemHostRegister_v2
 *     cuPythonInit()
 *     if __cuMemHostRegister_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3782
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
 *     err = (<CUresult (*)(void*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostRegister_v2)(p, bytesize, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2)(__pyx_v_p, __pyx_v_bytesize, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3782, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3783
 *             raise RuntimeError('Function "cuMemHostRegister_v2" not found')
 *     err = (<CUresult (*)(void*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostRegister_v2)(p, bytesize, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3776
 *     return err
 * 
 * cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostRegister_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemHostRegister_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3785
 *     return err
 * 
 * cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostUnregister
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostUnregister(void *__pyx_v_p) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemHostUnregister", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3787
 * cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemHostUnregister
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemHostUnregister == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3787, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3788
 *     global __cuMemHostUnregister
 *     cuPythonInit()
 *     if __cuMemHostUnregister == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3789
 *     cuPythonInit()
 *     if __cuMemHostUnregister == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostUnregister)(p)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3790
 *     if __cuMemHostUnregister == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostUnregister)(p)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemHostUnregister_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3790, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3790, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3789
 *     cuPythonInit()
 *     if __cuMemHostUnregister == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostUnregister)(p)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3788
 *     global __cuMemHostUnregister
 *     cuPythonInit()
 *     if __cuMemHostUnregister == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3791
 *         with gil:
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostUnregister)(p)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister)(__pyx_v_p); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3791, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3792
 *             raise RuntimeError('Function "cuMemHostUnregister" not found')
 *     err = (<CUresult (*)(void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemHostUnregister)(p)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3785
 *     return err
 * 
 * cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemHostUnregister
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemHostUnregister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3794
 *     return err
 * 
 * cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy(CUdeviceptr __pyx_v_dst, CUdeviceptr __pyx_v_src, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3796
 * cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3796, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3797
 *     global __cuMemcpy
 *     cuPythonInit()
 *     if __cuMemcpy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3798
 *     cuPythonInit()
 *     if __cuMemcpy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy)(dst, src, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3799
 *     if __cuMemcpy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy)(dst, src, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3799, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3799, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3798
 *     cuPythonInit()
 *     if __cuMemcpy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy)(dst, src, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3797
 *     global __cuMemcpy
 *     cuPythonInit()
 *     if __cuMemcpy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3800
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy)(dst, src, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy)(__pyx_v_dst, __pyx_v_src, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3800, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3801
 *             raise RuntimeError('Function "cuMemcpy" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy)(dst, src, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3794
 *     return err
 * 
 * cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3803
 *     return err
 * 
 * cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyPeer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyPeer(CUdeviceptr __pyx_v_dstDevice, CUcontext __pyx_v_dstContext, CUdeviceptr __pyx_v_srcDevice, CUcontext __pyx_v_srcContext, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyPeer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3805
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3805, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3806
 *     global __cuMemcpyPeer
 *     cuPythonInit()
 *     if __cuMemcpyPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3807
 *     cuPythonInit()
 *     if __cuMemcpyPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3808
 *     if __cuMemcpyPeer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyPeer_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3808, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3808, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3807
 *     cuPythonInit()
 *     if __cuMemcpyPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3806
 *     global __cuMemcpyPeer
 *     cuPythonInit()
 *     if __cuMemcpyPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3809
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer)(__pyx_v_dstDevice, __pyx_v_dstContext, __pyx_v_srcDevice, __pyx_v_srcContext, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3809, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3810
 *             raise RuntimeError('Function "cuMemcpyPeer" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3803
 *     return err
 * 
 * cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyPeer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3812
 *     return err
 * 
 * cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoD_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoD_v2(CUdeviceptr __pyx_v_dstDevice, void const *__pyx_v_srcHost, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyHtoD_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3814
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3814, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3815
 *     global __cuMemcpyHtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3816
 *     cuPythonInit()
 *     if __cuMemcpyHtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3817
 *     if __cuMemcpyHtoD_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyHtoD_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3817, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3817, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3816
 *     cuPythonInit()
 *     if __cuMemcpyHtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3815
 *     global __cuMemcpyHtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3818
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, void const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2)(__pyx_v_dstDevice, __pyx_v_srcHost, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3818, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3819
 *             raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3812
 *     return err
 * 
 * cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoD_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyHtoD_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3821
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoH_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoH_v2(void *__pyx_v_dstHost, CUdeviceptr __pyx_v_srcDevice, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyDtoH_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3823
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3823, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3824
 *     global __cuMemcpyDtoH_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoH_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3825
 *     cuPythonInit()
 *     if __cuMemcpyDtoH_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3826
 *     if __cuMemcpyDtoH_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyDtoH_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3826, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3826, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3825
 *     cuPythonInit()
 *     if __cuMemcpyDtoH_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3824
 *     global __cuMemcpyDtoH_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoH_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3827
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2)(__pyx_v_dstHost, __pyx_v_srcDevice, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3827, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3828
 *             raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3821
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoH_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyDtoH_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3830
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoD_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoD_v2(CUdeviceptr __pyx_v_dstDevice, CUdeviceptr __pyx_v_srcDevice, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyDtoD_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3832
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3832, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3833
 *     global __cuMemcpyDtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3834
 *     cuPythonInit()
 *     if __cuMemcpyDtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3835
 *     if __cuMemcpyDtoD_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyDtoD_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3835, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3835, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3834
 *     cuPythonInit()
 *     if __cuMemcpyDtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3833
 *     global __cuMemcpyDtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3836
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2)(__pyx_v_dstDevice, __pyx_v_srcDevice, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3836, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3837
 *             raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3830
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoD_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyDtoD_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3839
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoA_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoA_v2(CUarray __pyx_v_dstArray, size_t __pyx_v_dstOffset, CUdeviceptr __pyx_v_srcDevice, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyDtoA_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3841
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3841, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3842
 *     global __cuMemcpyDtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3843
 *     cuPythonInit()
 *     if __cuMemcpyDtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3844
 *     if __cuMemcpyDtoA_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyDtoA_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3844, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3844, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3843
 *     cuPythonInit()
 *     if __cuMemcpyDtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3842
 *     global __cuMemcpyDtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3845
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray, size_t, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2)(__pyx_v_dstArray, __pyx_v_dstOffset, __pyx_v_srcDevice, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3845, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3846
 *             raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3839
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoA_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyDtoA_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3848
 *     return err
 * 
 * cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoD_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoD_v2(CUdeviceptr __pyx_v_dstDevice, CUarray __pyx_v_srcArray, size_t __pyx_v_srcOffset, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyAtoD_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3850
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3850, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3851
 *     global __cuMemcpyAtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3852
 *     cuPythonInit()
 *     if __cuMemcpyAtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3853
 *     if __cuMemcpyAtoD_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyAtoD_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3853, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3853, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3852
 *     cuPythonInit()
 *     if __cuMemcpyAtoD_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3851
 *     global __cuMemcpyAtoD_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoD_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3854
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUarray, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2)(__pyx_v_dstDevice, __pyx_v_srcArray, __pyx_v_srcOffset, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3854, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3855
 *             raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3848
 *     return err
 * 
 * cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoD_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyAtoD_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3857
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoA_v2(CUarray __pyx_v_dstArray, size_t __pyx_v_dstOffset, void const *__pyx_v_srcHost, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyHtoA_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3859
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3859, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3860
 *     global __cuMemcpyHtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3861
 *     cuPythonInit()
 *     if __cuMemcpyHtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3862
 *     if __cuMemcpyHtoA_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyHtoA_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3862, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3862, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3861
 *     cuPythonInit()
 *     if __cuMemcpyHtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3860
 *     global __cuMemcpyHtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3863
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray, size_t, void const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2)(__pyx_v_dstArray, __pyx_v_dstOffset, __pyx_v_srcHost, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3863, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3864
 *             raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3857
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyHtoA_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3866
 *     return err
 * 
 * cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoH_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoH_v2(void *__pyx_v_dstHost, CUarray __pyx_v_srcArray, size_t __pyx_v_srcOffset, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyAtoH_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3868
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3868, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3869
 *     global __cuMemcpyAtoH_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoH_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3870
 *     cuPythonInit()
 *     if __cuMemcpyAtoH_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3871
 *     if __cuMemcpyAtoH_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyAtoH_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3871, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3871, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3870
 *     cuPythonInit()
 *     if __cuMemcpyAtoH_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3869
 *     global __cuMemcpyAtoH_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoH_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3872
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUarray, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2)(__pyx_v_dstHost, __pyx_v_srcArray, __pyx_v_srcOffset, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3872, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3873
 *             raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3866
 *     return err
 * 
 * cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoH_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyAtoH_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3875
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoA_v2(CUarray __pyx_v_dstArray, size_t __pyx_v_dstOffset, CUarray __pyx_v_srcArray, size_t __pyx_v_srcOffset, size_t __pyx_v_ByteCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyAtoA_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3877
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3877, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3878
 *     global __cuMemcpyAtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3879
 *     cuPythonInit()
 *     if __cuMemcpyAtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3880
 *     if __cuMemcpyAtoA_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray, size_t, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyAtoA_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3880, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3880, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3879
 *     cuPythonInit()
 *     if __cuMemcpyAtoA_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3878
 *     global __cuMemcpyAtoA_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoA_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3881
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray, size_t, CUarray, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2)(__pyx_v_dstArray, __pyx_v_dstOffset, __pyx_v_srcArray, __pyx_v_srcOffset, __pyx_v_ByteCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3881, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3882
 *             raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, CUarray, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3875
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyAtoA_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3884
 *     return err
 * 
 * cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2D_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2D_v2(CUDA_MEMCPY2D const *__pyx_v_pCopy) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy2D_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3886
 * cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy2D_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy2D_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3886, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3887
 *     global __cuMemcpy2D_v2
 *     cuPythonInit()
 *     if __cuMemcpy2D_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3888
 *     cuPythonInit()
 *     if __cuMemcpy2D_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2D_v2)(pCopy)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3889
 *     if __cuMemcpy2D_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2D_v2)(pCopy)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy2D_v2_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3889, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3889, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3888
 *     cuPythonInit()
 *     if __cuMemcpy2D_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2D_v2)(pCopy)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3887
 *     global __cuMemcpy2D_v2
 *     cuPythonInit()
 *     if __cuMemcpy2D_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3890
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2D_v2)(pCopy)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY2D const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2)(__pyx_v_pCopy); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3890, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3891
 *             raise RuntimeError('Function "cuMemcpy2D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2D_v2)(pCopy)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3884
 *     return err
 * 
 * cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2D_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy2D_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3893
 *     return err
 * 
 * cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DUnaligned_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2DUnaligned_v2(CUDA_MEMCPY2D const *__pyx_v_pCopy) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy2DUnaligned_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3895
 * cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy2DUnaligned_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy2DUnaligned_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3895, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3896
 *     global __cuMemcpy2DUnaligned_v2
 *     cuPythonInit()
 *     if __cuMemcpy2DUnaligned_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3897
 *     cuPythonInit()
 *     if __cuMemcpy2DUnaligned_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DUnaligned_v2)(pCopy)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3898
 *     if __cuMemcpy2DUnaligned_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DUnaligned_v2)(pCopy)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy2DUnaligned_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3898, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3898, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3897
 *     cuPythonInit()
 *     if __cuMemcpy2DUnaligned_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DUnaligned_v2)(pCopy)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3896
 *     global __cuMemcpy2DUnaligned_v2
 *     cuPythonInit()
 *     if __cuMemcpy2DUnaligned_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3899
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DUnaligned_v2)(pCopy)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY2D const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2)(__pyx_v_pCopy); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3899, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3900
 *             raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DUnaligned_v2)(pCopy)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3893
 *     return err
 * 
 * cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DUnaligned_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy2DUnaligned_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3902
 *     return err
 * 
 * cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3D_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3D_v2(CUDA_MEMCPY3D const *__pyx_v_pCopy) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy3D_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3904
 * cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy3D_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy3D_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3904, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3905
 *     global __cuMemcpy3D_v2
 *     cuPythonInit()
 *     if __cuMemcpy3D_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3906
 *     cuPythonInit()
 *     if __cuMemcpy3D_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3D_v2)(pCopy)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3907
 *     if __cuMemcpy3D_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3D_v2)(pCopy)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy3D_v2_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3907, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3907, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3906
 *     cuPythonInit()
 *     if __cuMemcpy3D_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3D_v2)(pCopy)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3905
 *     global __cuMemcpy3D_v2
 *     cuPythonInit()
 *     if __cuMemcpy3D_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3908
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3D_v2)(pCopy)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY3D const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2)(__pyx_v_pCopy); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3908, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3909
 *             raise RuntimeError('Function "cuMemcpy3D_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3D_v2)(pCopy)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3902
 *     return err
 * 
 * cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3D_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy3D_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3911
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DPeer(CUDA_MEMCPY3D_PEER const *__pyx_v_pCopy) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy3DPeer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3913
 * cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy3DPeer
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy3DPeer == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3913, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3914
 *     global __cuMemcpy3DPeer
 *     cuPythonInit()
 *     if __cuMemcpy3DPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3915
 *     cuPythonInit()
 *     if __cuMemcpy3DPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeer)(pCopy)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3916
 *     if __cuMemcpy3DPeer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeer)(pCopy)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy3DPeer_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3916, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3916, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3915
 *     cuPythonInit()
 *     if __cuMemcpy3DPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeer)(pCopy)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3914
 *     global __cuMemcpy3DPeer
 *     cuPythonInit()
 *     if __cuMemcpy3DPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3917
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeer)(pCopy)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY3D_PEER const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer)(__pyx_v_pCopy); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3917, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3918
 *             raise RuntimeError('Function "cuMemcpy3DPeer" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeer)(pCopy)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3911
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy3DPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3920
 *     return err
 * 
 * cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAsync(CUdeviceptr __pyx_v_dst, CUdeviceptr __pyx_v_src, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3922
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3922, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3923
 *     global __cuMemcpyAsync
 *     cuPythonInit()
 *     if __cuMemcpyAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3924
 *     cuPythonInit()
 *     if __cuMemcpyAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAsync)(dst, src, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3925
 *     if __cuMemcpyAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAsync)(dst, src, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyAsync_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3925, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3925, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3924
 *     cuPythonInit()
 *     if __cuMemcpyAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAsync)(dst, src, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3923
 *     global __cuMemcpyAsync
 *     cuPythonInit()
 *     if __cuMemcpyAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3926
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAsync)(dst, src, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync)(__pyx_v_dst, __pyx_v_src, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3926, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3927
 *             raise RuntimeError('Function "cuMemcpyAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAsync)(dst, src, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3920
 *     return err
 * 
 * cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3929
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyPeerAsync(CUdeviceptr __pyx_v_dstDevice, CUcontext __pyx_v_dstContext, CUdeviceptr __pyx_v_srcDevice, CUcontext __pyx_v_srcContext, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyPeerAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3931
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3931, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3932
 *     global __cuMemcpyPeerAsync
 *     cuPythonInit()
 *     if __cuMemcpyPeerAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3933
 *     cuPythonInit()
 *     if __cuMemcpyPeerAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3934
 *     if __cuMemcpyPeerAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyPeerAsync_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3934, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3934, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3933
 *     cuPythonInit()
 *     if __cuMemcpyPeerAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3932
 *     global __cuMemcpyPeerAsync
 *     cuPythonInit()
 *     if __cuMemcpyPeerAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3935
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync)(__pyx_v_dstDevice, __pyx_v_dstContext, __pyx_v_srcDevice, __pyx_v_srcContext, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3935, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3936
 *             raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3929
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3938
 *     return err
 * 
 * cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoDAsync_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoDAsync_v2(CUdeviceptr __pyx_v_dstDevice, void const *__pyx_v_srcHost, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyHtoDAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3940
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3940, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3941
 *     global __cuMemcpyHtoDAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoDAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3942
 *     cuPythonInit()
 *     if __cuMemcpyHtoDAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3943
 *     if __cuMemcpyHtoDAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyHtoDAsync_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3943, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3943, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3942
 *     cuPythonInit()
 *     if __cuMemcpyHtoDAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3941
 *     global __cuMemcpyHtoDAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoDAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3944
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, void const *, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2)(__pyx_v_dstDevice, __pyx_v_srcHost, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3944, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3945
 *             raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3938
 *     return err
 * 
 * cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoDAsync_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyHtoDAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3947
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoHAsync_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoHAsync_v2(void *__pyx_v_dstHost, CUdeviceptr __pyx_v_srcDevice, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyDtoHAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3949
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3949, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3950
 *     global __cuMemcpyDtoHAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoHAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3951
 *     cuPythonInit()
 *     if __cuMemcpyDtoHAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3952
 *     if __cuMemcpyDtoHAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyDtoHAsync_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3952, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3952, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3951
 *     cuPythonInit()
 *     if __cuMemcpyDtoHAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3950
 *     global __cuMemcpyDtoHAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoHAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3953
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUdeviceptr, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2)(__pyx_v_dstHost, __pyx_v_srcDevice, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3953, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3954
 *             raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3947
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoHAsync_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyDtoHAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3956
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoDAsync_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoDAsync_v2(CUdeviceptr __pyx_v_dstDevice, CUdeviceptr __pyx_v_srcDevice, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyDtoDAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3958
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3958, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3959
 *     global __cuMemcpyDtoDAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoDAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3960
 *     cuPythonInit()
 *     if __cuMemcpyDtoDAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3961
 *     if __cuMemcpyDtoDAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyDtoDAsync_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3961, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3961, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3960
 *     cuPythonInit()
 *     if __cuMemcpyDtoDAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3959
 *     global __cuMemcpyDtoDAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyDtoDAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3962
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2)(__pyx_v_dstDevice, __pyx_v_srcDevice, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3962, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3963
 *             raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUdeviceptr, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3956
 *     return err
 * 
 * cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoDAsync_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyDtoDAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3965
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoAAsync_v2(CUarray __pyx_v_dstArray, size_t __pyx_v_dstOffset, void const *__pyx_v_srcHost, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyHtoAAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3967
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3967, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3968
 *     global __cuMemcpyHtoAAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoAAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3969
 *     cuPythonInit()
 *     if __cuMemcpyHtoAAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3970
 *     if __cuMemcpyHtoAAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyHtoAAsync_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3970, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3970, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3969
 *     cuPythonInit()
 *     if __cuMemcpyHtoAAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3968
 *     global __cuMemcpyHtoAAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyHtoAAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3971
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray, size_t, void const *, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2)(__pyx_v_dstArray, __pyx_v_dstOffset, __pyx_v_srcHost, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3971, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3972
 *             raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
 *     err = (<CUresult (*)(CUarray, size_t, const void*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3965
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyHtoAAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3974
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoHAsync_v2(void *__pyx_v_dstHost, CUarray __pyx_v_srcArray, size_t __pyx_v_srcOffset, size_t __pyx_v_ByteCount, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyAtoHAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3976
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3976, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3977
 *     global __cuMemcpyAtoHAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoHAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3978
 *     cuPythonInit()
 *     if __cuMemcpyAtoHAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3979
 *     if __cuMemcpyAtoHAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyAtoHAsync_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3979, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3979, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3978
 *     cuPythonInit()
 *     if __cuMemcpyAtoHAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3977
 *     global __cuMemcpyAtoHAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyAtoHAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3980
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUarray, size_t, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2)(__pyx_v_dstHost, __pyx_v_srcArray, __pyx_v_srcOffset, __pyx_v_ByteCount, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3980, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3981
 *             raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
 *     err = (<CUresult (*)(void*, CUarray, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3974
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyAtoHAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3983
 *     return err
 * 
 * cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DAsync_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2DAsync_v2(CUDA_MEMCPY2D const *__pyx_v_pCopy, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy2DAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3985
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3985, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3986
 *     global __cuMemcpy2DAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy2DAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3987
 *     cuPythonInit()
 *     if __cuMemcpy2DAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DAsync_v2)(pCopy, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3988
 *     if __cuMemcpy2DAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DAsync_v2)(pCopy, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy2DAsync_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3988, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3988, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3987
 *     cuPythonInit()
 *     if __cuMemcpy2DAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DAsync_v2)(pCopy, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3986
 *     global __cuMemcpy2DAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy2DAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3989
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DAsync_v2)(pCopy, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY2D const *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2)(__pyx_v_pCopy, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3989, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3990
 *             raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY2D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy2DAsync_v2)(pCopy, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3983
 *     return err
 * 
 * cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DAsync_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy2DAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":3992
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DAsync_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DAsync_v2(CUDA_MEMCPY3D const *__pyx_v_pCopy, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy3DAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":3994
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3994, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":3995
 *     global __cuMemcpy3DAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy3DAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":3996
 *     cuPythonInit()
 *     if __cuMemcpy3DAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DAsync_v2)(pCopy, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":3997
 *     if __cuMemcpy3DAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DAsync_v2)(pCopy, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy3DAsync_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3997, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 3997, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":3996
 *     cuPythonInit()
 *     if __cuMemcpy3DAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DAsync_v2)(pCopy, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":3995
 *     global __cuMemcpy3DAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy3DAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":3998
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DAsync_v2)(pCopy, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY3D const *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2)(__pyx_v_pCopy, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 3998, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":3999
 *             raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DAsync_v2)(pCopy, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":3992
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DAsync_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy3DAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4001
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeerAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DPeerAsync(CUDA_MEMCPY3D_PEER const *__pyx_v_pCopy, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy3DPeerAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4003
 * cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemcpy3DPeerAsync
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemcpy3DPeerAsync == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4003, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4004
 *     global __cuMemcpy3DPeerAsync
 *     cuPythonInit()
 *     if __cuMemcpy3DPeerAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4005
 *     cuPythonInit()
 *     if __cuMemcpy3DPeerAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeerAsync)(pCopy, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4006
 *     if __cuMemcpy3DPeerAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeerAsync)(pCopy, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy3DPeerAsync_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4006, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4006, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4005
 *     cuPythonInit()
 *     if __cuMemcpy3DPeerAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeerAsync)(pCopy, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4004
 *     global __cuMemcpy3DPeerAsync
 *     cuPythonInit()
 *     if __cuMemcpy3DPeerAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4007
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeerAsync)(pCopy, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_MEMCPY3D_PEER const *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync)(__pyx_v_pCopy, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4007, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4008
 *             raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
 *     err = (<CUresult (*)(const CUDA_MEMCPY3D_PEER*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DPeerAsync)(pCopy, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4001
 *     return err
 * 
 * cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeerAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy3DPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4010
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyBatchAsync_v2(CUdeviceptr *__pyx_v_dsts, CUdeviceptr *__pyx_v_srcs, size_t *__pyx_v_sizes, size_t __pyx_v_count, CUmemcpyAttributes *__pyx_v_attrs, size_t *__pyx_v_attrsIdxs, size_t __pyx_v_numAttrs, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpyBatchAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4012
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4012, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4013
 *     global __cuMemcpyBatchAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyBatchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4014
 *     cuPythonInit()
 *     if __cuMemcpyBatchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUdeviceptr*, size_t*, size_t, CUmemcpyAttributes*, size_t*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4015
 *     if __cuMemcpyBatchAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, CUdeviceptr*, size_t*, size_t, CUmemcpyAttributes*, size_t*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpyBatchAsync_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4015, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4015, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4014
 *     cuPythonInit()
 *     if __cuMemcpyBatchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUdeviceptr*, size_t*, size_t, CUmemcpyAttributes*, size_t*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4013
 *     global __cuMemcpyBatchAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpyBatchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4016
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUdeviceptr*, size_t*, size_t, CUmemcpyAttributes*, size_t*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, CUdeviceptr *, size_t *, size_t, CUmemcpyAttributes *, size_t *, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2)(__pyx_v_dsts, __pyx_v_srcs, __pyx_v_sizes, __pyx_v_count, __pyx_v_attrs, __pyx_v_attrsIdxs, __pyx_v_numAttrs, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4016, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4017
 *             raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUdeviceptr*, size_t*, size_t, CUmemcpyAttributes*, size_t*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4010
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpyBatchAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4019
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DBatchAsync_v2(size_t __pyx_v_numOps, CUDA_MEMCPY3D_BATCH_OP *__pyx_v_opList, unsigned PY_LONG_LONG __pyx_v_flags, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemcpy3DBatchAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4021
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4021, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4022
 *     global __cuMemcpy3DBatchAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy3DBatchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4023
 *     cuPythonInit()
 *     if __cuMemcpy3DBatchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
 *     err = (<CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP*, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4024
 *     if __cuMemcpy3DBatchAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP*, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemcpy3DBatchAsync_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4024, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4024, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4023
 *     cuPythonInit()
 *     if __cuMemcpy3DBatchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
 *     err = (<CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP*, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4022
 *     global __cuMemcpy3DBatchAsync_v2
 *     cuPythonInit()
 *     if __cuMemcpy3DBatchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4025
 *         with gil:
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
 *     err = (<CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP*, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP *, unsigned PY_LONG_LONG, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2)(__pyx_v_numOps, __pyx_v_opList, __pyx_v_flags, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4025, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4026
 *             raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
 *     err = (<CUresult (*)(size_t, CUDA_MEMCPY3D_BATCH_OP*, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4019
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemcpy3DBatchAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4028
 *     return err
 * 
 * cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD8_v2(CUdeviceptr __pyx_v_dstDevice, unsigned char __pyx_v_uc, size_t __pyx_v_N) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD8_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4030
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4030, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4031
 *     global __cuMemsetD8_v2
 *     cuPythonInit()
 *     if __cuMemsetD8_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4032
 *     cuPythonInit()
 *     if __cuMemsetD8_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8_v2)(dstDevice, uc, N)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4033
 *     if __cuMemsetD8_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8_v2)(dstDevice, uc, N)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD8_v2_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4033, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4033, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4032
 *     cuPythonInit()
 *     if __cuMemsetD8_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8_v2)(dstDevice, uc, N)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4031
 *     global __cuMemsetD8_v2
 *     cuPythonInit()
 *     if __cuMemsetD8_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4034
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8_v2)(dstDevice, uc, N)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned char, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2)(__pyx_v_dstDevice, __pyx_v_uc, __pyx_v_N); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4034, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4035
 *             raise RuntimeError('Function "cuMemsetD8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8_v2)(dstDevice, uc, N)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4028
 *     return err
 * 
 * cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD8_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4037
 *     return err
 * 
 * cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD16_v2(CUdeviceptr __pyx_v_dstDevice, unsigned short __pyx_v_us, size_t __pyx_v_N) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD16_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4039
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4039, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4040
 *     global __cuMemsetD16_v2
 *     cuPythonInit()
 *     if __cuMemsetD16_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4041
 *     cuPythonInit()
 *     if __cuMemsetD16_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16_v2)(dstDevice, us, N)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4042
 *     if __cuMemsetD16_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16_v2)(dstDevice, us, N)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD16_v2_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4042, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4042, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4041
 *     cuPythonInit()
 *     if __cuMemsetD16_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16_v2)(dstDevice, us, N)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4040
 *     global __cuMemsetD16_v2
 *     cuPythonInit()
 *     if __cuMemsetD16_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4043
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16_v2)(dstDevice, us, N)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned short, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2)(__pyx_v_dstDevice, __pyx_v_us, __pyx_v_N); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4043, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4044
 *             raise RuntimeError('Function "cuMemsetD16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16_v2)(dstDevice, us, N)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4037
 *     return err
 * 
 * cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD16_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4046
 *     return err
 * 
 * cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD32_v2(CUdeviceptr __pyx_v_dstDevice, unsigned int __pyx_v_ui, size_t __pyx_v_N) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD32_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4048
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4048, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4049
 *     global __cuMemsetD32_v2
 *     cuPythonInit()
 *     if __cuMemsetD32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4050
 *     cuPythonInit()
 *     if __cuMemsetD32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32_v2)(dstDevice, ui, N)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4051
 *     if __cuMemsetD32_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32_v2)(dstDevice, ui, N)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD32_v2_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4051, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4051, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4050
 *     cuPythonInit()
 *     if __cuMemsetD32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32_v2)(dstDevice, ui, N)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4049
 *     global __cuMemsetD32_v2
 *     cuPythonInit()
 *     if __cuMemsetD32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4052
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32_v2)(dstDevice, ui, N)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned int, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2)(__pyx_v_dstDevice, __pyx_v_ui, __pyx_v_N); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4052, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4053
 *             raise RuntimeError('Function "cuMemsetD32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32_v2)(dstDevice, ui, N)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4046
 *     return err
 * 
 * cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD32_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4055
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D8_v2(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned char __pyx_v_uc, size_t __pyx_v_Width, size_t __pyx_v_Height) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D8_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4057
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4057, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4058
 *     global __cuMemsetD2D8_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D8_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4059
 *     cuPythonInit()
 *     if __cuMemsetD2D8_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4060
 *     if __cuMemsetD2D8_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D8_v2_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4060, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4060, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4059
 *     cuPythonInit()
 *     if __cuMemsetD2D8_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4058
 *     global __cuMemsetD2D8_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D8_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4061
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_uc, __pyx_v_Width, __pyx_v_Height); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4061, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4062
 *             raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4055
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D8_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4064
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D16_v2(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned short __pyx_v_us, size_t __pyx_v_Width, size_t __pyx_v_Height) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D16_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4066
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4066, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4067
 *     global __cuMemsetD2D16_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D16_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4068
 *     cuPythonInit()
 *     if __cuMemsetD2D16_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4069
 *     if __cuMemsetD2D16_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D16_v2_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4069, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4069, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4068
 *     cuPythonInit()
 *     if __cuMemsetD2D16_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4067
 *     global __cuMemsetD2D16_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D16_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4070
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_us, __pyx_v_Width, __pyx_v_Height); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4070, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4071
 *             raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4064
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D16_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4073
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D32_v2(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned int __pyx_v_ui, size_t __pyx_v_Width, size_t __pyx_v_Height) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D32_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4075
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4075, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4076
 *     global __cuMemsetD2D32_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4077
 *     cuPythonInit()
 *     if __cuMemsetD2D32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4078
 *     if __cuMemsetD2D32_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D32_v2_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4078, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4078, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4077
 *     cuPythonInit()
 *     if __cuMemsetD2D32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4076
 *     global __cuMemsetD2D32_v2
 *     cuPythonInit()
 *     if __cuMemsetD2D32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4079
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_ui, __pyx_v_Width, __pyx_v_Height); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4079, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4080
 *             raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4073
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D32_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4082
 *     return err
 * 
 * cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8Async
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD8Async(CUdeviceptr __pyx_v_dstDevice, unsigned char __pyx_v_uc, size_t __pyx_v_N, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD8Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4084
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4084, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4085
 *     global __cuMemsetD8Async
 *     cuPythonInit()
 *     if __cuMemsetD8Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4086
 *     cuPythonInit()
 *     if __cuMemsetD8Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8Async)(dstDevice, uc, N, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4087
 *     if __cuMemsetD8Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8Async)(dstDevice, uc, N, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD8Async_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4087, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4087, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4086
 *     cuPythonInit()
 *     if __cuMemsetD8Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8Async)(dstDevice, uc, N, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4085
 *     global __cuMemsetD8Async
 *     cuPythonInit()
 *     if __cuMemsetD8Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4088
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8Async)(dstDevice, uc, N, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async)(__pyx_v_dstDevice, __pyx_v_uc, __pyx_v_N, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4088, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4089
 *             raise RuntimeError('Function "cuMemsetD8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned char, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD8Async)(dstDevice, uc, N, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4082
 *     return err
 * 
 * cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8Async
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD8Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4091
 *     return err
 * 
 * cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16Async
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD16Async(CUdeviceptr __pyx_v_dstDevice, unsigned short __pyx_v_us, size_t __pyx_v_N, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD16Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4093
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4093, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4094
 *     global __cuMemsetD16Async
 *     cuPythonInit()
 *     if __cuMemsetD16Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4095
 *     cuPythonInit()
 *     if __cuMemsetD16Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16Async)(dstDevice, us, N, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4096
 *     if __cuMemsetD16Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16Async)(dstDevice, us, N, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD16Async_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4096, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4096, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4095
 *     cuPythonInit()
 *     if __cuMemsetD16Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16Async)(dstDevice, us, N, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4094
 *     global __cuMemsetD16Async
 *     cuPythonInit()
 *     if __cuMemsetD16Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4097
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16Async)(dstDevice, us, N, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async)(__pyx_v_dstDevice, __pyx_v_us, __pyx_v_N, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4097, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4098
 *             raise RuntimeError('Function "cuMemsetD16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned short, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD16Async)(dstDevice, us, N, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4091
 *     return err
 * 
 * cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16Async
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD16Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4100
 *     return err
 * 
 * cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32Async
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD32Async(CUdeviceptr __pyx_v_dstDevice, unsigned int __pyx_v_ui, size_t __pyx_v_N, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD32Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4102
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4102, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4103
 *     global __cuMemsetD32Async
 *     cuPythonInit()
 *     if __cuMemsetD32Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4104
 *     cuPythonInit()
 *     if __cuMemsetD32Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32Async)(dstDevice, ui, N, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4105
 *     if __cuMemsetD32Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32Async)(dstDevice, ui, N, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD32Async_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4105, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4105, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4104
 *     cuPythonInit()
 *     if __cuMemsetD32Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32Async)(dstDevice, ui, N, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4103
 *     global __cuMemsetD32Async
 *     cuPythonInit()
 *     if __cuMemsetD32Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4106
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32Async)(dstDevice, ui, N, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async)(__pyx_v_dstDevice, __pyx_v_ui, __pyx_v_N, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4106, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4107
 *             raise RuntimeError('Function "cuMemsetD32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, unsigned int, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD32Async)(dstDevice, ui, N, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4100
 *     return err
 * 
 * cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32Async
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD32Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4109
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D8Async(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned char __pyx_v_uc, size_t __pyx_v_Width, size_t __pyx_v_Height, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D8Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4111
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4111, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4112
 *     global __cuMemsetD2D8Async
 *     cuPythonInit()
 *     if __cuMemsetD2D8Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4113
 *     cuPythonInit()
 *     if __cuMemsetD2D8Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4114
 *     if __cuMemsetD2D8Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D8Async_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4114, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4114, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4113
 *     cuPythonInit()
 *     if __cuMemsetD2D8Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4112
 *     global __cuMemsetD2D8Async
 *     cuPythonInit()
 *     if __cuMemsetD2D8Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4115
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_uc, __pyx_v_Width, __pyx_v_Height, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4115, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4116
 *             raise RuntimeError('Function "cuMemsetD2D8Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4109
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D8Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4118
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D16Async(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned short __pyx_v_us, size_t __pyx_v_Width, size_t __pyx_v_Height, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D16Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4120
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4120, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4121
 *     global __cuMemsetD2D16Async
 *     cuPythonInit()
 *     if __cuMemsetD2D16Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4122
 *     cuPythonInit()
 *     if __cuMemsetD2D16Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4123
 *     if __cuMemsetD2D16Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D16Async_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4123, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4123, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4122
 *     cuPythonInit()
 *     if __cuMemsetD2D16Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4121
 *     global __cuMemsetD2D16Async
 *     cuPythonInit()
 *     if __cuMemsetD2D16Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4124
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_us, __pyx_v_Width, __pyx_v_Height, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4124, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4125
 *             raise RuntimeError('Function "cuMemsetD2D16Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4118
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D16Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4127
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D32Async(CUdeviceptr __pyx_v_dstDevice, size_t __pyx_v_dstPitch, unsigned int __pyx_v_ui, size_t __pyx_v_Width, size_t __pyx_v_Height, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemsetD2D32Async", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4129
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4129, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4130
 *     global __cuMemsetD2D32Async
 *     cuPythonInit()
 *     if __cuMemsetD2D32Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4131
 *     cuPythonInit()
 *     if __cuMemsetD2D32Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4132
 *     if __cuMemsetD2D32Async == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemsetD2D32Async_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4132, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4132, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4131
 *     cuPythonInit()
 *     if __cuMemsetD2D32Async == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4130
 *     global __cuMemsetD2D32Async
 *     cuPythonInit()
 *     if __cuMemsetD2D32Async == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4133
 *         with gil:
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async)(__pyx_v_dstDevice, __pyx_v_dstPitch, __pyx_v_ui, __pyx_v_Width, __pyx_v_Height, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4133, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4134
 *             raise RuntimeError('Function "cuMemsetD2D32Async" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4127
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemsetD2D32Async", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4136
 *     return err
 * 
 * cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayCreate_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayCreate_v2(CUarray *__pyx_v_pHandle, CUDA_ARRAY_DESCRIPTOR const *__pyx_v_pAllocateArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayCreate_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4138
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4138, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4139
 *     global __cuArrayCreate_v2
 *     cuPythonInit()
 *     if __cuArrayCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4140
 *     cuPythonInit()
 *     if __cuArrayCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayCreate_v2)(pHandle, pAllocateArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4141
 *     if __cuArrayCreate_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayCreate_v2)(pHandle, pAllocateArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayCreate_v2_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4141, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4141, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4140
 *     cuPythonInit()
 *     if __cuArrayCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayCreate_v2)(pHandle, pAllocateArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4139
 *     global __cuArrayCreate_v2
 *     cuPythonInit()
 *     if __cuArrayCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4142
 *         with gil:
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayCreate_v2)(pHandle, pAllocateArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUDA_ARRAY_DESCRIPTOR const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2)(__pyx_v_pHandle, __pyx_v_pAllocateArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4142, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4143
 *             raise RuntimeError('Function "cuArrayCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayCreate_v2)(pHandle, pAllocateArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4136
 *     return err
 * 
 * cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayCreate_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4145
 *     return err
 * 
 * cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetDescriptor_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR *__pyx_v_pArrayDescriptor, CUarray __pyx_v_hArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayGetDescriptor_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4147
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4147, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4148
 *     global __cuArrayGetDescriptor_v2
 *     cuPythonInit()
 *     if __cuArrayGetDescriptor_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4149
 *     cuPythonInit()
 *     if __cuArrayGetDescriptor_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4150
 *     if __cuArrayGetDescriptor_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayGetDescriptor_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4150, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4150, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4149
 *     cuPythonInit()
 *     if __cuArrayGetDescriptor_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4148
 *     global __cuArrayGetDescriptor_v2
 *     cuPythonInit()
 *     if __cuArrayGetDescriptor_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4151
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY_DESCRIPTOR *, CUarray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2)(__pyx_v_pArrayDescriptor, __pyx_v_hArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4151, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4152
 *             raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4145
 *     return err
 * 
 * cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetDescriptor_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayGetDescriptor_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4154
 *     return err
 * 
 * cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetSparseProperties
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES *__pyx_v_sparseProperties, CUarray __pyx_v_array) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayGetSparseProperties", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4156
 * cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuArrayGetSparseProperties
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuArrayGetSparseProperties == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4156, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4157
 *     global __cuArrayGetSparseProperties
 *     cuPythonInit()
 *     if __cuArrayGetSparseProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4158
 *     cuPythonInit()
 *     if __cuArrayGetSparseProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetSparseProperties)(sparseProperties, array)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4159
 *     if __cuArrayGetSparseProperties == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetSparseProperties)(sparseProperties, array)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayGetSparsePropert};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4159, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4159, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4158
 *     cuPythonInit()
 *     if __cuArrayGetSparseProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetSparseProperties)(sparseProperties, array)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4157
 *     global __cuArrayGetSparseProperties
 *     cuPythonInit()
 *     if __cuArrayGetSparseProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4160
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetSparseProperties)(sparseProperties, array)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES *, CUarray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties)(__pyx_v_sparseProperties, __pyx_v_array); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4160, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4161
 *             raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetSparseProperties)(sparseProperties, array)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4154
 *     return err
 * 
 * cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetSparseProperties
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4163
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetSparseProperties
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES *__pyx_v_sparseProperties, CUmipmappedArray __pyx_v_mipmap) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMipmappedArrayGetSparseProperties", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4165
 * cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMipmappedArrayGetSparseProperties
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMipmappedArrayGetSparseProperties == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4165, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4166
 *     global __cuMipmappedArrayGetSparseProperties
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetSparseProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4167
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetSparseProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4168
 *     if __cuMipmappedArrayGetSparseProperties == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMipmappedArrayGetSpar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4168, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4168, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4167
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetSparseProperties == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4166
 *     global __cuMipmappedArrayGetSparseProperties
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetSparseProperties == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4169
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES *, CUmipmappedArray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties)(__pyx_v_sparseProperties, __pyx_v_mipmap); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4169, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4170
 *             raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_SPARSE_PROPERTIES*, CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4163
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetSparseProperties
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMipmappedArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4172
 *     return err
 * 
 * cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetMemoryRequirements
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS *__pyx_v_memoryRequirements, CUarray __pyx_v_array, CUdevice __pyx_v_device) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayGetMemoryRequirements", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4174
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4174, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4175
 *     global __cuArrayGetMemoryRequirements
 *     cuPythonInit()
 *     if __cuArrayGetMemoryRequirements == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4176
 *     cuPythonInit()
 *     if __cuArrayGetMemoryRequirements == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUarray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4177
 *     if __cuArrayGetMemoryRequirements == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUarray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayGetMemoryRequire};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4177, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4177, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4176
 *     cuPythonInit()
 *     if __cuArrayGetMemoryRequirements == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUarray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4175
 *     global __cuArrayGetMemoryRequirements
 *     cuPythonInit()
 *     if __cuArrayGetMemoryRequirements == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4178
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUarray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS *, CUarray, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements)(__pyx_v_memoryRequirements, __pyx_v_array, __pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4178, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4179
 *             raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUarray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4172
 *     return err
 * 
 * cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetMemoryRequirements
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4181
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS *__pyx_v_memoryRequirements, CUmipmappedArray __pyx_v_mipmap, CUdevice __pyx_v_device) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMipmappedArrayGetMemoryRequirements", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4183
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4183, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4184
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetMemoryRequirements == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4185
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetMemoryRequirements == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUmipmappedArray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4186
 *     if __cuMipmappedArrayGetMemoryRequirements == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUmipmappedArray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMipmappedArrayGetMemo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4186, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4186, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4185
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetMemoryRequirements == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUmipmappedArray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4184
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetMemoryRequirements == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4187
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUmipmappedArray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS *, CUmipmappedArray, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements)(__pyx_v_memoryRequirements, __pyx_v_mipmap, __pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4187, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4188
 *             raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY_MEMORY_REQUIREMENTS*, CUmipmappedArray, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4181
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMipmappedArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4190
 *     return err
 * 
 * cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetPlane
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetPlane(CUarray *__pyx_v_pPlaneArray, CUarray __pyx_v_hArray, unsigned int __pyx_v_planeIdx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayGetPlane", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4192
 * cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuArrayGetPlane
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuArrayGetPlane == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4192, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4193
 *     global __cuArrayGetPlane
 *     cuPythonInit()
 *     if __cuArrayGetPlane == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4194
 *     cuPythonInit()
 *     if __cuArrayGetPlane == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
 *     err = (<CUresult (*)(CUarray*, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4195
 *     if __cuArrayGetPlane == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayGetPlane_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4195, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4195, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4194
 *     cuPythonInit()
 *     if __cuArrayGetPlane == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
 *     err = (<CUresult (*)(CUarray*, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4193
 *     global __cuArrayGetPlane
 *     cuPythonInit()
 *     if __cuArrayGetPlane == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4196
 *         with gil:
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
 *     err = (<CUresult (*)(CUarray*, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUarray, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane)(__pyx_v_pPlaneArray, __pyx_v_hArray, __pyx_v_planeIdx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4196, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4197
 *             raise RuntimeError('Function "cuArrayGetPlane" not found')
 *     err = (<CUresult (*)(CUarray*, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4190
 *     return err
 * 
 * cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayGetPlane
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayGetPlane", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4199
 *     return err
 * 
 * cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayDestroy(CUarray __pyx_v_hArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArrayDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4201
 * cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuArrayDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuArrayDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4201, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4202
 *     global __cuArrayDestroy
 *     cuPythonInit()
 *     if __cuArrayDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4203
 *     cuPythonInit()
 *     if __cuArrayDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
 *     err = (<CUresult (*)(CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayDestroy)(hArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4204
 *     if __cuArrayDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArrayDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayDestroy)(hArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArrayDestroy_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4204, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4204, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4203
 *     cuPythonInit()
 *     if __cuArrayDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
 *     err = (<CUresult (*)(CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayDestroy)(hArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4202
 *     global __cuArrayDestroy
 *     cuPythonInit()
 *     if __cuArrayDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4205
 *         with gil:
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
 *     err = (<CUresult (*)(CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayDestroy)(hArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy)(__pyx_v_hArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4205, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4206
 *             raise RuntimeError('Function "cuArrayDestroy" not found')
 *     err = (<CUresult (*)(CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArrayDestroy)(hArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4199
 *     return err
 * 
 * cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArrayDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArrayDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4208
 *     return err
 * 
 * cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArray3DCreate_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArray3DCreate_v2(CUarray *__pyx_v_pHandle, CUDA_ARRAY3D_DESCRIPTOR const *__pyx_v_pAllocateArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArray3DCreate_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4210
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4210, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4211
 *     global __cuArray3DCreate_v2
 *     cuPythonInit()
 *     if __cuArray3DCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4212
 *     cuPythonInit()
 *     if __cuArray3DCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY3D_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DCreate_v2)(pHandle, pAllocateArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4213
 *     if __cuArray3DCreate_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY3D_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DCreate_v2)(pHandle, pAllocateArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArray3DCreate_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4213, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4213, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4212
 *     cuPythonInit()
 *     if __cuArray3DCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY3D_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DCreate_v2)(pHandle, pAllocateArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4211
 *     global __cuArray3DCreate_v2
 *     cuPythonInit()
 *     if __cuArray3DCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4214
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY3D_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DCreate_v2)(pHandle, pAllocateArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUDA_ARRAY3D_DESCRIPTOR const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2)(__pyx_v_pHandle, __pyx_v_pAllocateArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4214, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4215
 *             raise RuntimeError('Function "cuArray3DCreate_v2" not found')
 *     err = (<CUresult (*)(CUarray*, const CUDA_ARRAY3D_DESCRIPTOR*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DCreate_v2)(pHandle, pAllocateArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4208
 *     return err
 * 
 * cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArray3DCreate_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArray3DCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4217
 *     return err
 * 
 * cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArray3DGetDescriptor_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR *__pyx_v_pArrayDescriptor, CUarray __pyx_v_hArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuArray3DGetDescriptor_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4219
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4219, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4220
 *     global __cuArray3DGetDescriptor_v2
 *     cuPythonInit()
 *     if __cuArray3DGetDescriptor_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4221
 *     cuPythonInit()
 *     if __cuArray3DGetDescriptor_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4222
 *     if __cuArray3DGetDescriptor_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuArray3DGetDescriptor};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4222, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4222, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4221
 *     cuPythonInit()
 *     if __cuArray3DGetDescriptor_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4220
 *     global __cuArray3DGetDescriptor_v2
 *     cuPythonInit()
 *     if __cuArray3DGetDescriptor_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4223
 *         with gil:
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR *, CUarray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2)(__pyx_v_pArrayDescriptor, __pyx_v_hArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4223, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4224
 *             raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
 *     err = (<CUresult (*)(CUDA_ARRAY3D_DESCRIPTOR*, CUarray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4217
 *     return err
 * 
 * cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuArray3DGetDescriptor_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuArray3DGetDescriptor_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4226
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayCreate(CUmipmappedArray *__pyx_v_pHandle, CUDA_ARRAY3D_DESCRIPTOR const *__pyx_v_pMipmappedArrayDesc, unsigned int __pyx_v_numMipmapLevels) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMipmappedArrayCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4228
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4228, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4229
 *     global __cuMipmappedArrayCreate
 *     cuPythonInit()
 *     if __cuMipmappedArrayCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4230
 *     cuPythonInit()
 *     if __cuMipmappedArrayCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, const CUDA_ARRAY3D_DESCRIPTOR*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4231
 *     if __cuMipmappedArrayCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmipmappedArray*, const CUDA_ARRAY3D_DESCRIPTOR*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMipmappedArrayCreate};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4231, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4231, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4230
 *     cuPythonInit()
 *     if __cuMipmappedArrayCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, const CUDA_ARRAY3D_DESCRIPTOR*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4229
 *     global __cuMipmappedArrayCreate
 *     cuPythonInit()
 *     if __cuMipmappedArrayCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4232
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, const CUDA_ARRAY3D_DESCRIPTOR*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmipmappedArray *, CUDA_ARRAY3D_DESCRIPTOR const *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate)(__pyx_v_pHandle, __pyx_v_pMipmappedArrayDesc, __pyx_v_numMipmapLevels); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4232, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4233
 *             raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, const CUDA_ARRAY3D_DESCRIPTOR*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4226
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMipmappedArrayCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4235
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetLevel
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetLevel(CUarray *__pyx_v_pLevelArray, CUmipmappedArray __pyx_v_hMipmappedArray, unsigned int __pyx_v_level) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMipmappedArrayGetLevel", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4237
 * cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMipmappedArrayGetLevel
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMipmappedArrayGetLevel == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4237, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4238
 *     global __cuMipmappedArrayGetLevel
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetLevel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4239
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetLevel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
 *     err = (<CUresult (*)(CUarray*, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4240
 *     if __cuMipmappedArrayGetLevel == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMipmappedArrayGetLeve};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4240, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4240, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4239
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetLevel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
 *     err = (<CUresult (*)(CUarray*, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4238
 *     global __cuMipmappedArrayGetLevel
 *     cuPythonInit()
 *     if __cuMipmappedArrayGetLevel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4241
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
 *     err = (<CUresult (*)(CUarray*, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUmipmappedArray, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel)(__pyx_v_pLevelArray, __pyx_v_hMipmappedArray, __pyx_v_level); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4241, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4242
 *             raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
 *     err = (<CUresult (*)(CUarray*, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4235
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetLevel
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMipmappedArrayGetLevel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4244
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayDestroy(CUmipmappedArray __pyx_v_hMipmappedArray) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMipmappedArrayDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4246
 * cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMipmappedArrayDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMipmappedArrayDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4246, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4247
 *     global __cuMipmappedArrayDestroy
 *     cuPythonInit()
 *     if __cuMipmappedArrayDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4248
 *     cuPythonInit()
 *     if __cuMipmappedArrayDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
 *     err = (<CUresult (*)(CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayDestroy)(hMipmappedArray)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4249
 *     if __cuMipmappedArrayDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayDestroy)(hMipmappedArray)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMipmappedArrayDestroy};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4249, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4249, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4248
 *     cuPythonInit()
 *     if __cuMipmappedArrayDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
 *     err = (<CUresult (*)(CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayDestroy)(hMipmappedArray)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4247
 *     global __cuMipmappedArrayDestroy
 *     cuPythonInit()
 *     if __cuMipmappedArrayDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4250
 *         with gil:
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
 *     err = (<CUresult (*)(CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayDestroy)(hMipmappedArray)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmipmappedArray))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy)(__pyx_v_hMipmappedArray); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4250, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4251
 *             raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
 *     err = (<CUresult (*)(CUmipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMipmappedArrayDestroy)(hMipmappedArray)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4244
 *     return err
 * 
 * cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMipmappedArrayDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4253
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetHandleForAddressRange(void *__pyx_v_handle, CUdeviceptr __pyx_v_dptr, size_t __pyx_v_size, CUmemRangeHandleType __pyx_v_handleType, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetHandleForAddressRange", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4255
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4255, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4256
 *     global __cuMemGetHandleForAddressRange
 *     cuPythonInit()
 *     if __cuMemGetHandleForAddressRange == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4257
 *     cuPythonInit()
 *     if __cuMemGetHandleForAddressRange == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4258
 *     if __cuMemGetHandleForAddressRange == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetHandleForAddres};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4258, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4258, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4257
 *     cuPythonInit()
 *     if __cuMemGetHandleForAddressRange == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4256
 *     global __cuMemGetHandleForAddressRange
 *     cuPythonInit()
 *     if __cuMemGetHandleForAddressRange == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4259
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange)(__pyx_v_handle, __pyx_v_dptr, __pyx_v_size, __pyx_v_handleType, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4259, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4260
 *             raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
 *     err = (<CUresult (*)(void*, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4253
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetHandleForAddressRange", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4262
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemBatchDecompressAsync(CUmemDecompressParams *__pyx_v_paramsArray, size_t __pyx_v_count, unsigned int __pyx_v_flags, size_t *__pyx_v_errorIndex, CUstream __pyx_v_stream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemBatchDecompressAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4264
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4264, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4265
 *     global __cuMemBatchDecompressAsync
 *     cuPythonInit()
 *     if __cuMemBatchDecompressAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4266
 *     cuPythonInit()
 *     if __cuMemBatchDecompressAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
 *     err = (<CUresult (*)(CUmemDecompressParams*, size_t, unsigned int, size_t*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4267
 *     if __cuMemBatchDecompressAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemDecompressParams*, size_t, unsigned int, size_t*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemBatchDecompressAsy};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4267, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4267, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4266
 *     cuPythonInit()
 *     if __cuMemBatchDecompressAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
 *     err = (<CUresult (*)(CUmemDecompressParams*, size_t, unsigned int, size_t*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4265
 *     global __cuMemBatchDecompressAsync
 *     cuPythonInit()
 *     if __cuMemBatchDecompressAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4268
 *         with gil:
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
 *     err = (<CUresult (*)(CUmemDecompressParams*, size_t, unsigned int, size_t*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemDecompressParams *, size_t, unsigned int, size_t *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync)(__pyx_v_paramsArray, __pyx_v_count, __pyx_v_flags, __pyx_v_errorIndex, __pyx_v_stream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4268, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4269
 *             raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
 *     err = (<CUresult (*)(CUmemDecompressParams*, size_t, unsigned int, size_t*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4262
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemBatchDecompressAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4271
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAddressReserve(CUdeviceptr *__pyx_v_ptr, size_t __pyx_v_size, size_t __pyx_v_alignment, CUdeviceptr __pyx_v_addr, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAddressReserve", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4273
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4273, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4274
 *     global __cuMemAddressReserve
 *     cuPythonInit()
 *     if __cuMemAddressReserve == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4275
 *     cuPythonInit()
 *     if __cuMemAddressReserve == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, size_t, CUdeviceptr, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressReserve)(ptr, size, alignment, addr, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4276
 *     if __cuMemAddressReserve == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, size_t, CUdeviceptr, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressReserve)(ptr, size, alignment, addr, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAddressReserve_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4276, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4276, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4275
 *     cuPythonInit()
 *     if __cuMemAddressReserve == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, size_t, CUdeviceptr, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressReserve)(ptr, size, alignment, addr, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4274
 *     global __cuMemAddressReserve
 *     cuPythonInit()
 *     if __cuMemAddressReserve == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4277
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, size_t, CUdeviceptr, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressReserve)(ptr, size, alignment, addr, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t, size_t, CUdeviceptr, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve)(__pyx_v_ptr, __pyx_v_size, __pyx_v_alignment, __pyx_v_addr, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4277, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4278
 *             raise RuntimeError('Function "cuMemAddressReserve" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, size_t, CUdeviceptr, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressReserve)(ptr, size, alignment, addr, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4271
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAddressReserve", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4280
 *     return err
 * 
 * cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAddressFree
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAddressFree(CUdeviceptr __pyx_v_ptr, size_t __pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAddressFree", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4282
 * cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemAddressFree
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemAddressFree == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4282, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4283
 *     global __cuMemAddressFree
 *     cuPythonInit()
 *     if __cuMemAddressFree == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4284
 *     cuPythonInit()
 *     if __cuMemAddressFree == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressFree)(ptr, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4285
 *     if __cuMemAddressFree == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressFree" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressFree)(ptr, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAddressFree_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4285, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4285, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4284
 *     cuPythonInit()
 *     if __cuMemAddressFree == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressFree)(ptr, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4283
 *     global __cuMemAddressFree
 *     cuPythonInit()
 *     if __cuMemAddressFree == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4286
 *         with gil:
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressFree)(ptr, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree)(__pyx_v_ptr, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4286, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4287
 *             raise RuntimeError('Function "cuMemAddressFree" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAddressFree)(ptr, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4280
 *     return err
 * 
 * cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAddressFree
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAddressFree", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4289
 *     return err
 * 
 * cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemCreate(CUmemGenericAllocationHandle *__pyx_v_handle, size_t __pyx_v_size, CUmemAllocationProp const *__pyx_v_prop, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4291
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4291, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4292
 *     global __cuMemCreate
 *     cuPythonInit()
 *     if __cuMemCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4293
 *     cuPythonInit()
 *     if __cuMemCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, size_t, const CUmemAllocationProp*, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemCreate)(handle, size, prop, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4294
 *     if __cuMemCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, size_t, const CUmemAllocationProp*, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemCreate)(handle, size, prop, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemCreate_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4294, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4294, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4293
 *     cuPythonInit()
 *     if __cuMemCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, size_t, const CUmemAllocationProp*, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemCreate)(handle, size, prop, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4292
 *     global __cuMemCreate
 *     cuPythonInit()
 *     if __cuMemCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4295
 *         with gil:
 *             raise RuntimeError('Function "cuMemCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, size_t, const CUmemAllocationProp*, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemCreate)(handle, size, prop, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle *, size_t, CUmemAllocationProp const *, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate)(__pyx_v_handle, __pyx_v_size, __pyx_v_prop, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4295, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4296
 *             raise RuntimeError('Function "cuMemCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, size_t, const CUmemAllocationProp*, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemCreate)(handle, size, prop, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4289
 *     return err
 * 
 * cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4298
 *     return err
 * 
 * cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemRelease
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRelease(CUmemGenericAllocationHandle __pyx_v_handle) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemRelease", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4300
 * cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemRelease
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemRelease == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4300, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4301
 *     global __cuMemRelease
 *     cuPythonInit()
 *     if __cuMemRelease == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRelease" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4302
 *     cuPythonInit()
 *     if __cuMemRelease == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRelease" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRelease)(handle)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4303
 *     if __cuMemRelease == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemRelease" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRelease)(handle)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemRelease_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4303, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4303, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4302
 *     cuPythonInit()
 *     if __cuMemRelease == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRelease" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRelease)(handle)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4301
 *     global __cuMemRelease
 *     cuPythonInit()
 *     if __cuMemRelease == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRelease" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4304
 *         with gil:
 *             raise RuntimeError('Function "cuMemRelease" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRelease)(handle)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease)(__pyx_v_handle); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4304, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4305
 *             raise RuntimeError('Function "cuMemRelease" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRelease)(handle)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4298
 *     return err
 * 
 * cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemRelease
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemRelease", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4307
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemMap(CUdeviceptr __pyx_v_ptr, size_t __pyx_v_size, size_t __pyx_v_offset, CUmemGenericAllocationHandle __pyx_v_handle, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemMap", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4309
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4309, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4310
 *     global __cuMemMap
 *     cuPythonInit()
 *     if __cuMemMap == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemMap" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4311
 *     cuPythonInit()
 *     if __cuMemMap == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemMap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMap)(ptr, size, offset, handle, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4312
 *     if __cuMemMap == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemMap" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMap)(ptr, size, offset, handle, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemMap_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4312, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4312, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4311
 *     cuPythonInit()
 *     if __cuMemMap == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemMap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMap)(ptr, size, offset, handle, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4310
 *     global __cuMemMap
 *     cuPythonInit()
 *     if __cuMemMap == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemMap" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4313
 *         with gil:
 *             raise RuntimeError('Function "cuMemMap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMap)(ptr, size, offset, handle, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap)(__pyx_v_ptr, __pyx_v_size, __pyx_v_offset, __pyx_v_handle, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4313, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4314
 *             raise RuntimeError('Function "cuMemMap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMap)(ptr, size, offset, handle, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4307
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemMap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4316
 *     return err
 * 
 * cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemMapArrayAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemMapArrayAsync(CUarrayMapInfo *__pyx_v_mapInfoList, unsigned int __pyx_v_count, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemMapArrayAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4318
 * cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemMapArrayAsync
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemMapArrayAsync == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4318, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4319
 *     global __cuMemMapArrayAsync
 *     cuPythonInit()
 *     if __cuMemMapArrayAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4320
 *     cuPythonInit()
 *     if __cuMemMapArrayAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
 *     err = (<CUresult (*)(CUarrayMapInfo*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMapArrayAsync)(mapInfoList, count, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4321
 *     if __cuMemMapArrayAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarrayMapInfo*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMapArrayAsync)(mapInfoList, count, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemMapArrayAsync_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4321, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4321, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4320
 *     cuPythonInit()
 *     if __cuMemMapArrayAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
 *     err = (<CUresult (*)(CUarrayMapInfo*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMapArrayAsync)(mapInfoList, count, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4319
 *     global __cuMemMapArrayAsync
 *     cuPythonInit()
 *     if __cuMemMapArrayAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4322
 *         with gil:
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
 *     err = (<CUresult (*)(CUarrayMapInfo*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMapArrayAsync)(mapInfoList, count, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarrayMapInfo *, unsigned int, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync)(__pyx_v_mapInfoList, __pyx_v_count, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4322, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4323
 *             raise RuntimeError('Function "cuMemMapArrayAsync" not found')
 *     err = (<CUresult (*)(CUarrayMapInfo*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemMapArrayAsync)(mapInfoList, count, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4316
 *     return err
 * 
 * cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemMapArrayAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemMapArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4325
 *     return err
 * 
 * cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemUnmap
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemUnmap(CUdeviceptr __pyx_v_ptr, size_t __pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemUnmap", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4327
 * cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemUnmap
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemUnmap == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4327, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4328
 *     global __cuMemUnmap
 *     cuPythonInit()
 *     if __cuMemUnmap == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemUnmap" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4329
 *     cuPythonInit()
 *     if __cuMemUnmap == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemUnmap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemUnmap)(ptr, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4330
 *     if __cuMemUnmap == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemUnmap" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemUnmap)(ptr, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemUnmap_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4330, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4330, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4329
 *     cuPythonInit()
 *     if __cuMemUnmap == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemUnmap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemUnmap)(ptr, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4328
 *     global __cuMemUnmap
 *     cuPythonInit()
 *     if __cuMemUnmap == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemUnmap" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4331
 *         with gil:
 *             raise RuntimeError('Function "cuMemUnmap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemUnmap)(ptr, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap)(__pyx_v_ptr, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4331, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4332
 *             raise RuntimeError('Function "cuMemUnmap" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemUnmap)(ptr, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4325
 *     return err
 * 
 * cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemUnmap
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemUnmap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4334
 *     return err
 * 
 * cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemSetAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemSetAccess(CUdeviceptr __pyx_v_ptr, size_t __pyx_v_size, CUmemAccessDesc const *__pyx_v_desc, size_t __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemSetAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4336
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4336, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4337
 *     global __cuMemSetAccess
 *     cuPythonInit()
 *     if __cuMemSetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4338
 *     cuPythonInit()
 *     if __cuMemSetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetAccess)(ptr, size, desc, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4339
 *     if __cuMemSetAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetAccess)(ptr, size, desc, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemSetAccess_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4339, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4339, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4338
 *     cuPythonInit()
 *     if __cuMemSetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetAccess)(ptr, size, desc, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4337
 *     global __cuMemSetAccess
 *     cuPythonInit()
 *     if __cuMemSetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4340
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetAccess)(ptr, size, desc, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, CUmemAccessDesc const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess)(__pyx_v_ptr, __pyx_v_size, __pyx_v_desc, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4340, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4341
 *             raise RuntimeError('Function "cuMemSetAccess" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetAccess)(ptr, size, desc, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4334
 *     return err
 * 
 * cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemSetAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4343
 *     return err
 * 
 * cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAccess(unsigned PY_LONG_LONG *__pyx_v_flags, CUmemLocation const *__pyx_v_location, CUdeviceptr __pyx_v_ptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4345
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4345, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4346
 *     global __cuMemGetAccess
 *     cuPythonInit()
 *     if __cuMemGetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4347
 *     cuPythonInit()
 *     if __cuMemGetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
 *     err = (<CUresult (*)(unsigned long long*, const CUmemLocation*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAccess)(flags, location, ptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4348
 *     if __cuMemGetAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned long long*, const CUmemLocation*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAccess)(flags, location, ptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetAccess_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4348, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4348, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4347
 *     cuPythonInit()
 *     if __cuMemGetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
 *     err = (<CUresult (*)(unsigned long long*, const CUmemLocation*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAccess)(flags, location, ptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4346
 *     global __cuMemGetAccess
 *     cuPythonInit()
 *     if __cuMemGetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4349
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
 *     err = (<CUresult (*)(unsigned long long*, const CUmemLocation*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAccess)(flags, location, ptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned PY_LONG_LONG *, CUmemLocation const *, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess)(__pyx_v_flags, __pyx_v_location, __pyx_v_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4349, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4350
 *             raise RuntimeError('Function "cuMemGetAccess" not found')
 *     err = (<CUresult (*)(unsigned long long*, const CUmemLocation*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAccess)(flags, location, ptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4343
 *     return err
 * 
 * cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4352
 *     return err
 * 
 * cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemExportToShareableHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemExportToShareableHandle(void *__pyx_v_shareableHandle, CUmemGenericAllocationHandle __pyx_v_handle, CUmemAllocationHandleType __pyx_v_handleType, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemExportToShareableHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4354
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4354, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4355
 *     global __cuMemExportToShareableHandle
 *     cuPythonInit()
 *     if __cuMemExportToShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4356
 *     cuPythonInit()
 *     if __cuMemExportToShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4357
 *     if __cuMemExportToShareableHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemExportToShareableH};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4357, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4357, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4356
 *     cuPythonInit()
 *     if __cuMemExportToShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4355
 *     global __cuMemExportToShareableHandle
 *     cuPythonInit()
 *     if __cuMemExportToShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4358
 *         with gil:
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle)(__pyx_v_shareableHandle, __pyx_v_handle, __pyx_v_handleType, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4358, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4359
 *             raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4352
 *     return err
 * 
 * cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemExportToShareableHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemExportToShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4361
 *     return err
 * 
 * cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemImportFromShareableHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemImportFromShareableHandle(CUmemGenericAllocationHandle *__pyx_v_handle, void *__pyx_v_osHandle, CUmemAllocationHandleType __pyx_v_shHandleType) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemImportFromShareableHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4363
 * cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemImportFromShareableHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemImportFromShareableHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4363, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4364
 *     global __cuMemImportFromShareableHandle
 *     cuPythonInit()
 *     if __cuMemImportFromShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4365
 *     cuPythonInit()
 *     if __cuMemImportFromShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*, CUmemAllocationHandleType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4366
 *     if __cuMemImportFromShareableHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*, CUmemAllocationHandleType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemImportFromShareabl};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4366, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4366, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4365
 *     cuPythonInit()
 *     if __cuMemImportFromShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*, CUmemAllocationHandleType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4364
 *     global __cuMemImportFromShareableHandle
 *     cuPythonInit()
 *     if __cuMemImportFromShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4367
 *         with gil:
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*, CUmemAllocationHandleType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle *, void *, CUmemAllocationHandleType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle)(__pyx_v_handle, __pyx_v_osHandle, __pyx_v_shHandleType); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4367, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4368
 *             raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*, CUmemAllocationHandleType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4361
 *     return err
 * 
 * cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemImportFromShareableHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemImportFromShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4370
 *     return err
 * 
 * cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationGranularity
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAllocationGranularity(size_t *__pyx_v_granularity, CUmemAllocationProp const *__pyx_v_prop, CUmemAllocationGranularity_flags __pyx_v_option) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetAllocationGranularity", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4372
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4372, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4373
 *     global __cuMemGetAllocationGranularity
 *     cuPythonInit()
 *     if __cuMemGetAllocationGranularity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4374
 *     cuPythonInit()
 *     if __cuMemGetAllocationGranularity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmemAllocationProp*, CUmemAllocationGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationGranularity)(granularity, prop, option)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4375
 *     if __cuMemGetAllocationGranularity == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, const CUmemAllocationProp*, CUmemAllocationGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationGranularity)(granularity, prop, option)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetAllocationGranu};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4375, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4375, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4374
 *     cuPythonInit()
 *     if __cuMemGetAllocationGranularity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmemAllocationProp*, CUmemAllocationGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationGranularity)(granularity, prop, option)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4373
 *     global __cuMemGetAllocationGranularity
 *     cuPythonInit()
 *     if __cuMemGetAllocationGranularity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4376
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmemAllocationProp*, CUmemAllocationGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationGranularity)(granularity, prop, option)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUmemAllocationProp const *, CUmemAllocationGranularity_flags))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity)(__pyx_v_granularity, __pyx_v_prop, __pyx_v_option); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4376, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4377
 *             raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmemAllocationProp*, CUmemAllocationGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationGranularity)(granularity, prop, option)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4370
 *     return err
 * 
 * cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationGranularity
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetAllocationGranularity", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4379
 *     return err
 * 
 * cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp *__pyx_v_prop, CUmemGenericAllocationHandle __pyx_v_handle) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetAllocationPropertiesFromHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4381
 * cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4381, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4382
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     cuPythonInit()
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4383
 *     cuPythonInit()
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
 *     err = (<CUresult (*)(CUmemAllocationProp*, CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationPropertiesFromHandle)(prop, handle)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4384
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemAllocationProp*, CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationPropertiesFromHandle)(prop, handle)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetAllocationPrope};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4384, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4384, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4383
 *     cuPythonInit()
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
 *     err = (<CUresult (*)(CUmemAllocationProp*, CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationPropertiesFromHandle)(prop, handle)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4382
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     cuPythonInit()
 *     if __cuMemGetAllocationPropertiesFromHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4385
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
 *     err = (<CUresult (*)(CUmemAllocationProp*, CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationPropertiesFromHandle)(prop, handle)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemAllocationProp *, CUmemGenericAllocationHandle))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle)(__pyx_v_prop, __pyx_v_handle); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4385, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4386
 *             raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
 *     err = (<CUresult (*)(CUmemAllocationProp*, CUmemGenericAllocationHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetAllocationPropertiesFromHandle)(prop, handle)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4379
 *     return err
 * 
 * cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetAllocationPropertiesFromHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4388
 *     return err
 * 
 * cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemRetainAllocationHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRetainAllocationHandle(CUmemGenericAllocationHandle *__pyx_v_handle, void *__pyx_v_addr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemRetainAllocationHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4390
 * cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemRetainAllocationHandle
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemRetainAllocationHandle == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4390, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4391
 *     global __cuMemRetainAllocationHandle
 *     cuPythonInit()
 *     if __cuMemRetainAllocationHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4392
 *     cuPythonInit()
 *     if __cuMemRetainAllocationHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRetainAllocationHandle)(handle, addr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4393
 *     if __cuMemRetainAllocationHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRetainAllocationHandle)(handle, addr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemRetainAllocationHa};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4393, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4393, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4392
 *     cuPythonInit()
 *     if __cuMemRetainAllocationHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRetainAllocationHandle)(handle, addr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4391
 *     global __cuMemRetainAllocationHandle
 *     cuPythonInit()
 *     if __cuMemRetainAllocationHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4394
 *         with gil:
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRetainAllocationHandle)(handle, addr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle *, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle)(__pyx_v_handle, __pyx_v_addr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4394, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4395
 *             raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRetainAllocationHandle)(handle, addr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4388
 *     return err
 * 
 * cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemRetainAllocationHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemRetainAllocationHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4397
 *     return err
 * 
 * cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFreeAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFreeAsync(CUdeviceptr __pyx_v_dptr, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemFreeAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4399
 * cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemFreeAsync
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemFreeAsync == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4399, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4400
 *     global __cuMemFreeAsync
 *     cuPythonInit()
 *     if __cuMemFreeAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4401
 *     cuPythonInit()
 *     if __cuMemFreeAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeAsync)(dptr, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4402
 *     if __cuMemFreeAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeAsync)(dptr, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemFreeAsync_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4402, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4402, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4401
 *     cuPythonInit()
 *     if __cuMemFreeAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeAsync)(dptr, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4400
 *     global __cuMemFreeAsync
 *     cuPythonInit()
 *     if __cuMemFreeAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4403
 *         with gil:
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeAsync)(dptr, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync)(__pyx_v_dptr, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4403, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4404
 *             raise RuntimeError('Function "cuMemFreeAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemFreeAsync)(dptr, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4397
 *     return err
 * 
 * cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemFreeAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemFreeAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4406
 *     return err
 * 
 * cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocAsync(CUdeviceptr *__pyx_v_dptr, size_t __pyx_v_bytesize, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAllocAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4408
 * cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemAllocAsync
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemAllocAsync == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4408, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4409
 *     global __cuMemAllocAsync
 *     cuPythonInit()
 *     if __cuMemAllocAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4410
 *     cuPythonInit()
 *     if __cuMemAllocAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocAsync)(dptr, bytesize, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4411
 *     if __cuMemAllocAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocAsync)(dptr, bytesize, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAllocAsync_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4411, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4411, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4410
 *     cuPythonInit()
 *     if __cuMemAllocAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocAsync)(dptr, bytesize, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4409
 *     global __cuMemAllocAsync
 *     cuPythonInit()
 *     if __cuMemAllocAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4412
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocAsync)(dptr, bytesize, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync)(__pyx_v_dptr, __pyx_v_bytesize, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4412, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4413
 *             raise RuntimeError('Function "cuMemAllocAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocAsync)(dptr, bytesize, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4406
 *     return err
 * 
 * cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAllocAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4415
 *     return err
 * 
 * cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolTrimTo
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolTrimTo(CUmemoryPool __pyx_v_pool, size_t __pyx_v_minBytesToKeep) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolTrimTo", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4417
 * cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolTrimTo
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolTrimTo == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4417, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4418
 *     global __cuMemPoolTrimTo
 *     cuPythonInit()
 *     if __cuMemPoolTrimTo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4419
 *     cuPythonInit()
 *     if __cuMemPoolTrimTo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
 *     err = (<CUresult (*)(CUmemoryPool, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolTrimTo)(pool, minBytesToKeep)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4420
 *     if __cuMemPoolTrimTo == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolTrimTo)(pool, minBytesToKeep)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolTrimTo_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4420, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4420, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4419
 *     cuPythonInit()
 *     if __cuMemPoolTrimTo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
 *     err = (<CUresult (*)(CUmemoryPool, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolTrimTo)(pool, minBytesToKeep)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4418
 *     global __cuMemPoolTrimTo
 *     cuPythonInit()
 *     if __cuMemPoolTrimTo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4421
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
 *     err = (<CUresult (*)(CUmemoryPool, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolTrimTo)(pool, minBytesToKeep)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo)(__pyx_v_pool, __pyx_v_minBytesToKeep); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4421, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4422
 *             raise RuntimeError('Function "cuMemPoolTrimTo" not found')
 *     err = (<CUresult (*)(CUmemoryPool, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolTrimTo)(pool, minBytesToKeep)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4415
 *     return err
 * 
 * cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolTrimTo
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolTrimTo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4424
 *     return err
 * 
 * cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolSetAttribute(CUmemoryPool __pyx_v_pool, CUmemPool_attribute __pyx_v_attr, void *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4426
 * cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolSetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolSetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4426, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4427
 *     global __cuMemPoolSetAttribute
 *     cuPythonInit()
 *     if __cuMemPoolSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4428
 *     cuPythonInit()
 *     if __cuMemPoolSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAttribute)(pool, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4429
 *     if __cuMemPoolSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAttribute)(pool, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolSetAttribute_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4429, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4429, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4428
 *     cuPythonInit()
 *     if __cuMemPoolSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAttribute)(pool, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4427
 *     global __cuMemPoolSetAttribute
 *     cuPythonInit()
 *     if __cuMemPoolSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4430
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAttribute)(pool, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool, CUmemPool_attribute, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute)(__pyx_v_pool, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4430, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4431
 *             raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAttribute)(pool, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4424
 *     return err
 * 
 * cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4433
 *     return err
 * 
 * cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolGetAttribute(CUmemoryPool __pyx_v_pool, CUmemPool_attribute __pyx_v_attr, void *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4435
 * cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4435, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4436
 *     global __cuMemPoolGetAttribute
 *     cuPythonInit()
 *     if __cuMemPoolGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4437
 *     cuPythonInit()
 *     if __cuMemPoolGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAttribute)(pool, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4438
 *     if __cuMemPoolGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAttribute)(pool, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolGetAttribute_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4438, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4438, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4437
 *     cuPythonInit()
 *     if __cuMemPoolGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAttribute)(pool, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4436
 *     global __cuMemPoolGetAttribute
 *     cuPythonInit()
 *     if __cuMemPoolGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4439
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAttribute)(pool, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool, CUmemPool_attribute, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute)(__pyx_v_pool, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4439, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4440
 *             raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
 *     err = (<CUresult (*)(CUmemoryPool, CUmemPool_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAttribute)(pool, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4433
 *     return err
 * 
 * cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4442
 *     return err
 * 
 * cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolSetAccess(CUmemoryPool __pyx_v_pool, CUmemAccessDesc const *__pyx_v_map, size_t __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolSetAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4444
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4444, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4445
 *     global __cuMemPoolSetAccess
 *     cuPythonInit()
 *     if __cuMemPoolSetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4446
 *     cuPythonInit()
 *     if __cuMemPoolSetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
 *     err = (<CUresult (*)(CUmemoryPool, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAccess)(pool, map, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4447
 *     if __cuMemPoolSetAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAccess)(pool, map, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolSetAccess_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4447, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4447, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4446
 *     cuPythonInit()
 *     if __cuMemPoolSetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
 *     err = (<CUresult (*)(CUmemoryPool, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAccess)(pool, map, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4445
 *     global __cuMemPoolSetAccess
 *     cuPythonInit()
 *     if __cuMemPoolSetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4448
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
 *     err = (<CUresult (*)(CUmemoryPool, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAccess)(pool, map, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool, CUmemAccessDesc const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess)(__pyx_v_pool, __pyx_v_map, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4448, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4449
 *             raise RuntimeError('Function "cuMemPoolSetAccess" not found')
 *     err = (<CUresult (*)(CUmemoryPool, const CUmemAccessDesc*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolSetAccess)(pool, map, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4442
 *     return err
 * 
 * cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4451
 *     return err
 * 
 * cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolGetAccess(CUmemAccess_flags *__pyx_v_flags, CUmemoryPool __pyx_v_memPool, CUmemLocation *__pyx_v_location) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolGetAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4453
 * cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolGetAccess
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolGetAccess == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4453, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4454
 *     global __cuMemPoolGetAccess
 *     cuPythonInit()
 *     if __cuMemPoolGetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4455
 *     cuPythonInit()
 *     if __cuMemPoolGetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
 *     err = (<CUresult (*)(CUmemAccess_flags*, CUmemoryPool, CUmemLocation*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAccess)(flags, memPool, location)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4456
 *     if __cuMemPoolGetAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemAccess_flags*, CUmemoryPool, CUmemLocation*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAccess)(flags, memPool, location)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolGetAccess_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4456, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4456, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4455
 *     cuPythonInit()
 *     if __cuMemPoolGetAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
 *     err = (<CUresult (*)(CUmemAccess_flags*, CUmemoryPool, CUmemLocation*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAccess)(flags, memPool, location)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4454
 *     global __cuMemPoolGetAccess
 *     cuPythonInit()
 *     if __cuMemPoolGetAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4457
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
 *     err = (<CUresult (*)(CUmemAccess_flags*, CUmemoryPool, CUmemLocation*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAccess)(flags, memPool, location)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemAccess_flags *, CUmemoryPool, CUmemLocation *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess)(__pyx_v_flags, __pyx_v_memPool, __pyx_v_location); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4457, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4458
 *             raise RuntimeError('Function "cuMemPoolGetAccess" not found')
 *     err = (<CUresult (*)(CUmemAccess_flags*, CUmemoryPool, CUmemLocation*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolGetAccess)(flags, memPool, location)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4451
 *     return err
 * 
 * cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolGetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4460
 *     return err
 * 
 * cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolCreate(CUmemoryPool *__pyx_v_pool, CUmemPoolProps const *__pyx_v_poolProps) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4462
 * cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4462, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4463
 *     global __cuMemPoolCreate
 *     cuPythonInit()
 *     if __cuMemPoolCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4464
 *     cuPythonInit()
 *     if __cuMemPoolCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, const CUmemPoolProps*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolCreate)(pool, poolProps)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4465
 *     if __cuMemPoolCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, const CUmemPoolProps*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolCreate)(pool, poolProps)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolCreate_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4465, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4465, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4464
 *     cuPythonInit()
 *     if __cuMemPoolCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, const CUmemPoolProps*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolCreate)(pool, poolProps)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4463
 *     global __cuMemPoolCreate
 *     cuPythonInit()
 *     if __cuMemPoolCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4466
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, const CUmemPoolProps*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolCreate)(pool, poolProps)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, CUmemPoolProps const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate)(__pyx_v_pool, __pyx_v_poolProps); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4466, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4467
 *             raise RuntimeError('Function "cuMemPoolCreate" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, const CUmemPoolProps*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolCreate)(pool, poolProps)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4460
 *     return err
 * 
 * cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4469
 *     return err
 * 
 * cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolDestroy(CUmemoryPool __pyx_v_pool) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4471
 * cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4471, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4472
 *     global __cuMemPoolDestroy
 *     cuPythonInit()
 *     if __cuMemPoolDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4473
 *     cuPythonInit()
 *     if __cuMemPoolDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
 *     err = (<CUresult (*)(CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolDestroy)(pool)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4474
 *     if __cuMemPoolDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolDestroy)(pool)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolDestroy_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4474, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4474, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4473
 *     cuPythonInit()
 *     if __cuMemPoolDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
 *     err = (<CUresult (*)(CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolDestroy)(pool)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4472
 *     global __cuMemPoolDestroy
 *     cuPythonInit()
 *     if __cuMemPoolDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4475
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
 *     err = (<CUresult (*)(CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolDestroy)(pool)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy)(__pyx_v_pool); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4475, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4476
 *             raise RuntimeError('Function "cuMemPoolDestroy" not found')
 *     err = (<CUresult (*)(CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolDestroy)(pool)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4469
 *     return err
 * 
 * cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4478
 *     return err
 * 
 * cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetDefaultMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetDefaultMemPool(CUmemoryPool *__pyx_v_pool_out, CUmemLocation *__pyx_v_location, CUmemAllocationType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetDefaultMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4480
 * cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemGetDefaultMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemGetDefaultMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4480, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4481
 *     global __cuMemGetDefaultMemPool
 *     cuPythonInit()
 *     if __cuMemGetDefaultMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4482
 *     cuPythonInit()
 *     if __cuMemGetDefaultMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetDefaultMemPool)(pool_out, location, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4483
 *     if __cuMemGetDefaultMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetDefaultMemPool)(pool_out, location, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetDefaultMemPool};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4483, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4483, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4482
 *     cuPythonInit()
 *     if __cuMemGetDefaultMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetDefaultMemPool)(pool_out, location, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4481
 *     global __cuMemGetDefaultMemPool
 *     cuPythonInit()
 *     if __cuMemGetDefaultMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4484
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetDefaultMemPool)(pool_out, location, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, CUmemLocation *, CUmemAllocationType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool)(__pyx_v_pool_out, __pyx_v_location, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4484, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4485
 *             raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetDefaultMemPool)(pool_out, location, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4478
 *     return err
 * 
 * cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetDefaultMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4487
 *     return err
 * 
 * cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetMemPool(CUmemoryPool *__pyx_v_pool, CUmemLocation *__pyx_v_location, CUmemAllocationType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemGetMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4489
 * cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemGetMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemGetMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4489, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4490
 *     global __cuMemGetMemPool
 *     cuPythonInit()
 *     if __cuMemGetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4491
 *     cuPythonInit()
 *     if __cuMemGetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetMemPool)(pool, location, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4492
 *     if __cuMemGetMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetMemPool)(pool, location, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemGetMemPool_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4492, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4492, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4491
 *     cuPythonInit()
 *     if __cuMemGetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetMemPool)(pool, location, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4490
 *     global __cuMemGetMemPool
 *     cuPythonInit()
 *     if __cuMemGetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4493
 *         with gil:
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetMemPool)(pool, location, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, CUmemLocation *, CUmemAllocationType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool)(__pyx_v_pool, __pyx_v_location, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4493, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4494
 *             raise RuntimeError('Function "cuMemGetMemPool" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, CUmemLocation*, CUmemAllocationType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemGetMemPool)(pool, location, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4487
 *     return err
 * 
 * cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemGetMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4496
 *     return err
 * 
 * cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemSetMemPool
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemSetMemPool(CUmemLocation *__pyx_v_location, CUmemAllocationType __pyx_v_typename, CUmemoryPool __pyx_v_pool) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemSetMemPool", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4498
 * cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemSetMemPool
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemSetMemPool == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4498, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4499
 *     global __cuMemSetMemPool
 *     cuPythonInit()
 *     if __cuMemSetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4500
 *     cuPythonInit()
 *     if __cuMemSetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
 *     err = (<CUresult (*)(CUmemLocation*, CUmemAllocationType, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetMemPool)(location, typename, pool)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4501
 *     if __cuMemSetMemPool == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemLocation*, CUmemAllocationType, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetMemPool)(location, typename, pool)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemSetMemPool_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4501, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4501, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4500
 *     cuPythonInit()
 *     if __cuMemSetMemPool == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
 *     err = (<CUresult (*)(CUmemLocation*, CUmemAllocationType, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetMemPool)(location, typename, pool)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4499
 *     global __cuMemSetMemPool
 *     cuPythonInit()
 *     if __cuMemSetMemPool == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4502
 *         with gil:
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
 *     err = (<CUresult (*)(CUmemLocation*, CUmemAllocationType, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetMemPool)(location, typename, pool)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemLocation *, CUmemAllocationType, CUmemoryPool))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool)(__pyx_v_location, __pyx_v_typename, __pyx_v_pool); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4502, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4503
 *             raise RuntimeError('Function "cuMemSetMemPool" not found')
 *     err = (<CUresult (*)(CUmemLocation*, CUmemAllocationType, CUmemoryPool) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemSetMemPool)(location, typename, pool)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4496
 *     return err
 * 
 * cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemSetMemPool
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4505
 *     return err
 * 
 * cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocFromPoolAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocFromPoolAsync(CUdeviceptr *__pyx_v_dptr, size_t __pyx_v_bytesize, CUmemoryPool __pyx_v_pool, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAllocFromPoolAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4507
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4507, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4508
 *     global __cuMemAllocFromPoolAsync
 *     cuPythonInit()
 *     if __cuMemAllocFromPoolAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4509
 *     cuPythonInit()
 *     if __cuMemAllocFromPoolAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUmemoryPool, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4510
 *     if __cuMemAllocFromPoolAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUmemoryPool, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAllocFromPoolAsync};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4510, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4510, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4509
 *     cuPythonInit()
 *     if __cuMemAllocFromPoolAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUmemoryPool, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4508
 *     global __cuMemAllocFromPoolAsync
 *     cuPythonInit()
 *     if __cuMemAllocFromPoolAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4511
 *         with gil:
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUmemoryPool, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t, CUmemoryPool, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync)(__pyx_v_dptr, __pyx_v_bytesize, __pyx_v_pool, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4511, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4512
 *             raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t, CUmemoryPool, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4505
 *     return err
 * 
 * cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAllocFromPoolAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAllocFromPoolAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4514
 *     return err
 * 
 * cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportToShareableHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolExportToShareableHandle(void *__pyx_v_handle_out, CUmemoryPool __pyx_v_pool, CUmemAllocationHandleType __pyx_v_handleType, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolExportToShareableHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4516
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4516, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4517
 *     global __cuMemPoolExportToShareableHandle
 *     cuPythonInit()
 *     if __cuMemPoolExportToShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4518
 *     cuPythonInit()
 *     if __cuMemPoolExportToShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4519
 *     if __cuMemPoolExportToShareableHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolExportToSharea};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4519, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4519, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4518
 *     cuPythonInit()
 *     if __cuMemPoolExportToShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4517
 *     global __cuMemPoolExportToShareableHandle
 *     cuPythonInit()
 *     if __cuMemPoolExportToShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4520
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUmemoryPool, CUmemAllocationHandleType, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle)(__pyx_v_handle_out, __pyx_v_pool, __pyx_v_handleType, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4520, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4521
 *             raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
 *     err = (<CUresult (*)(void*, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4514
 *     return err
 * 
 * cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportToShareableHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolExportToShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4523
 *     return err
 * 
 * cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportFromShareableHandle
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolImportFromShareableHandle(CUmemoryPool *__pyx_v_pool_out, void *__pyx_v_handle, CUmemAllocationHandleType __pyx_v_handleType, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolImportFromShareableHandle", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4525
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4525, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4526
 *     global __cuMemPoolImportFromShareableHandle
 *     cuPythonInit()
 *     if __cuMemPoolImportFromShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4527
 *     cuPythonInit()
 *     if __cuMemPoolImportFromShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, void*, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4528
 *     if __cuMemPoolImportFromShareableHandle == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemoryPool*, void*, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolImportFromShar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4528, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4528, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4527
 *     cuPythonInit()
 *     if __cuMemPoolImportFromShareableHandle == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, void*, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4526
 *     global __cuMemPoolImportFromShareableHandle
 *     cuPythonInit()
 *     if __cuMemPoolImportFromShareableHandle == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4529
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, void*, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemoryPool *, void *, CUmemAllocationHandleType, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle)(__pyx_v_pool_out, __pyx_v_handle, __pyx_v_handleType, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4529, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4530
 *             raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
 *     err = (<CUresult (*)(CUmemoryPool*, void*, CUmemAllocationHandleType, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4523
 *     return err
 * 
 * cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportFromShareableHandle
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolImportFromShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4532
 *     return err
 * 
 * cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportPointer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolExportPointer(CUmemPoolPtrExportData *__pyx_v_shareData_out, CUdeviceptr __pyx_v_ptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolExportPointer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4534
 * cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolExportPointer
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolExportPointer == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4534, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4535
 *     global __cuMemPoolExportPointer
 *     cuPythonInit()
 *     if __cuMemPoolExportPointer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4536
 *     cuPythonInit()
 *     if __cuMemPoolExportPointer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
 *     err = (<CUresult (*)(CUmemPoolPtrExportData*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportPointer)(shareData_out, ptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4537
 *     if __cuMemPoolExportPointer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemPoolPtrExportData*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportPointer)(shareData_out, ptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolExportPointer};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4537, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4537, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4536
 *     cuPythonInit()
 *     if __cuMemPoolExportPointer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
 *     err = (<CUresult (*)(CUmemPoolPtrExportData*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportPointer)(shareData_out, ptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4535
 *     global __cuMemPoolExportPointer
 *     cuPythonInit()
 *     if __cuMemPoolExportPointer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4538
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
 *     err = (<CUresult (*)(CUmemPoolPtrExportData*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportPointer)(shareData_out, ptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemPoolPtrExportData *, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer)(__pyx_v_shareData_out, __pyx_v_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4538, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4539
 *             raise RuntimeError('Function "cuMemPoolExportPointer" not found')
 *     err = (<CUresult (*)(CUmemPoolPtrExportData*, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolExportPointer)(shareData_out, ptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4532
 *     return err
 * 
 * cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportPointer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolExportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4541
 *     return err
 * 
 * cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportPointer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolImportPointer(CUdeviceptr *__pyx_v_ptr_out, CUmemoryPool __pyx_v_pool, CUmemPoolPtrExportData *__pyx_v_shareData) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPoolImportPointer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4543
 * cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMemPoolImportPointer
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMemPoolImportPointer == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4543, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4544
 *     global __cuMemPoolImportPointer
 *     cuPythonInit()
 *     if __cuMemPoolImportPointer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4545
 *     cuPythonInit()
 *     if __cuMemPoolImportPointer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUmemoryPool, CUmemPoolPtrExportData*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportPointer)(ptr_out, pool, shareData)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4546
 *     if __cuMemPoolImportPointer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, CUmemoryPool, CUmemPoolPtrExportData*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportPointer)(ptr_out, pool, shareData)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPoolImportPointer};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4546, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4546, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4545
 *     cuPythonInit()
 *     if __cuMemPoolImportPointer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUmemoryPool, CUmemPoolPtrExportData*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportPointer)(ptr_out, pool, shareData)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4544
 *     global __cuMemPoolImportPointer
 *     cuPythonInit()
 *     if __cuMemPoolImportPointer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4547
 *         with gil:
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUmemoryPool, CUmemPoolPtrExportData*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportPointer)(ptr_out, pool, shareData)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, CUmemoryPool, CUmemPoolPtrExportData *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer)(__pyx_v_ptr_out, __pyx_v_pool, __pyx_v_shareData); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4547, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4548
 *             raise RuntimeError('Function "cuMemPoolImportPointer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUmemoryPool, CUmemPoolPtrExportData*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPoolImportPointer)(ptr_out, pool, shareData)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4541
 *     return err
 * 
 * cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportPointer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPoolImportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4550
 *     return err
 * 
 * cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastCreate(CUmemGenericAllocationHandle *__pyx_v_mcHandle, CUmulticastObjectProp const *__pyx_v_prop) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4552
 * cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMulticastCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMulticastCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4552, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4553
 *     global __cuMulticastCreate
 *     cuPythonInit()
 *     if __cuMulticastCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4554
 *     cuPythonInit()
 *     if __cuMulticastCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, const CUmulticastObjectProp*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastCreate)(mcHandle, prop)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4555
 *     if __cuMulticastCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, const CUmulticastObjectProp*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastCreate)(mcHandle, prop)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastCreate_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4555, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4555, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4554
 *     cuPythonInit()
 *     if __cuMulticastCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, const CUmulticastObjectProp*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastCreate)(mcHandle, prop)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4553
 *     global __cuMulticastCreate
 *     cuPythonInit()
 *     if __cuMulticastCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4556
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, const CUmulticastObjectProp*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastCreate)(mcHandle, prop)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle *, CUmulticastObjectProp const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate)(__pyx_v_mcHandle, __pyx_v_prop); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4556, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4557
 *             raise RuntimeError('Function "cuMulticastCreate" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle*, const CUmulticastObjectProp*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastCreate)(mcHandle, prop)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4550
 *     return err
 * 
 * cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4559
 *     return err
 * 
 * cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastAddDevice
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastAddDevice(CUmemGenericAllocationHandle __pyx_v_mcHandle, CUdevice __pyx_v_dev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastAddDevice", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4561
 * cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuMulticastAddDevice
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuMulticastAddDevice == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4561, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4562
 *     global __cuMulticastAddDevice
 *     cuPythonInit()
 *     if __cuMulticastAddDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4563
 *     cuPythonInit()
 *     if __cuMulticastAddDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastAddDevice)(mcHandle, dev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4564
 *     if __cuMulticastAddDevice == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastAddDevice)(mcHandle, dev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastAddDevice_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4564, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4564, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4563
 *     cuPythonInit()
 *     if __cuMulticastAddDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastAddDevice)(mcHandle, dev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4562
 *     global __cuMulticastAddDevice
 *     cuPythonInit()
 *     if __cuMulticastAddDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4565
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastAddDevice)(mcHandle, dev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice)(__pyx_v_mcHandle, __pyx_v_dev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4565, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4566
 *             raise RuntimeError('Function "cuMulticastAddDevice" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastAddDevice)(mcHandle, dev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4559
 *     return err
 * 
 * cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastAddDevice
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastAddDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4568
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindMem(CUmemGenericAllocationHandle __pyx_v_mcHandle, size_t __pyx_v_mcOffset, CUmemGenericAllocationHandle __pyx_v_memHandle, size_t __pyx_v_memOffset, size_t __pyx_v_size, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastBindMem", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4570
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4570, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4571
 *     global __cuMulticastBindMem
 *     cuPythonInit()
 *     if __cuMulticastBindMem == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4572
 *     cuPythonInit()
 *     if __cuMulticastBindMem == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4573
 *     if __cuMulticastBindMem == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastBindMem_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4573, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4573, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4572
 *     cuPythonInit()
 *     if __cuMulticastBindMem == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4571
 *     global __cuMulticastBindMem
 *     cuPythonInit()
 *     if __cuMulticastBindMem == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4574
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem)(__pyx_v_mcHandle, __pyx_v_mcOffset, __pyx_v_memHandle, __pyx_v_memOffset, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4574, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4575
 *             raise RuntimeError('Function "cuMulticastBindMem" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4568
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastBindMem", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4577
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindMem_v2(CUmemGenericAllocationHandle __pyx_v_mcHandle, CUdevice __pyx_v_dev, size_t __pyx_v_mcOffset, CUmemGenericAllocationHandle __pyx_v_memHandle, size_t __pyx_v_memOffset, size_t __pyx_v_size, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastBindMem_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4579
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4579, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4580
 *     global __cuMulticastBindMem_v2
 *     cuPythonInit()
 *     if __cuMulticastBindMem_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4581
 *     cuPythonInit()
 *     if __cuMulticastBindMem_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4582
 *     if __cuMulticastBindMem_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastBindMem_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4582, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4582, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4581
 *     cuPythonInit()
 *     if __cuMulticastBindMem_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4580
 *     global __cuMulticastBindMem_v2
 *     cuPythonInit()
 *     if __cuMulticastBindMem_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4583
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2)(__pyx_v_mcHandle, __pyx_v_dev, __pyx_v_mcOffset, __pyx_v_memHandle, __pyx_v_memOffset, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4583, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4584
 *             raise RuntimeError('Function "cuMulticastBindMem_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4577
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastBindMem_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4586
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindAddr(CUmemGenericAllocationHandle __pyx_v_mcHandle, size_t __pyx_v_mcOffset, CUdeviceptr __pyx_v_memptr, size_t __pyx_v_size, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastBindAddr", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4588
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4588, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4589
 *     global __cuMulticastBindAddr
 *     cuPythonInit()
 *     if __cuMulticastBindAddr == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4590
 *     cuPythonInit()
 *     if __cuMulticastBindAddr == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4591
 *     if __cuMulticastBindAddr == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastBindAddr_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4591, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4591, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4590
 *     cuPythonInit()
 *     if __cuMulticastBindAddr == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4589
 *     global __cuMulticastBindAddr
 *     cuPythonInit()
 *     if __cuMulticastBindAddr == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4592
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr)(__pyx_v_mcHandle, __pyx_v_mcOffset, __pyx_v_memptr, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4592, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4593
 *             raise RuntimeError('Function "cuMulticastBindAddr" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4586
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastBindAddr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4595
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindAddr_v2(CUmemGenericAllocationHandle __pyx_v_mcHandle, CUdevice __pyx_v_dev, size_t __pyx_v_mcOffset, CUdeviceptr __pyx_v_memptr, size_t __pyx_v_size, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastBindAddr_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4597
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4597, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4598
 *     global __cuMulticastBindAddr_v2
 *     cuPythonInit()
 *     if __cuMulticastBindAddr_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4599
 *     cuPythonInit()
 *     if __cuMulticastBindAddr_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4600
 *     if __cuMulticastBindAddr_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastBindAddr_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4600, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4600, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4599
 *     cuPythonInit()
 *     if __cuMulticastBindAddr_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4598
 *     global __cuMulticastBindAddr_v2
 *     cuPythonInit()
 *     if __cuMulticastBindAddr_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4601
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2)(__pyx_v_mcHandle, __pyx_v_dev, __pyx_v_mcOffset, __pyx_v_memptr, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4601, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4602
 *             raise RuntimeError('Function "cuMulticastBindAddr_v2" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4595
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastBindAddr_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4604
 *     return err
 * 
 * cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastUnbind
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastUnbind(CUmemGenericAllocationHandle __pyx_v_mcHandle, CUdevice __pyx_v_dev, size_t __pyx_v_mcOffset, size_t __pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastUnbind", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4606
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4606, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4607
 *     global __cuMulticastUnbind
 *     cuPythonInit()
 *     if __cuMulticastUnbind == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4608
 *     cuPythonInit()
 *     if __cuMulticastUnbind == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4609
 *     if __cuMulticastUnbind == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastUnbind_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4609, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4609, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4608
 *     cuPythonInit()
 *     if __cuMulticastUnbind == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4607
 *     global __cuMulticastUnbind
 *     cuPythonInit()
 *     if __cuMulticastUnbind == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4610
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind)(__pyx_v_mcHandle, __pyx_v_dev, __pyx_v_mcOffset, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4610, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4611
 *             raise RuntimeError('Function "cuMulticastUnbind" not found')
 *     err = (<CUresult (*)(CUmemGenericAllocationHandle, CUdevice, size_t, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4604
 *     return err
 * 
 * cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastUnbind
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastUnbind", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4613
 *     return err
 * 
 * cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastGetGranularity
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastGetGranularity(size_t *__pyx_v_granularity, CUmulticastObjectProp const *__pyx_v_prop, CUmulticastGranularity_flags __pyx_v_option) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMulticastGetGranularity", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4615
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4615, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4616
 *     global __cuMulticastGetGranularity
 *     cuPythonInit()
 *     if __cuMulticastGetGranularity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4617
 *     cuPythonInit()
 *     if __cuMulticastGetGranularity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmulticastObjectProp*, CUmulticastGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastGetGranularity)(granularity, prop, option)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4618
 *     if __cuMulticastGetGranularity == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, const CUmulticastObjectProp*, CUmulticastGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastGetGranularity)(granularity, prop, option)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMulticastGetGranulari};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4618, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4618, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4617
 *     cuPythonInit()
 *     if __cuMulticastGetGranularity == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmulticastObjectProp*, CUmulticastGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastGetGranularity)(granularity, prop, option)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4616
 *     global __cuMulticastGetGranularity
 *     cuPythonInit()
 *     if __cuMulticastGetGranularity == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4619
 *         with gil:
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmulticastObjectProp*, CUmulticastGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastGetGranularity)(granularity, prop, option)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUmulticastObjectProp const *, CUmulticastGranularity_flags))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity)(__pyx_v_granularity, __pyx_v_prop, __pyx_v_option); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4619, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4620
 *             raise RuntimeError('Function "cuMulticastGetGranularity" not found')
 *     err = (<CUresult (*)(size_t*, const CUmulticastObjectProp*, CUmulticastGranularity_flags) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMulticastGetGranularity)(granularity, prop, option)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4613
 *     return err
 * 
 * cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMulticastGetGranularity
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMulticastGetGranularity", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4622
 *     return err
 * 
 * cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerGetAttribute(void *__pyx_v_data, CUpointer_attribute __pyx_v_attribute, CUdeviceptr __pyx_v_ptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuPointerGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4624
 * cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuPointerGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuPointerGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4624, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4625
 *     global __cuPointerGetAttribute
 *     cuPythonInit()
 *     if __cuPointerGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4626
 *     cuPythonInit()
 *     if __cuPointerGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
 *     err = (<CUresult (*)(void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttribute)(data, attribute, ptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4627
 *     if __cuPointerGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttribute)(data, attribute, ptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuPointerGetAttribute_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4627, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4627, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4626
 *     cuPythonInit()
 *     if __cuPointerGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
 *     err = (<CUresult (*)(void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttribute)(data, attribute, ptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4625
 *     global __cuPointerGetAttribute
 *     cuPythonInit()
 *     if __cuPointerGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4628
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
 *     err = (<CUresult (*)(void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttribute)(data, attribute, ptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, CUpointer_attribute, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute)(__pyx_v_data, __pyx_v_attribute, __pyx_v_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4628, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4629
 *             raise RuntimeError('Function "cuPointerGetAttribute" not found')
 *     err = (<CUresult (*)(void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttribute)(data, attribute, ptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4622
 *     return err
 * 
 * cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuPointerGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4631
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPrefetchAsync_v2(CUdeviceptr __pyx_v_devPtr, size_t __pyx_v_count, CUmemLocation __pyx_v_location, unsigned int __pyx_v_flags, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPrefetchAsync_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4633
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4633, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4634
 *     global __cuMemPrefetchAsync_v2
 *     cuPythonInit()
 *     if __cuMemPrefetchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4635
 *     cuPythonInit()
 *     if __cuMemPrefetchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4636
 *     if __cuMemPrefetchAsync_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPrefetchAsync_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4636, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4636, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4635
 *     cuPythonInit()
 *     if __cuMemPrefetchAsync_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4634
 *     global __cuMemPrefetchAsync_v2
 *     cuPythonInit()
 *     if __cuMemPrefetchAsync_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4637
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2)(__pyx_v_devPtr, __pyx_v_count, __pyx_v_location, __pyx_v_flags, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4637, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4638
 *             raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4631
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPrefetchAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4640
 *     return err
 * 
 * cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAdvise_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAdvise_v2(CUdeviceptr __pyx_v_devPtr, size_t __pyx_v_count, CUmem_advise __pyx_v_advice, CUmemLocation __pyx_v_location) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemAdvise_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4642
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4642, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4643
 *     global __cuMemAdvise_v2
 *     cuPythonInit()
 *     if __cuMemAdvise_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4644
 *     cuPythonInit()
 *     if __cuMemAdvise_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAdvise_v2)(devPtr, count, advice, location)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4645
 *     if __cuMemAdvise_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAdvise_v2)(devPtr, count, advice, location)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemAdvise_v2_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4645, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4645, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4644
 *     cuPythonInit()
 *     if __cuMemAdvise_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAdvise_v2)(devPtr, count, advice, location)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4643
 *     global __cuMemAdvise_v2
 *     cuPythonInit()
 *     if __cuMemAdvise_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4646
 *         with gil:
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAdvise_v2)(devPtr, count, advice, location)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2)(__pyx_v_devPtr, __pyx_v_count, __pyx_v_advice, __pyx_v_location); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4646, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4647
 *             raise RuntimeError('Function "cuMemAdvise_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr, size_t, CUmem_advise, CUmemLocation) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemAdvise_v2)(devPtr, count, advice, location)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4640
 *     return err
 * 
 * cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuMemAdvise_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemAdvise_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4649
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPrefetchBatchAsync(CUdeviceptr *__pyx_v_dptrs, size_t *__pyx_v_sizes, size_t __pyx_v_count, CUmemLocation *__pyx_v_prefetchLocs, size_t *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemPrefetchBatchAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4651
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4651, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4652
 *     global __cuMemPrefetchBatchAsync
 *     cuPythonInit()
 *     if __cuMemPrefetchBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4653
 *     cuPythonInit()
 *     if __cuMemPrefetchBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4654
 *     if __cuMemPrefetchBatchAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemPrefetchBatchAsync};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4654, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4654, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4653
 *     cuPythonInit()
 *     if __cuMemPrefetchBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4652
 *     global __cuMemPrefetchBatchAsync
 *     cuPythonInit()
 *     if __cuMemPrefetchBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4655
 *         with gil:
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, size_t, CUmemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync)(__pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_prefetchLocs, __pyx_v_prefetchLocIdxs, __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4655, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4656
 *             raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4649
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4658
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemDiscardBatchAsync(CUdeviceptr *__pyx_v_dptrs, size_t *__pyx_v_sizes, size_t __pyx_v_count, unsigned PY_LONG_LONG __pyx_v_flags, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemDiscardBatchAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4660
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4660, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4661
 *     global __cuMemDiscardBatchAsync
 *     cuPythonInit()
 *     if __cuMemDiscardBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4662
 *     cuPythonInit()
 *     if __cuMemDiscardBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4663
 *     if __cuMemDiscardBatchAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemDiscardBatchAsync};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4663, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4663, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4662
 *     cuPythonInit()
 *     if __cuMemDiscardBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4661
 *     global __cuMemDiscardBatchAsync
 *     cuPythonInit()
 *     if __cuMemDiscardBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4664
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, size_t, unsigned PY_LONG_LONG, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync)(__pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_flags, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4664, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4665
 *             raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4658
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemDiscardBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4667
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr *__pyx_v_dptrs, size_t *__pyx_v_sizes, size_t __pyx_v_count, CUmemLocation *__pyx_v_prefetchLocs, size_t *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemDiscardAndPrefetchBatchAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4669
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4669, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4670
 *     global __cuMemDiscardAndPrefetchBatchAsync
 *     cuPythonInit()
 *     if __cuMemDiscardAndPrefetchBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4671
 *     cuPythonInit()
 *     if __cuMemDiscardAndPrefetchBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4672
 *     if __cuMemDiscardAndPrefetchBatchAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemDiscardAndPrefetch};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4672, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4672, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4671
 *     cuPythonInit()
 *     if __cuMemDiscardAndPrefetchBatchAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4670
 *     global __cuMemDiscardAndPrefetchBatchAsync
 *     cuPythonInit()
 *     if __cuMemDiscardAndPrefetchBatchAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4673
 *         with gil:
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, size_t, CUmemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync)(__pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_prefetchLocs, __pyx_v_prefetchLocIdxs, __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4673, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4674
 *             raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, size_t, CUmemLocation*, size_t*, size_t, unsigned long long, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4667
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemDiscardAndPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4676
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRangeGetAttribute(void *__pyx_v_data, size_t __pyx_v_dataSize, CUmem_range_attribute __pyx_v_attribute, CUdeviceptr __pyx_v_devPtr, size_t __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemRangeGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4678
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4678, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4679
 *     global __cuMemRangeGetAttribute
 *     cuPythonInit()
 *     if __cuMemRangeGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4680
 *     cuPythonInit()
 *     if __cuMemRangeGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
 *     err = (<CUresult (*)(void*, size_t, CUmem_range_attribute, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4681
 *     if __cuMemRangeGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void*, size_t, CUmem_range_attribute, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemRangeGetAttribute};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4681, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4681, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4680
 *     cuPythonInit()
 *     if __cuMemRangeGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
 *     err = (<CUresult (*)(void*, size_t, CUmem_range_attribute, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4679
 *     global __cuMemRangeGetAttribute
 *     cuPythonInit()
 *     if __cuMemRangeGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4682
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
 *     err = (<CUresult (*)(void*, size_t, CUmem_range_attribute, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void *, size_t, CUmem_range_attribute, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute)(__pyx_v_data, __pyx_v_dataSize, __pyx_v_attribute, __pyx_v_devPtr, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4682, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4683
 *             raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
 *     err = (<CUresult (*)(void*, size_t, CUmem_range_attribute, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4676
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemRangeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4685
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRangeGetAttributes(void **__pyx_v_data, size_t *__pyx_v_dataSizes, CUmem_range_attribute *__pyx_v_attributes, size_t __pyx_v_numAttributes, CUdeviceptr __pyx_v_devPtr, size_t __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuMemRangeGetAttributes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4687
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4687, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4688
 *     global __cuMemRangeGetAttributes
 *     cuPythonInit()
 *     if __cuMemRangeGetAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4689
 *     cuPythonInit()
 *     if __cuMemRangeGetAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
 *     err = (<CUresult (*)(void**, size_t*, CUmem_range_attribute*, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4690
 *     if __cuMemRangeGetAttributes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(void**, size_t*, CUmem_range_attribute*, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuMemRangeGetAttributes};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4690, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4690, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4689
 *     cuPythonInit()
 *     if __cuMemRangeGetAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
 *     err = (<CUresult (*)(void**, size_t*, CUmem_range_attribute*, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4688
 *     global __cuMemRangeGetAttributes
 *     cuPythonInit()
 *     if __cuMemRangeGetAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4691
 *         with gil:
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
 *     err = (<CUresult (*)(void**, size_t*, CUmem_range_attribute*, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void **, size_t *, CUmem_range_attribute *, size_t, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes)(__pyx_v_data, __pyx_v_dataSizes, __pyx_v_attributes, __pyx_v_numAttributes, __pyx_v_devPtr, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4691, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4692
 *             raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
 *     err = (<CUresult (*)(void**, size_t*, CUmem_range_attribute*, size_t, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4685
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuMemRangeGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4694
 *     return err
 * 
 * cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerSetAttribute(void const *__pyx_v_value, CUpointer_attribute __pyx_v_attribute, CUdeviceptr __pyx_v_ptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuPointerSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4696
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4696, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4697
 *     global __cuPointerSetAttribute
 *     cuPythonInit()
 *     if __cuPointerSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4698
 *     cuPythonInit()
 *     if __cuPointerSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
 *     err = (<CUresult (*)(const void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerSetAttribute)(value, attribute, ptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4699
 *     if __cuPointerSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerSetAttribute)(value, attribute, ptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuPointerSetAttribute_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4699, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4699, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4698
 *     cuPythonInit()
 *     if __cuPointerSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
 *     err = (<CUresult (*)(const void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerSetAttribute)(value, attribute, ptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4697
 *     global __cuPointerSetAttribute
 *     cuPythonInit()
 *     if __cuPointerSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4700
 *         with gil:
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
 *     err = (<CUresult (*)(const void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerSetAttribute)(value, attribute, ptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void const *, CUpointer_attribute, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute)(__pyx_v_value, __pyx_v_attribute, __pyx_v_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4700, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4701
 *             raise RuntimeError('Function "cuPointerSetAttribute" not found')
 *     err = (<CUresult (*)(const void*, CUpointer_attribute, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerSetAttribute)(value, attribute, ptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4694
 *     return err
 * 
 * cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuPointerSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4703
 *     return err
 * 
 * cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttributes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerGetAttributes(unsigned int __pyx_v_numAttributes, CUpointer_attribute *__pyx_v_attributes, void **__pyx_v_data, CUdeviceptr __pyx_v_ptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuPointerGetAttributes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4705
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4705, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4706
 *     global __cuPointerGetAttributes
 *     cuPythonInit()
 *     if __cuPointerGetAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4707
 *     cuPythonInit()
 *     if __cuPointerGetAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
 *     err = (<CUresult (*)(unsigned int, CUpointer_attribute*, void**, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4708
 *     if __cuPointerGetAttributes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int, CUpointer_attribute*, void**, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuPointerGetAttributes};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4708, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4708, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4707
 *     cuPythonInit()
 *     if __cuPointerGetAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
 *     err = (<CUresult (*)(unsigned int, CUpointer_attribute*, void**, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4706
 *     global __cuPointerGetAttributes
 *     cuPythonInit()
 *     if __cuPointerGetAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4709
 *         with gil:
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
 *     err = (<CUresult (*)(unsigned int, CUpointer_attribute*, void**, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int, CUpointer_attribute *, void **, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes)(__pyx_v_numAttributes, __pyx_v_attributes, __pyx_v_data, __pyx_v_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4709, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4710
 *             raise RuntimeError('Function "cuPointerGetAttributes" not found')
 *     err = (<CUresult (*)(unsigned int, CUpointer_attribute*, void**, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4703
 *     return err
 * 
 * cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttributes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuPointerGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4712
 *     return err
 * 
 * cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCreate(CUstream *__pyx_v_phStream, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4714
 * cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4714, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4715
 *     global __cuStreamCreate
 *     cuPythonInit()
 *     if __cuStreamCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4716
 *     cuPythonInit()
 *     if __cuStreamCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreate)(phStream, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4717
 *     if __cuStreamCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreate)(phStream, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamCreate_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4717, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4717, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4716
 *     cuPythonInit()
 *     if __cuStreamCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreate)(phStream, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4715
 *     global __cuStreamCreate
 *     cuPythonInit()
 *     if __cuStreamCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4718
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreate)(phStream, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate)(__pyx_v_phStream, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4718, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4719
 *             raise RuntimeError('Function "cuStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreate)(phStream, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4712
 *     return err
 * 
 * cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4721
 *     return err
 * 
 * cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCreateWithPriority
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCreateWithPriority(CUstream *__pyx_v_phStream, unsigned int __pyx_v_flags, int __pyx_v_priority) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamCreateWithPriority", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4723
 * cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamCreateWithPriority
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamCreateWithPriority == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4723, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4724
 *     global __cuStreamCreateWithPriority
 *     cuPythonInit()
 *     if __cuStreamCreateWithPriority == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4725
 *     cuPythonInit()
 *     if __cuStreamCreateWithPriority == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreateWithPriority)(phStream, flags, priority)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4726
 *     if __cuStreamCreateWithPriority == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream*, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreateWithPriority)(phStream, flags, priority)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamCreateWithPrior};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4726, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4726, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4725
 *     cuPythonInit()
 *     if __cuStreamCreateWithPriority == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreateWithPriority)(phStream, flags, priority)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4724
 *     global __cuStreamCreateWithPriority
 *     cuPythonInit()
 *     if __cuStreamCreateWithPriority == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4727
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreateWithPriority)(phStream, flags, priority)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream *, unsigned int, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority)(__pyx_v_phStream, __pyx_v_flags, __pyx_v_priority); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4727, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4728
 *             raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
 *     err = (<CUresult (*)(CUstream*, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCreateWithPriority)(phStream, flags, priority)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4721
 *     return err
 * 
 * cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCreateWithPriority
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamCreateWithPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4730
 *     return err
 * 
 * cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetPriority
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetPriority(CUstream __pyx_v_hStream, int *__pyx_v_priority) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetPriority", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4732
 * cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetPriority
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetPriority == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4732, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4733
 *     global __cuStreamGetPriority
 *     cuPythonInit()
 *     if __cuStreamGetPriority == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4734
 *     cuPythonInit()
 *     if __cuStreamGetPriority == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
 *     err = (<CUresult (*)(CUstream, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetPriority)(hStream, priority)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4735
 *     if __cuStreamGetPriority == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetPriority)(hStream, priority)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetPriority_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4735, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4735, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4734
 *     cuPythonInit()
 *     if __cuStreamGetPriority == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
 *     err = (<CUresult (*)(CUstream, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetPriority)(hStream, priority)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4733
 *     global __cuStreamGetPriority
 *     cuPythonInit()
 *     if __cuStreamGetPriority == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4736
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
 *     err = (<CUresult (*)(CUstream, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetPriority)(hStream, priority)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority)(__pyx_v_hStream, __pyx_v_priority); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4736, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4737
 *             raise RuntimeError('Function "cuStreamGetPriority" not found')
 *     err = (<CUresult (*)(CUstream, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetPriority)(hStream, priority)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4730
 *     return err
 * 
 * cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetPriority
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4739
 *     return err
 * 
 * cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevice
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetDevice(CUstream __pyx_v_hStream, CUdevice *__pyx_v_device) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetDevice", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4741
 * cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetDevice
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetDevice == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4741, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4742
 *     global __cuStreamGetDevice
 *     cuPythonInit()
 *     if __cuStreamGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4743
 *     cuPythonInit()
 *     if __cuStreamGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
 *     err = (<CUresult (*)(CUstream, CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevice)(hStream, device)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4744
 *     if __cuStreamGetDevice == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevice)(hStream, device)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetDevice_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4744, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4744, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4743
 *     cuPythonInit()
 *     if __cuStreamGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
 *     err = (<CUresult (*)(CUstream, CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevice)(hStream, device)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4742
 *     global __cuStreamGetDevice
 *     cuPythonInit()
 *     if __cuStreamGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4745
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
 *     err = (<CUresult (*)(CUstream, CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevice)(hStream, device)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdevice *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice)(__pyx_v_hStream, __pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4745, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4746
 *             raise RuntimeError('Function "cuStreamGetDevice" not found')
 *     err = (<CUresult (*)(CUstream, CUdevice*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevice)(hStream, device)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4739
 *     return err
 * 
 * cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevice
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4748
 *     return err
 * 
 * cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetFlags(CUstream __pyx_v_hStream, unsigned int *__pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4750
 * cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4750, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4751
 *     global __cuStreamGetFlags
 *     cuPythonInit()
 *     if __cuStreamGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4752
 *     cuPythonInit()
 *     if __cuStreamGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetFlags)(hStream, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4753
 *     if __cuStreamGetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetFlags)(hStream, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetFlags_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4753, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4753, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4752
 *     cuPythonInit()
 *     if __cuStreamGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetFlags)(hStream, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4751
 *     global __cuStreamGetFlags
 *     cuPythonInit()
 *     if __cuStreamGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4754
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetFlags)(hStream, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags)(__pyx_v_hStream, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4754, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4755
 *             raise RuntimeError('Function "cuStreamGetFlags" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetFlags)(hStream, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4748
 *     return err
 * 
 * cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4757
 *     return err
 * 
 * cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetId(CUstream __pyx_v_hStream, unsigned PY_LONG_LONG *__pyx_v_streamId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4759
 * cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4759, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4760
 *     global __cuStreamGetId
 *     cuPythonInit()
 *     if __cuStreamGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4761
 *     cuPythonInit()
 *     if __cuStreamGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetId" not found')
 *     err = (<CUresult (*)(CUstream, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetId)(hStream, streamId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4762
 *     if __cuStreamGetId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetId)(hStream, streamId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetId_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4762, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4762, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4761
 *     cuPythonInit()
 *     if __cuStreamGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetId" not found')
 *     err = (<CUresult (*)(CUstream, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetId)(hStream, streamId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4760
 *     global __cuStreamGetId
 *     cuPythonInit()
 *     if __cuStreamGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4763
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetId" not found')
 *     err = (<CUresult (*)(CUstream, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetId)(hStream, streamId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, unsigned PY_LONG_LONG *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId)(__pyx_v_hStream, __pyx_v_streamId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4763, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4764
 *             raise RuntimeError('Function "cuStreamGetId" not found')
 *     err = (<CUresult (*)(CUstream, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetId)(hStream, streamId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4757
 *     return err
 * 
 * cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4766
 *     return err
 * 
 * cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCtx(CUstream __pyx_v_hStream, CUcontext *__pyx_v_pctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetCtx", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4768
 * cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetCtx
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetCtx == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4768, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4769
 *     global __cuStreamGetCtx
 *     cuPythonInit()
 *     if __cuStreamGetCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4770
 *     cuPythonInit()
 *     if __cuStreamGetCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx)(hStream, pctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4771
 *     if __cuStreamGetCtx == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx)(hStream, pctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetCtx_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4771, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4771, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4770
 *     cuPythonInit()
 *     if __cuStreamGetCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx)(hStream, pctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4769
 *     global __cuStreamGetCtx
 *     cuPythonInit()
 *     if __cuStreamGetCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4772
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx)(hStream, pctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUcontext *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx)(__pyx_v_hStream, __pyx_v_pctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4772, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4773
 *             raise RuntimeError('Function "cuStreamGetCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx)(hStream, pctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4766
 *     return err
 * 
 * cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetCtx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4775
 *     return err
 * 
 * cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCtx_v2(CUstream __pyx_v_hStream, CUcontext *__pyx_v_pCtx, CUgreenCtx *__pyx_v_pGreenCtx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetCtx_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4777
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4777, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4778
 *     global __cuStreamGetCtx_v2
 *     cuPythonInit()
 *     if __cuStreamGetCtx_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4779
 *     cuPythonInit()
 *     if __cuStreamGetCtx_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4780
 *     if __cuStreamGetCtx_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUcontext*, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetCtx_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4780, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4780, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4779
 *     cuPythonInit()
 *     if __cuStreamGetCtx_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4778
 *     global __cuStreamGetCtx_v2
 *     cuPythonInit()
 *     if __cuStreamGetCtx_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4781
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUcontext *, CUgreenCtx *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2)(__pyx_v_hStream, __pyx_v_pCtx, __pyx_v_pGreenCtx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4781, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4782
 *             raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUcontext*, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4775
 *     return err
 * 
 * cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetCtx_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4784
 *     return err
 * 
 * cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitEvent(CUstream __pyx_v_hStream, CUevent __pyx_v_hEvent, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamWaitEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4786
 * cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamWaitEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamWaitEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4786, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4787
 *     global __cuStreamWaitEvent
 *     cuPythonInit()
 *     if __cuStreamWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4788
 *     cuPythonInit()
 *     if __cuStreamWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
 *     err = (<CUresult (*)(CUstream, CUevent, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitEvent)(hStream, hEvent, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4789
 *     if __cuStreamWaitEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUevent, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitEvent)(hStream, hEvent, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamWaitEvent_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4789, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4789, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4788
 *     cuPythonInit()
 *     if __cuStreamWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
 *     err = (<CUresult (*)(CUstream, CUevent, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitEvent)(hStream, hEvent, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4787
 *     global __cuStreamWaitEvent
 *     cuPythonInit()
 *     if __cuStreamWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4790
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
 *     err = (<CUresult (*)(CUstream, CUevent, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitEvent)(hStream, hEvent, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUevent, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent)(__pyx_v_hStream, __pyx_v_hEvent, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4790, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4791
 *             raise RuntimeError('Function "cuStreamWaitEvent" not found')
 *     err = (<CUresult (*)(CUstream, CUevent, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitEvent)(hStream, hEvent, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4784
 *     return err
 * 
 * cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4793
 *     return err
 * 
 * cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamAddCallback
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamAddCallback(CUstream __pyx_v_hStream, CUstreamCallback __pyx_v_callback, void *__pyx_v_userData, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamAddCallback", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4795
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4795, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4796
 *     global __cuStreamAddCallback
 *     cuPythonInit()
 *     if __cuStreamAddCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4797
 *     cuPythonInit()
 *     if __cuStreamAddCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCallback, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAddCallback)(hStream, callback, userData, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4798
 *     if __cuStreamAddCallback == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamCallback, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAddCallback)(hStream, callback, userData, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamAddCallback_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4798, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4798, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4797
 *     cuPythonInit()
 *     if __cuStreamAddCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCallback, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAddCallback)(hStream, callback, userData, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4796
 *     global __cuStreamAddCallback
 *     cuPythonInit()
 *     if __cuStreamAddCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4799
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCallback, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAddCallback)(hStream, callback, userData, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamCallback, void *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback)(__pyx_v_hStream, __pyx_v_callback, __pyx_v_userData, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4799, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4800
 *             raise RuntimeError('Function "cuStreamAddCallback" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCallback, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAddCallback)(hStream, callback, userData, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4793
 *     return err
 * 
 * cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamAddCallback
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamAddCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4802
 *     return err
 * 
 * cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamBeginCapture_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBeginCapture_v2(CUstream __pyx_v_hStream, CUstreamCaptureMode __pyx_v_mode) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamBeginCapture_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4804
 * cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamBeginCapture_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamBeginCapture_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4804, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4805
 *     global __cuStreamBeginCapture_v2
 *     cuPythonInit()
 *     if __cuStreamBeginCapture_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4806
 *     cuPythonInit()
 *     if __cuStreamBeginCapture_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCapture_v2)(hStream, mode)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4807
 *     if __cuStreamBeginCapture_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCapture_v2)(hStream, mode)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamBeginCapture_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4807, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4807, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4806
 *     cuPythonInit()
 *     if __cuStreamBeginCapture_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCapture_v2)(hStream, mode)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4805
 *     global __cuStreamBeginCapture_v2
 *     cuPythonInit()
 *     if __cuStreamBeginCapture_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4808
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCapture_v2)(hStream, mode)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamCaptureMode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2)(__pyx_v_hStream, __pyx_v_mode); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4808, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4809
 *             raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCapture_v2)(hStream, mode)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4802
 *     return err
 * 
 * cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamBeginCapture_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamBeginCapture_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4811
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBeginCaptureToGraph(CUstream __pyx_v_hStream, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, CUgraphEdgeData const *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, CUstreamCaptureMode __pyx_v_mode) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamBeginCaptureToGraph", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4813
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4813, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4814
 *     global __cuStreamBeginCaptureToGraph
 *     cuPythonInit()
 *     if __cuStreamBeginCaptureToGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4815
 *     cuPythonInit()
 *     if __cuStreamBeginCaptureToGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4816
 *     if __cuStreamBeginCaptureToGraph == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamBeginCaptureToG};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4816, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4816, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4815
 *     cuPythonInit()
 *     if __cuStreamBeginCaptureToGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4814
 *     global __cuStreamBeginCaptureToGraph
 *     cuPythonInit()
 *     if __cuStreamBeginCaptureToGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4817
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUgraph, CUgraphNode const *, CUgraphEdgeData const *, size_t, CUstreamCaptureMode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph)(__pyx_v_hStream, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_mode); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4817, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4818
 *             raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUstreamCaptureMode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4811
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamBeginCaptureToGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4820
 *     return err
 * 
 * cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuThreadExchangeStreamCaptureMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode *__pyx_v_mode) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuThreadExchangeStreamCaptureMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4822
 * cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuThreadExchangeStreamCaptureMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuThreadExchangeStreamCaptureMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4822, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4823
 *     global __cuThreadExchangeStreamCaptureMode
 *     cuPythonInit()
 *     if __cuThreadExchangeStreamCaptureMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4824
 *     cuPythonInit()
 *     if __cuThreadExchangeStreamCaptureMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
 *     err = (<CUresult (*)(CUstreamCaptureMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuThreadExchangeStreamCaptureMode)(mode)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4825
 *     if __cuThreadExchangeStreamCaptureMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstreamCaptureMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuThreadExchangeStreamCaptureMode)(mode)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuThreadExchangeStreamC};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4825, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4825, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4824
 *     cuPythonInit()
 *     if __cuThreadExchangeStreamCaptureMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
 *     err = (<CUresult (*)(CUstreamCaptureMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuThreadExchangeStreamCaptureMode)(mode)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4823
 *     global __cuThreadExchangeStreamCaptureMode
 *     cuPythonInit()
 *     if __cuThreadExchangeStreamCaptureMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4826
 *         with gil:
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
 *     err = (<CUresult (*)(CUstreamCaptureMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuThreadExchangeStreamCaptureMode)(mode)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstreamCaptureMode *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode)(__pyx_v_mode); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4826, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4827
 *             raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
 *     err = (<CUresult (*)(CUstreamCaptureMode*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuThreadExchangeStreamCaptureMode)(mode)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4820
 *     return err
 * 
 * cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuThreadExchangeStreamCaptureMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuThreadExchangeStreamCaptureMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4829
 *     return err
 * 
 * cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamEndCapture
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamEndCapture(CUstream __pyx_v_hStream, CUgraph *__pyx_v_phGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamEndCapture", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4831
 * cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamEndCapture
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamEndCapture == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4831, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4832
 *     global __cuStreamEndCapture
 *     cuPythonInit()
 *     if __cuStreamEndCapture == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4833
 *     cuPythonInit()
 *     if __cuStreamEndCapture == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamEndCapture)(hStream, phGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4834
 *     if __cuStreamEndCapture == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamEndCapture)(hStream, phGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamEndCapture_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4834, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4834, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4833
 *     cuPythonInit()
 *     if __cuStreamEndCapture == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamEndCapture)(hStream, phGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4832
 *     global __cuStreamEndCapture
 *     cuPythonInit()
 *     if __cuStreamEndCapture == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4835
 *         with gil:
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamEndCapture)(hStream, phGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUgraph *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture)(__pyx_v_hStream, __pyx_v_phGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4835, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4836
 *             raise RuntimeError('Function "cuStreamEndCapture" not found')
 *     err = (<CUresult (*)(CUstream, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamEndCapture)(hStream, phGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4829
 *     return err
 * 
 * cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamEndCapture
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamEndCapture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4838
 *     return err
 * 
 * cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamIsCapturing
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamIsCapturing(CUstream __pyx_v_hStream, CUstreamCaptureStatus *__pyx_v_captureStatus) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamIsCapturing", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4840
 * cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamIsCapturing
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamIsCapturing == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4840, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4841
 *     global __cuStreamIsCapturing
 *     cuPythonInit()
 *     if __cuStreamIsCapturing == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4842
 *     cuPythonInit()
 *     if __cuStreamIsCapturing == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamIsCapturing)(hStream, captureStatus)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4843
 *     if __cuStreamIsCapturing == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamIsCapturing)(hStream, captureStatus)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamIsCapturing_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4843, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4843, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4842
 *     cuPythonInit()
 *     if __cuStreamIsCapturing == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamIsCapturing)(hStream, captureStatus)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4841
 *     global __cuStreamIsCapturing
 *     cuPythonInit()
 *     if __cuStreamIsCapturing == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4844
 *         with gil:
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamIsCapturing)(hStream, captureStatus)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamCaptureStatus *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing)(__pyx_v_hStream, __pyx_v_captureStatus); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4844, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4845
 *             raise RuntimeError('Function "cuStreamIsCapturing" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamIsCapturing)(hStream, captureStatus)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4838
 *     return err
 * 
 * cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamIsCapturing
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamIsCapturing", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4847
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCaptureInfo_v3(CUstream __pyx_v_hStream, CUstreamCaptureStatus *__pyx_v_captureStatus_out, cuuint64_t *__pyx_v_id_out, CUgraph *__pyx_v_graph_out, CUgraphNode const **__pyx_v_dependencies_out, CUgraphEdgeData const **__pyx_v_edgeData_out, size_t *__pyx_v_numDependencies_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetCaptureInfo_v3", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4849
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4849, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4850
 *     global __cuStreamGetCaptureInfo_v3
 *     cuPythonInit()
 *     if __cuStreamGetCaptureInfo_v3 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4851
 *     cuPythonInit()
 *     if __cuStreamGetCaptureInfo_v3 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*, cuuint64_t*, CUgraph*, const CUgraphNode**, const CUgraphEdgeData**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4852
 *     if __cuStreamGetCaptureInfo_v3 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*, cuuint64_t*, CUgraph*, const CUgraphNode**, const CUgraphEdgeData**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetCaptureInfo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4852, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4852, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4851
 *     cuPythonInit()
 *     if __cuStreamGetCaptureInfo_v3 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*, cuuint64_t*, CUgraph*, const CUgraphNode**, const CUgraphEdgeData**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4850
 *     global __cuStreamGetCaptureInfo_v3
 *     cuPythonInit()
 *     if __cuStreamGetCaptureInfo_v3 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4853
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*, cuuint64_t*, CUgraph*, const CUgraphNode**, const CUgraphEdgeData**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, CUgraphNode const **, CUgraphEdgeData const **, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3)(__pyx_v_hStream, __pyx_v_captureStatus_out, __pyx_v_id_out, __pyx_v_graph_out, __pyx_v_dependencies_out, __pyx_v_edgeData_out, __pyx_v_numDependencies_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4853, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4854
 *             raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamCaptureStatus*, cuuint64_t*, CUgraph*, const CUgraphNode**, const CUgraphEdgeData**, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4847
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetCaptureInfo_v3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4856
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamUpdateCaptureDependencies_v2(CUstream __pyx_v_hStream, CUgraphNode *__pyx_v_dependencies, CUgraphEdgeData const *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamUpdateCaptureDependencies_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4858
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4858, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4859
 *     global __cuStreamUpdateCaptureDependencies_v2
 *     cuPythonInit()
 *     if __cuStreamUpdateCaptureDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4860
 *     cuPythonInit()
 *     if __cuStreamUpdateCaptureDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUgraphNode*, const CUgraphEdgeData*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4861
 *     if __cuStreamUpdateCaptureDependencies_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUgraphNode*, const CUgraphEdgeData*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamUpdateCaptureDe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4861, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4861, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4860
 *     cuPythonInit()
 *     if __cuStreamUpdateCaptureDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUgraphNode*, const CUgraphEdgeData*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4859
 *     global __cuStreamUpdateCaptureDependencies_v2
 *     cuPythonInit()
 *     if __cuStreamUpdateCaptureDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4862
 *         with gil:
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUgraphNode*, const CUgraphEdgeData*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUgraphNode *, CUgraphEdgeData const *, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2)(__pyx_v_hStream, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4862, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4863
 *             raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUgraphNode*, const CUgraphEdgeData*, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4856
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamUpdateCaptureDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4865
 *     return err
 * 
 * cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamAttachMemAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamAttachMemAsync(CUstream __pyx_v_hStream, CUdeviceptr __pyx_v_dptr, size_t __pyx_v_length, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamAttachMemAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4867
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4867, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4868
 *     global __cuStreamAttachMemAsync
 *     cuPythonInit()
 *     if __cuStreamAttachMemAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4869
 *     cuPythonInit()
 *     if __cuStreamAttachMemAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAttachMemAsync)(hStream, dptr, length, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4870
 *     if __cuStreamAttachMemAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAttachMemAsync)(hStream, dptr, length, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamAttachMemAsync};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4870, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4870, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4869
 *     cuPythonInit()
 *     if __cuStreamAttachMemAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAttachMemAsync)(hStream, dptr, length, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4868
 *     global __cuStreamAttachMemAsync
 *     cuPythonInit()
 *     if __cuStreamAttachMemAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4871
 *         with gil:
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAttachMemAsync)(hStream, dptr, length, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync)(__pyx_v_hStream, __pyx_v_dptr, __pyx_v_length, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4871, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4872
 *             raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamAttachMemAsync)(hStream, dptr, length, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4865
 *     return err
 * 
 * cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamAttachMemAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamAttachMemAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4874
 *     return err
 * 
 * cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamQuery
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamQuery(CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamQuery", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4876
 * cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamQuery
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamQuery == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4876, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4877
 *     global __cuStreamQuery
 *     cuPythonInit()
 *     if __cuStreamQuery == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamQuery" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4878
 *     cuPythonInit()
 *     if __cuStreamQuery == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamQuery" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamQuery)(hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4879
 *     if __cuStreamQuery == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamQuery" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamQuery)(hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamQuery_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4879, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4879, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4878
 *     cuPythonInit()
 *     if __cuStreamQuery == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamQuery" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamQuery)(hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4877
 *     global __cuStreamQuery
 *     cuPythonInit()
 *     if __cuStreamQuery == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamQuery" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4880
 *         with gil:
 *             raise RuntimeError('Function "cuStreamQuery" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamQuery)(hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery)(__pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4880, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4881
 *             raise RuntimeError('Function "cuStreamQuery" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamQuery)(hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4874
 *     return err
 * 
 * cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamQuery
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4883
 *     return err
 * 
 * cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamSynchronize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamSynchronize(CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamSynchronize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4885
 * cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamSynchronize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamSynchronize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4885, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4886
 *     global __cuStreamSynchronize
 *     cuPythonInit()
 *     if __cuStreamSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4887
 *     cuPythonInit()
 *     if __cuStreamSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSynchronize)(hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4888
 *     if __cuStreamSynchronize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSynchronize)(hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamSynchronize_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4888, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4888, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4887
 *     cuPythonInit()
 *     if __cuStreamSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSynchronize)(hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4886
 *     global __cuStreamSynchronize
 *     cuPythonInit()
 *     if __cuStreamSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4889
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSynchronize)(hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize)(__pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4889, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4890
 *             raise RuntimeError('Function "cuStreamSynchronize" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSynchronize)(hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4883
 *     return err
 * 
 * cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamSynchronize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4892
 *     return err
 * 
 * cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamDestroy_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamDestroy_v2(CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamDestroy_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4894
 * cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamDestroy_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamDestroy_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4894, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4895
 *     global __cuStreamDestroy_v2
 *     cuPythonInit()
 *     if __cuStreamDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4896
 *     cuPythonInit()
 *     if __cuStreamDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamDestroy_v2)(hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4897
 *     if __cuStreamDestroy_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamDestroy_v2)(hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamDestroy_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4897, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4897, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4896
 *     cuPythonInit()
 *     if __cuStreamDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamDestroy_v2)(hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4895
 *     global __cuStreamDestroy_v2
 *     cuPythonInit()
 *     if __cuStreamDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4898
 *         with gil:
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamDestroy_v2)(hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2)(__pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4898, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4899
 *             raise RuntimeError('Function "cuStreamDestroy_v2" not found')
 *     err = (<CUresult (*)(CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamDestroy_v2)(hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4892
 *     return err
 * 
 * cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamDestroy_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamDestroy_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4901
 *     return err
 * 
 * cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCopyAttributes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCopyAttributes(CUstream __pyx_v_dst, CUstream __pyx_v_src) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamCopyAttributes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4903
 * cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamCopyAttributes
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamCopyAttributes == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4903, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4904
 *     global __cuStreamCopyAttributes
 *     cuPythonInit()
 *     if __cuStreamCopyAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4905
 *     cuPythonInit()
 *     if __cuStreamCopyAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
 *     err = (<CUresult (*)(CUstream, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCopyAttributes)(dst, src)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4906
 *     if __cuStreamCopyAttributes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCopyAttributes)(dst, src)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamCopyAttributes};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4906, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4906, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4905
 *     cuPythonInit()
 *     if __cuStreamCopyAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
 *     err = (<CUresult (*)(CUstream, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCopyAttributes)(dst, src)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4904
 *     global __cuStreamCopyAttributes
 *     cuPythonInit()
 *     if __cuStreamCopyAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4907
 *         with gil:
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
 *     err = (<CUresult (*)(CUstream, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCopyAttributes)(dst, src)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes)(__pyx_v_dst, __pyx_v_src); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4907, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4908
 *             raise RuntimeError('Function "cuStreamCopyAttributes" not found')
 *     err = (<CUresult (*)(CUstream, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamCopyAttributes)(dst, src)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4901
 *     return err
 * 
 * cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamCopyAttributes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4910
 *     return err
 * 
 * cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetAttribute(CUstream __pyx_v_hStream, CUstreamAttrID __pyx_v_attr, CUstreamAttrValue *__pyx_v_value_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4912
 * cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4912, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4913
 *     global __cuStreamGetAttribute
 *     cuPythonInit()
 *     if __cuStreamGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4914
 *     cuPythonInit()
 *     if __cuStreamGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetAttribute)(hStream, attr, value_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4915
 *     if __cuStreamGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetAttribute)(hStream, attr, value_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetAttribute_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4915, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4915, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4914
 *     cuPythonInit()
 *     if __cuStreamGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetAttribute)(hStream, attr, value_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4913
 *     global __cuStreamGetAttribute
 *     cuPythonInit()
 *     if __cuStreamGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4916
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetAttribute)(hStream, attr, value_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute)(__pyx_v_hStream, __pyx_v_attr, __pyx_v_value_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4916, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4917
 *             raise RuntimeError('Function "cuStreamGetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetAttribute)(hStream, attr, value_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4910
 *     return err
 * 
 * cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4919
 *     return err
 * 
 * cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamSetAttribute(CUstream __pyx_v_hStream, CUstreamAttrID __pyx_v_attr, CUstreamAttrValue const *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4921
 * cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamSetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamSetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4921, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4922
 *     global __cuStreamSetAttribute
 *     cuPythonInit()
 *     if __cuStreamSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4923
 *     cuPythonInit()
 *     if __cuStreamSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, const CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSetAttribute)(hStream, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4924
 *     if __cuStreamSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, const CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSetAttribute)(hStream, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamSetAttribute_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4924, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4924, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4923
 *     cuPythonInit()
 *     if __cuStreamSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, const CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSetAttribute)(hStream, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4922
 *     global __cuStreamSetAttribute
 *     cuPythonInit()
 *     if __cuStreamSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4925
 *         with gil:
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, const CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSetAttribute)(hStream, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUstreamAttrID, CUstreamAttrValue const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute)(__pyx_v_hStream, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4925, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4926
 *             raise RuntimeError('Function "cuStreamSetAttribute" not found')
 *     err = (<CUresult (*)(CUstream, CUstreamAttrID, const CUstreamAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamSetAttribute)(hStream, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4919
 *     return err
 * 
 * cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4928
 *     return err
 * 
 * cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventCreate(CUevent *__pyx_v_phEvent, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4930
 * cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4930, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4931
 *     global __cuEventCreate
 *     cuPythonInit()
 *     if __cuEventCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4932
 *     cuPythonInit()
 *     if __cuEventCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventCreate" not found')
 *     err = (<CUresult (*)(CUevent*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreate)(phEvent, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4933
 *     if __cuEventCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreate)(phEvent, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventCreate_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4933, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4933, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4932
 *     cuPythonInit()
 *     if __cuEventCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventCreate" not found')
 *     err = (<CUresult (*)(CUevent*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreate)(phEvent, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4931
 *     global __cuEventCreate
 *     cuPythonInit()
 *     if __cuEventCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4934
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreate" not found')
 *     err = (<CUresult (*)(CUevent*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreate)(phEvent, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate)(__pyx_v_phEvent, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4934, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4935
 *             raise RuntimeError('Function "cuEventCreate" not found')
 *     err = (<CUresult (*)(CUevent*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreate)(phEvent, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4928
 *     return err
 * 
 * cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4937
 *     return err
 * 
 * cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventRecord
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventRecord(CUevent __pyx_v_hEvent, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventRecord", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4939
 * cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventRecord
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventRecord == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4939, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4940
 *     global __cuEventRecord
 *     cuPythonInit()
 *     if __cuEventRecord == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecord" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4941
 *     cuPythonInit()
 *     if __cuEventRecord == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventRecord" not found')
 *     err = (<CUresult (*)(CUevent, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecord)(hEvent, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4942
 *     if __cuEventRecord == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecord" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecord)(hEvent, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventRecord_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4942, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4942, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4941
 *     cuPythonInit()
 *     if __cuEventRecord == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventRecord" not found')
 *     err = (<CUresult (*)(CUevent, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecord)(hEvent, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4940
 *     global __cuEventRecord
 *     cuPythonInit()
 *     if __cuEventRecord == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecord" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4943
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecord" not found')
 *     err = (<CUresult (*)(CUevent, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecord)(hEvent, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord)(__pyx_v_hEvent, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4943, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4944
 *             raise RuntimeError('Function "cuEventRecord" not found')
 *     err = (<CUresult (*)(CUevent, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecord)(hEvent, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4937
 *     return err
 * 
 * cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventRecord
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventRecord", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4946
 *     return err
 * 
 * cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventRecordWithFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventRecordWithFlags(CUevent __pyx_v_hEvent, CUstream __pyx_v_hStream, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventRecordWithFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4948
 * cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventRecordWithFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventRecordWithFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4948, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4949
 *     global __cuEventRecordWithFlags
 *     cuPythonInit()
 *     if __cuEventRecordWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4950
 *     cuPythonInit()
 *     if __cuEventRecordWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
 *     err = (<CUresult (*)(CUevent, CUstream, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecordWithFlags)(hEvent, hStream, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4951
 *     if __cuEventRecordWithFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent, CUstream, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecordWithFlags)(hEvent, hStream, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventRecordWithFlags};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4951, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4951, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4950
 *     cuPythonInit()
 *     if __cuEventRecordWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
 *     err = (<CUresult (*)(CUevent, CUstream, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecordWithFlags)(hEvent, hStream, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4949
 *     global __cuEventRecordWithFlags
 *     cuPythonInit()
 *     if __cuEventRecordWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4952
 *         with gil:
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
 *     err = (<CUresult (*)(CUevent, CUstream, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecordWithFlags)(hEvent, hStream, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent, CUstream, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags)(__pyx_v_hEvent, __pyx_v_hStream, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4952, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4953
 *             raise RuntimeError('Function "cuEventRecordWithFlags" not found')
 *     err = (<CUresult (*)(CUevent, CUstream, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventRecordWithFlags)(hEvent, hStream, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4946
 *     return err
 * 
 * cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventRecordWithFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventRecordWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4955
 *     return err
 * 
 * cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventQuery
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventQuery(CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventQuery", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4957
 * cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventQuery
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventQuery == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4957, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4958
 *     global __cuEventQuery
 *     cuPythonInit()
 *     if __cuEventQuery == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventQuery" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4959
 *     cuPythonInit()
 *     if __cuEventQuery == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventQuery" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventQuery)(hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4960
 *     if __cuEventQuery == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventQuery" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventQuery)(hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventQuery_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4960, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4960, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4959
 *     cuPythonInit()
 *     if __cuEventQuery == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventQuery" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventQuery)(hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4958
 *     global __cuEventQuery
 *     cuPythonInit()
 *     if __cuEventQuery == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventQuery" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4961
 *         with gil:
 *             raise RuntimeError('Function "cuEventQuery" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventQuery)(hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery)(__pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4961, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4962
 *             raise RuntimeError('Function "cuEventQuery" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventQuery)(hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4955
 *     return err
 * 
 * cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventQuery
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4964
 *     return err
 * 
 * cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventSynchronize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventSynchronize(CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventSynchronize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4966
 * cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventSynchronize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventSynchronize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4966, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4967
 *     global __cuEventSynchronize
 *     cuPythonInit()
 *     if __cuEventSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4968
 *     cuPythonInit()
 *     if __cuEventSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventSynchronize)(hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4969
 *     if __cuEventSynchronize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventSynchronize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventSynchronize)(hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventSynchronize_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4969, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4969, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4968
 *     cuPythonInit()
 *     if __cuEventSynchronize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventSynchronize)(hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4967
 *     global __cuEventSynchronize
 *     cuPythonInit()
 *     if __cuEventSynchronize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4970
 *         with gil:
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventSynchronize)(hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize)(__pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4970, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4971
 *             raise RuntimeError('Function "cuEventSynchronize" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventSynchronize)(hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4964
 *     return err
 * 
 * cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventSynchronize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4973
 *     return err
 * 
 * cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventDestroy_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventDestroy_v2(CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventDestroy_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4975
 * cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventDestroy_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventDestroy_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4975, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4976
 *     global __cuEventDestroy_v2
 *     cuPythonInit()
 *     if __cuEventDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4977
 *     cuPythonInit()
 *     if __cuEventDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventDestroy_v2)(hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4978
 *     if __cuEventDestroy_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventDestroy_v2)(hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventDestroy_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4978, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4978, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4977
 *     cuPythonInit()
 *     if __cuEventDestroy_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventDestroy_v2)(hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4976
 *     global __cuEventDestroy_v2
 *     cuPythonInit()
 *     if __cuEventDestroy_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4979
 *         with gil:
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventDestroy_v2)(hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2)(__pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4979, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4980
 *             raise RuntimeError('Function "cuEventDestroy_v2" not found')
 *     err = (<CUresult (*)(CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventDestroy_v2)(hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4973
 *     return err
 * 
 * cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventDestroy_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventDestroy_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4982
 *     return err
 * 
 * cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventElapsedTime_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventElapsedTime_v2(float *__pyx_v_pMilliseconds, CUevent __pyx_v_hStart, CUevent __pyx_v_hEnd) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventElapsedTime_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4984
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4984, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4985
 *     global __cuEventElapsedTime_v2
 *     cuPythonInit()
 *     if __cuEventElapsedTime_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4986
 *     cuPythonInit()
 *     if __cuEventElapsedTime_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
 *     err = (<CUresult (*)(float*, CUevent, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4987
 *     if __cuEventElapsedTime_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(float*, CUevent, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventElapsedTime_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4987, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4987, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4986
 *     cuPythonInit()
 *     if __cuEventElapsedTime_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
 *     err = (<CUresult (*)(float*, CUevent, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4985
 *     global __cuEventElapsedTime_v2
 *     cuPythonInit()
 *     if __cuEventElapsedTime_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4988
 *         with gil:
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
 *     err = (<CUresult (*)(float*, CUevent, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(float *, CUevent, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2)(__pyx_v_pMilliseconds, __pyx_v_hStart, __pyx_v_hEnd); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4988, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4989
 *             raise RuntimeError('Function "cuEventElapsedTime_v2" not found')
 *     err = (<CUresult (*)(float*, CUevent, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4982
 *     return err
 * 
 * cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventElapsedTime_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventElapsedTime_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":4991
 *     return err
 * 
 * cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuImportExternalMemory
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuImportExternalMemory(CUexternalMemory *__pyx_v_extMem_out, CUDA_EXTERNAL_MEMORY_HANDLE_DESC const *__pyx_v_memHandleDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuImportExternalMemory", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":4993
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 4993, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":4994
 *     global __cuImportExternalMemory
 *     cuPythonInit()
 *     if __cuImportExternalMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":4995
 *     cuPythonInit()
 *     if __cuImportExternalMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory*, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalMemory)(extMem_out, memHandleDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":4996
 *     if __cuImportExternalMemory == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUexternalMemory*, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalMemory)(extMem_out, memHandleDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuImportExternalMemory};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4996, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 4996, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":4995
 *     cuPythonInit()
 *     if __cuImportExternalMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory*, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalMemory)(extMem_out, memHandleDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":4994
 *     global __cuImportExternalMemory
 *     cuPythonInit()
 *     if __cuImportExternalMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":4997
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory*, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalMemory)(extMem_out, memHandleDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalMemory *, CUDA_EXTERNAL_MEMORY_HANDLE_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory)(__pyx_v_extMem_out, __pyx_v_memHandleDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 4997, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":4998
 *             raise RuntimeError('Function "cuImportExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory*, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalMemory)(extMem_out, memHandleDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":4991
 *     return err
 * 
 * cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuImportExternalMemory
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuImportExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5000
 *     return err
 * 
 * cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedBuffer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuExternalMemoryGetMappedBuffer(CUdeviceptr *__pyx_v_devPtr, CUexternalMemory __pyx_v_extMem, CUDA_EXTERNAL_MEMORY_BUFFER_DESC const *__pyx_v_bufferDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuExternalMemoryGetMappedBuffer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5002
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5002, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5003
 *     global __cuExternalMemoryGetMappedBuffer
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedBuffer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5004
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedBuffer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5005
 *     if __cuExternalMemoryGetMappedBuffer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuExternalMemoryGetMapp};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5005, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5005, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5004
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedBuffer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5003
 *     global __cuExternalMemoryGetMappedBuffer
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedBuffer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5006
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, CUexternalMemory, CUDA_EXTERNAL_MEMORY_BUFFER_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer)(__pyx_v_devPtr, __pyx_v_extMem, __pyx_v_bufferDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5006, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5007
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5000
 *     return err
 * 
 * cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedBuffer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuExternalMemoryGetMappedBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5009
 *     return err
 * 
 * cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray *__pyx_v_mipmap, CUexternalMemory __pyx_v_extMem, CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC const *__pyx_v_mipmapDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuExternalMemoryGetMappedMipmappedArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5011
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5011, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5012
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5013
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5014
 *     if __cuExternalMemoryGetMappedMipmappedArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmipmappedArray*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuExternalMemoryGetMapp_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5014, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5014, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5013
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5012
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     cuPythonInit()
 *     if __cuExternalMemoryGetMappedMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5015
 *         with gil:
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmipmappedArray *, CUexternalMemory, CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray)(__pyx_v_mipmap, __pyx_v_extMem, __pyx_v_mipmapDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5015, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5016
 *             raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5009
 *     return err
 * 
 * cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuExternalMemoryGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5018
 *     return err
 * 
 * cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalMemory
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDestroyExternalMemory(CUexternalMemory __pyx_v_extMem) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDestroyExternalMemory", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5020
 * cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDestroyExternalMemory
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDestroyExternalMemory == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5020, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5021
 *     global __cuDestroyExternalMemory
 *     cuPythonInit()
 *     if __cuDestroyExternalMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5022
 *     cuPythonInit()
 *     if __cuDestroyExternalMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalMemory)(extMem)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5023
 *     if __cuDestroyExternalMemory == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUexternalMemory) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalMemory)(extMem)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDestroyExternalMemory};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5023, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5023, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5022
 *     cuPythonInit()
 *     if __cuDestroyExternalMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalMemory)(extMem)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5021
 *     global __cuDestroyExternalMemory
 *     cuPythonInit()
 *     if __cuDestroyExternalMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5024
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalMemory)(extMem)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalMemory))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory)(__pyx_v_extMem); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5024, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5025
 *             raise RuntimeError('Function "cuDestroyExternalMemory" not found')
 *     err = (<CUresult (*)(CUexternalMemory) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalMemory)(extMem)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5018
 *     return err
 * 
 * cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalMemory
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDestroyExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5027
 *     return err
 * 
 * cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuImportExternalSemaphore
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuImportExternalSemaphore(CUexternalSemaphore *__pyx_v_extSem_out, CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC const *__pyx_v_semHandleDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuImportExternalSemaphore", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5029
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5029, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5030
 *     global __cuImportExternalSemaphore
 *     cuPythonInit()
 *     if __cuImportExternalSemaphore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5031
 *     cuPythonInit()
 *     if __cuImportExternalSemaphore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalSemaphore)(extSem_out, semHandleDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5032
 *     if __cuImportExternalSemaphore == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalSemaphore)(extSem_out, semHandleDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuImportExternalSemapho};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5032, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5032, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5031
 *     cuPythonInit()
 *     if __cuImportExternalSemaphore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalSemaphore)(extSem_out, semHandleDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5030
 *     global __cuImportExternalSemaphore
 *     cuPythonInit()
 *     if __cuImportExternalSemaphore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5033
 *         with gil:
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalSemaphore)(extSem_out, semHandleDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalSemaphore *, CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore)(__pyx_v_extSem_out, __pyx_v_semHandleDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5033, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5034
 *             raise RuntimeError('Function "cuImportExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuImportExternalSemaphore)(extSem_out, semHandleDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5027
 *     return err
 * 
 * cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuImportExternalSemaphore
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuImportExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5036
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSignalExternalSemaphoresAsync(CUexternalSemaphore const *__pyx_v_extSemArray, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS const *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, CUstream __pyx_v_stream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSignalExternalSemaphoresAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5038
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5038, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5039
 *     global __cuSignalExternalSemaphoresAsync
 *     cuPythonInit()
 *     if __cuSignalExternalSemaphoresAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5040
 *     cuPythonInit()
 *     if __cuSignalExternalSemaphoresAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5041
 *     if __cuSignalExternalSemaphoresAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSignalExternalSemapho};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5041, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5041, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5040
 *     cuPythonInit()
 *     if __cuSignalExternalSemaphoresAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5039
 *     global __cuSignalExternalSemaphoresAsync
 *     cuPythonInit()
 *     if __cuSignalExternalSemaphoresAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5042
 *         with gil:
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalSemaphore const *, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS const *, unsigned int, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync)(__pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5042, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5043
 *             raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5036
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSignalExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5045
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuWaitExternalSemaphoresAsync(CUexternalSemaphore const *__pyx_v_extSemArray, CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS const *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, CUstream __pyx_v_stream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuWaitExternalSemaphoresAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5047
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5047, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5048
 *     global __cuWaitExternalSemaphoresAsync
 *     cuPythonInit()
 *     if __cuWaitExternalSemaphoresAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5049
 *     cuPythonInit()
 *     if __cuWaitExternalSemaphoresAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5050
 *     if __cuWaitExternalSemaphoresAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuWaitExternalSemaphore};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5050, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5050, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5049
 *     cuPythonInit()
 *     if __cuWaitExternalSemaphoresAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5048
 *     global __cuWaitExternalSemaphoresAsync
 *     cuPythonInit()
 *     if __cuWaitExternalSemaphoresAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5051
 *         with gil:
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalSemaphore const *, CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS const *, unsigned int, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync)(__pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5051, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5052
 *             raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found')
 *     err = (<CUresult (*)(const CUexternalSemaphore*, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*, unsigned int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5045
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuWaitExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5054
 *     return err
 * 
 * cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalSemaphore
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDestroyExternalSemaphore(CUexternalSemaphore __pyx_v_extSem) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDestroyExternalSemaphore", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5056
 * cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDestroyExternalSemaphore
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDestroyExternalSemaphore == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5056, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5057
 *     global __cuDestroyExternalSemaphore
 *     cuPythonInit()
 *     if __cuDestroyExternalSemaphore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5058
 *     cuPythonInit()
 *     if __cuDestroyExternalSemaphore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalSemaphore)(extSem)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5059
 *     if __cuDestroyExternalSemaphore == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUexternalSemaphore) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalSemaphore)(extSem)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDestroyExternalSemaph};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5059, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5059, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5058
 *     cuPythonInit()
 *     if __cuDestroyExternalSemaphore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalSemaphore)(extSem)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5057
 *     global __cuDestroyExternalSemaphore
 *     cuPythonInit()
 *     if __cuDestroyExternalSemaphore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5060
 *         with gil:
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalSemaphore)(extSem)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUexternalSemaphore))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore)(__pyx_v_extSem); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5060, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5061
 *             raise RuntimeError('Function "cuDestroyExternalSemaphore" not found')
 *     err = (<CUresult (*)(CUexternalSemaphore) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDestroyExternalSemaphore)(extSem)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5054
 *     return err
 * 
 * cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalSemaphore
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDestroyExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5063
 *     return err
 * 
 * cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue32_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitValue32_v2(CUstream __pyx_v_stream, CUdeviceptr __pyx_v_addr, cuuint32_t __pyx_v_value, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamWaitValue32_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5065
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5065, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5066
 *     global __cuStreamWaitValue32_v2
 *     cuPythonInit()
 *     if __cuStreamWaitValue32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5067
 *     cuPythonInit()
 *     if __cuStreamWaitValue32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue32_v2)(stream, addr, value, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5068
 *     if __cuStreamWaitValue32_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue32_v2)(stream, addr, value, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamWaitValue32_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5068, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5068, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5067
 *     cuPythonInit()
 *     if __cuStreamWaitValue32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue32_v2)(stream, addr, value, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5066
 *     global __cuStreamWaitValue32_v2
 *     cuPythonInit()
 *     if __cuStreamWaitValue32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5069
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue32_v2)(stream, addr, value, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2)(__pyx_v_stream, __pyx_v_addr, __pyx_v_value, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5069, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5070
 *             raise RuntimeError('Function "cuStreamWaitValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue32_v2)(stream, addr, value, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5063
 *     return err
 * 
 * cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue32_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamWaitValue32_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5072
 *     return err
 * 
 * cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue64_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitValue64_v2(CUstream __pyx_v_stream, CUdeviceptr __pyx_v_addr, cuuint64_t __pyx_v_value, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamWaitValue64_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5074
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5074, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5075
 *     global __cuStreamWaitValue64_v2
 *     cuPythonInit()
 *     if __cuStreamWaitValue64_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5076
 *     cuPythonInit()
 *     if __cuStreamWaitValue64_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue64_v2)(stream, addr, value, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5077
 *     if __cuStreamWaitValue64_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue64_v2)(stream, addr, value, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamWaitValue64_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5077, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5077, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5076
 *     cuPythonInit()
 *     if __cuStreamWaitValue64_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue64_v2)(stream, addr, value, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5075
 *     global __cuStreamWaitValue64_v2
 *     cuPythonInit()
 *     if __cuStreamWaitValue64_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5078
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue64_v2)(stream, addr, value, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2)(__pyx_v_stream, __pyx_v_addr, __pyx_v_value, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5078, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5079
 *             raise RuntimeError('Function "cuStreamWaitValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWaitValue64_v2)(stream, addr, value, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5072
 *     return err
 * 
 * cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue64_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamWaitValue64_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5081
 *     return err
 * 
 * cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue32_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWriteValue32_v2(CUstream __pyx_v_stream, CUdeviceptr __pyx_v_addr, cuuint32_t __pyx_v_value, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamWriteValue32_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5083
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5083, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5084
 *     global __cuStreamWriteValue32_v2
 *     cuPythonInit()
 *     if __cuStreamWriteValue32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5085
 *     cuPythonInit()
 *     if __cuStreamWriteValue32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue32_v2)(stream, addr, value, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5086
 *     if __cuStreamWriteValue32_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue32_v2)(stream, addr, value, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamWriteValue32_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5086, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5086, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5085
 *     cuPythonInit()
 *     if __cuStreamWriteValue32_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue32_v2)(stream, addr, value, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5084
 *     global __cuStreamWriteValue32_v2
 *     cuPythonInit()
 *     if __cuStreamWriteValue32_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5087
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue32_v2)(stream, addr, value, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2)(__pyx_v_stream, __pyx_v_addr, __pyx_v_value, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5087, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5088
 *             raise RuntimeError('Function "cuStreamWriteValue32_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint32_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue32_v2)(stream, addr, value, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5081
 *     return err
 * 
 * cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue32_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamWriteValue32_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5090
 *     return err
 * 
 * cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue64_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWriteValue64_v2(CUstream __pyx_v_stream, CUdeviceptr __pyx_v_addr, cuuint64_t __pyx_v_value, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamWriteValue64_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5092
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5092, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5093
 *     global __cuStreamWriteValue64_v2
 *     cuPythonInit()
 *     if __cuStreamWriteValue64_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5094
 *     cuPythonInit()
 *     if __cuStreamWriteValue64_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue64_v2)(stream, addr, value, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5095
 *     if __cuStreamWriteValue64_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue64_v2)(stream, addr, value, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamWriteValue64_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5095, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5095, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5094
 *     cuPythonInit()
 *     if __cuStreamWriteValue64_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue64_v2)(stream, addr, value, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5093
 *     global __cuStreamWriteValue64_v2
 *     cuPythonInit()
 *     if __cuStreamWriteValue64_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5096
 *         with gil:
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue64_v2)(stream, addr, value, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2)(__pyx_v_stream, __pyx_v_addr, __pyx_v_value, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5096, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5097
 *             raise RuntimeError('Function "cuStreamWriteValue64_v2" not found')
 *     err = (<CUresult (*)(CUstream, CUdeviceptr, cuuint64_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamWriteValue64_v2)(stream, addr, value, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5090
 *     return err
 * 
 * cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue64_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamWriteValue64_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5099
 *     return err
 * 
 * cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamBatchMemOp_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBatchMemOp_v2(CUstream __pyx_v_stream, unsigned int __pyx_v_count, CUstreamBatchMemOpParams *__pyx_v_paramArray, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamBatchMemOp_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5101
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5101, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5102
 *     global __cuStreamBatchMemOp_v2
 *     cuPythonInit()
 *     if __cuStreamBatchMemOp_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5103
 *     cuPythonInit()
 *     if __cuStreamBatchMemOp_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5104
 *     if __cuStreamBatchMemOp_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamBatchMemOp_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5104, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5104, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5103
 *     cuPythonInit()
 *     if __cuStreamBatchMemOp_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5102
 *     global __cuStreamBatchMemOp_v2
 *     cuPythonInit()
 *     if __cuStreamBatchMemOp_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5105
 *         with gil:
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2)(__pyx_v_stream, __pyx_v_count, __pyx_v_paramArray, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5105, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5106
 *             raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found')
 *     err = (<CUresult (*)(CUstream, unsigned int, CUstreamBatchMemOpParams*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5099
 *     return err
 * 
 * cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamBatchMemOp_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamBatchMemOp_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5108
 *     return err
 * 
 * cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetAttribute(int *__pyx_v_pi, CUfunction_attribute __pyx_v_attrib, CUfunction __pyx_v_hfunc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5110
 * cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5110, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5111
 *     global __cuFuncGetAttribute
 *     cuPythonInit()
 *     if __cuFuncGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5112
 *     cuPythonInit()
 *     if __cuFuncGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetAttribute)(pi, attrib, hfunc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5113
 *     if __cuFuncGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetAttribute)(pi, attrib, hfunc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncGetAttribute_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5113, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5113, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5112
 *     cuPythonInit()
 *     if __cuFuncGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetAttribute)(pi, attrib, hfunc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5111
 *     global __cuFuncGetAttribute
 *     cuPythonInit()
 *     if __cuFuncGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5114
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetAttribute)(pi, attrib, hfunc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction_attribute, CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute)(__pyx_v_pi, __pyx_v_attrib, __pyx_v_hfunc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5114, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5115
 *             raise RuntimeError('Function "cuFuncGetAttribute" not found')
 *     err = (<CUresult (*)(int*, CUfunction_attribute, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetAttribute)(pi, attrib, hfunc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5108
 *     return err
 * 
 * cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5117
 *     return err
 * 
 * cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetAttribute(CUfunction __pyx_v_hfunc, CUfunction_attribute __pyx_v_attrib, int __pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5119
 * cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncSetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncSetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5119, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5120
 *     global __cuFuncSetAttribute
 *     cuPythonInit()
 *     if __cuFuncSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5121
 *     cuPythonInit()
 *     if __cuFuncSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunction_attribute, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetAttribute)(hfunc, attrib, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5122
 *     if __cuFuncSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, CUfunction_attribute, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetAttribute)(hfunc, attrib, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncSetAttribute_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5122, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5122, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5121
 *     cuPythonInit()
 *     if __cuFuncSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunction_attribute, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetAttribute)(hfunc, attrib, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5120
 *     global __cuFuncSetAttribute
 *     cuPythonInit()
 *     if __cuFuncSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5123
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunction_attribute, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetAttribute)(hfunc, attrib, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, CUfunction_attribute, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute)(__pyx_v_hfunc, __pyx_v_attrib, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5123, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5124
 *             raise RuntimeError('Function "cuFuncSetAttribute" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunction_attribute, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetAttribute)(hfunc, attrib, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5117
 *     return err
 * 
 * cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5126
 *     return err
 * 
 * cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetCacheConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetCacheConfig(CUfunction __pyx_v_hfunc, CUfunc_cache __pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncSetCacheConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5128
 * cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncSetCacheConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncSetCacheConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5128, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5129
 *     global __cuFuncSetCacheConfig
 *     cuPythonInit()
 *     if __cuFuncSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5130
 *     cuPythonInit()
 *     if __cuFuncSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetCacheConfig)(hfunc, config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5131
 *     if __cuFuncSetCacheConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetCacheConfig)(hfunc, config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncSetCacheConfig_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5131, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5131, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5130
 *     cuPythonInit()
 *     if __cuFuncSetCacheConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetCacheConfig)(hfunc, config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5129
 *     global __cuFuncSetCacheConfig
 *     cuPythonInit()
 *     if __cuFuncSetCacheConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5132
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetCacheConfig)(hfunc, config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, CUfunc_cache))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig)(__pyx_v_hfunc, __pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5132, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5133
 *             raise RuntimeError('Function "cuFuncSetCacheConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUfunc_cache) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetCacheConfig)(hfunc, config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5126
 *     return err
 * 
 * cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetCacheConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5135
 *     return err
 * 
 * cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetModule
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetModule(CUmodule *__pyx_v_hmod, CUfunction __pyx_v_hfunc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncGetModule", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5137
 * cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncGetModule
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncGetModule == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5137, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5138
 *     global __cuFuncGetModule
 *     cuPythonInit()
 *     if __cuFuncGetModule == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5139
 *     cuPythonInit()
 *     if __cuFuncGetModule == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetModule)(hmod, hfunc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5140
 *     if __cuFuncGetModule == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetModule" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmodule*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetModule)(hmod, hfunc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncGetModule_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5140, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5140, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5139
 *     cuPythonInit()
 *     if __cuFuncGetModule == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetModule)(hmod, hfunc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5138
 *     global __cuFuncGetModule
 *     cuPythonInit()
 *     if __cuFuncGetModule == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5141
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetModule)(hmod, hfunc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmodule *, CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule)(__pyx_v_hmod, __pyx_v_hfunc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5141, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5142
 *             raise RuntimeError('Function "cuFuncGetModule" not found')
 *     err = (<CUresult (*)(CUmodule*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetModule)(hmod, hfunc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5135
 *     return err
 * 
 * cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetModule
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncGetModule", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5144
 *     return err
 * 
 * cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetName
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetName(char const **__pyx_v_name, CUfunction __pyx_v_hfunc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncGetName", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5146
 * cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncGetName
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncGetName == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5146, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5147
 *     global __cuFuncGetName
 *     cuPythonInit()
 *     if __cuFuncGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetName" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5148
 *     cuPythonInit()
 *     if __cuFuncGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetName" not found')
 *     err = (<CUresult (*)(const char**, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetName)(name, hfunc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5149
 *     if __cuFuncGetName == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetName" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const char**, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetName)(name, hfunc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncGetName_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5149, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5149, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5148
 *     cuPythonInit()
 *     if __cuFuncGetName == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetName" not found')
 *     err = (<CUresult (*)(const char**, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetName)(name, hfunc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5147
 *     global __cuFuncGetName
 *     cuPythonInit()
 *     if __cuFuncGetName == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetName" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5150
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetName" not found')
 *     err = (<CUresult (*)(const char**, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetName)(name, hfunc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char const **, CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName)(__pyx_v_name, __pyx_v_hfunc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5150, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5151
 *             raise RuntimeError('Function "cuFuncGetName" not found')
 *     err = (<CUresult (*)(const char**, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetName)(name, hfunc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5144
 *     return err
 * 
 * cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetName
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncGetName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5153
 *     return err
 * 
 * cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetParamInfo
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetParamInfo(CUfunction __pyx_v_func, size_t __pyx_v_paramIndex, size_t *__pyx_v_paramOffset, size_t *__pyx_v_paramSize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncGetParamInfo", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5155
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5155, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5156
 *     global __cuFuncGetParamInfo
 *     cuPythonInit()
 *     if __cuFuncGetParamInfo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5157
 *     cuPythonInit()
 *     if __cuFuncGetParamInfo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
 *     err = (<CUresult (*)(CUfunction, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5158
 *     if __cuFuncGetParamInfo == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncGetParamInfo_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5158, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5158, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5157
 *     cuPythonInit()
 *     if __cuFuncGetParamInfo == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
 *     err = (<CUresult (*)(CUfunction, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5156
 *     global __cuFuncGetParamInfo
 *     cuPythonInit()
 *     if __cuFuncGetParamInfo == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5159
 *         with gil:
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
 *     err = (<CUresult (*)(CUfunction, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, size_t, size_t *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo)(__pyx_v_func, __pyx_v_paramIndex, __pyx_v_paramOffset, __pyx_v_paramSize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5159, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5160
 *             raise RuntimeError('Function "cuFuncGetParamInfo" not found')
 *     err = (<CUresult (*)(CUfunction, size_t, size_t*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5153
 *     return err
 * 
 * cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncGetParamInfo
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncGetParamInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5162
 *     return err
 * 
 * cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncIsLoaded
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncIsLoaded(CUfunctionLoadingState *__pyx_v_state, CUfunction __pyx_v_function) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncIsLoaded", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5164
 * cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncIsLoaded
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncIsLoaded == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5164, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5165
 *     global __cuFuncIsLoaded
 *     cuPythonInit()
 *     if __cuFuncIsLoaded == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5166
 *     cuPythonInit()
 *     if __cuFuncIsLoaded == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
 *     err = (<CUresult (*)(CUfunctionLoadingState*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncIsLoaded)(state, function)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5167
 *     if __cuFuncIsLoaded == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunctionLoadingState*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncIsLoaded)(state, function)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncIsLoaded_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5167, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5167, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5166
 *     cuPythonInit()
 *     if __cuFuncIsLoaded == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
 *     err = (<CUresult (*)(CUfunctionLoadingState*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncIsLoaded)(state, function)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5165
 *     global __cuFuncIsLoaded
 *     cuPythonInit()
 *     if __cuFuncIsLoaded == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5168
 *         with gil:
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
 *     err = (<CUresult (*)(CUfunctionLoadingState*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncIsLoaded)(state, function)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunctionLoadingState *, CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded)(__pyx_v_state, __pyx_v_function); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5168, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5169
 *             raise RuntimeError('Function "cuFuncIsLoaded" not found')
 *     err = (<CUresult (*)(CUfunctionLoadingState*, CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncIsLoaded)(state, function)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5162
 *     return err
 * 
 * cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncIsLoaded
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncIsLoaded", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5171
 *     return err
 * 
 * cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncLoad
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncLoad(CUfunction __pyx_v_function) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncLoad", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5173
 * cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncLoad
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncLoad == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5173, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5174
 *     global __cuFuncLoad
 *     cuPythonInit()
 *     if __cuFuncLoad == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncLoad" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5175
 *     cuPythonInit()
 *     if __cuFuncLoad == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncLoad" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncLoad)(function)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5176
 *     if __cuFuncLoad == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncLoad" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncLoad)(function)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncLoad_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5176, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5176, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5175
 *     cuPythonInit()
 *     if __cuFuncLoad == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncLoad" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncLoad)(function)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5174
 *     global __cuFuncLoad
 *     cuPythonInit()
 *     if __cuFuncLoad == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncLoad" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5177
 *         with gil:
 *             raise RuntimeError('Function "cuFuncLoad" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncLoad)(function)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad)(__pyx_v_function); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5177, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5178
 *             raise RuntimeError('Function "cuFuncLoad" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncLoad)(function)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5171
 *     return err
 * 
 * cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncLoad
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncLoad", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5180
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchKernel(CUfunction __pyx_v_f, unsigned int __pyx_v_gridDimX, unsigned int __pyx_v_gridDimY, unsigned int __pyx_v_gridDimZ, unsigned int __pyx_v_blockDimX, unsigned int __pyx_v_blockDimY, unsigned int __pyx_v_blockDimZ, unsigned int __pyx_v_sharedMemBytes, CUstream __pyx_v_hStream, void **__pyx_v_kernelParams, void **__pyx_v_extra) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchKernel", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5182
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5182, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5183
 *     global __cuLaunchKernel
 *     cuPythonInit()
 *     if __cuLaunchKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5184
 *     cuPythonInit()
 *     if __cuLaunchKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5185
 *     if __cuLaunchKernel == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernel" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchKernel_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5185, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5185, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5184
 *     cuPythonInit()
 *     if __cuLaunchKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5183
 *     global __cuLaunchKernel
 *     cuPythonInit()
 *     if __cuLaunchKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5186
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel)(__pyx_v_f, __pyx_v_gridDimX, __pyx_v_gridDimY, __pyx_v_gridDimZ, __pyx_v_blockDimX, __pyx_v_blockDimY, __pyx_v_blockDimZ, __pyx_v_sharedMemBytes, __pyx_v_hStream, __pyx_v_kernelParams, __pyx_v_extra); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5186, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5187
 *             raise RuntimeError('Function "cuLaunchKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5180
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5189
 *     return err
 * 
 * cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchKernelEx
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchKernelEx(CUlaunchConfig const *__pyx_v_config, CUfunction __pyx_v_f, void **__pyx_v_kernelParams, void **__pyx_v_extra) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchKernelEx", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5191
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5191, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5192
 *     global __cuLaunchKernelEx
 *     cuPythonInit()
 *     if __cuLaunchKernelEx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5193
 *     cuPythonInit()
 *     if __cuLaunchKernelEx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
 *     err = (<CUresult (*)(const CUlaunchConfig*, CUfunction, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernelEx)(config, f, kernelParams, extra)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5194
 *     if __cuLaunchKernelEx == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const CUlaunchConfig*, CUfunction, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernelEx)(config, f, kernelParams, extra)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchKernelEx_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5194, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5194, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5193
 *     cuPythonInit()
 *     if __cuLaunchKernelEx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
 *     err = (<CUresult (*)(const CUlaunchConfig*, CUfunction, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernelEx)(config, f, kernelParams, extra)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5192
 *     global __cuLaunchKernelEx
 *     cuPythonInit()
 *     if __cuLaunchKernelEx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5195
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
 *     err = (<CUresult (*)(const CUlaunchConfig*, CUfunction, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernelEx)(config, f, kernelParams, extra)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlaunchConfig const *, CUfunction, void **, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx)(__pyx_v_config, __pyx_v_f, __pyx_v_kernelParams, __pyx_v_extra); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5195, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5196
 *             raise RuntimeError('Function "cuLaunchKernelEx" not found')
 *     err = (<CUresult (*)(const CUlaunchConfig*, CUfunction, void**, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchKernelEx)(config, f, kernelParams, extra)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5189
 *     return err
 * 
 * cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchKernelEx
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchKernelEx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5198
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchCooperativeKernel(CUfunction __pyx_v_f, unsigned int __pyx_v_gridDimX, unsigned int __pyx_v_gridDimY, unsigned int __pyx_v_gridDimZ, unsigned int __pyx_v_blockDimX, unsigned int __pyx_v_blockDimY, unsigned int __pyx_v_blockDimZ, unsigned int __pyx_v_sharedMemBytes, CUstream __pyx_v_hStream, void **__pyx_v_kernelParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchCooperativeKernel", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5200
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5200, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5201
 *     global __cuLaunchCooperativeKernel
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5202
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5203
 *     if __cuLaunchCooperativeKernel == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchCooperativeKern};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5203, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5203, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5202
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernel == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5201
 *     global __cuLaunchCooperativeKernel
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernel == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5204
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel)(__pyx_v_f, __pyx_v_gridDimX, __pyx_v_gridDimY, __pyx_v_gridDimZ, __pyx_v_blockDimX, __pyx_v_blockDimY, __pyx_v_blockDimZ, __pyx_v_sharedMemBytes, __pyx_v_hStream, __pyx_v_kernelParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5204, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5205
 *             raise RuntimeError('Function "cuLaunchCooperativeKernel" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void**) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5198
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchCooperativeKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5207
 *     return err
 * 
 * cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS *__pyx_v_launchParamsList, unsigned int __pyx_v_numDevices, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchCooperativeKernelMultiDevice", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5209
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5209, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5210
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernelMultiDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5211
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernelMultiDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
 *     err = (<CUresult (*)(CUDA_LAUNCH_PARAMS*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5212
 *     if __cuLaunchCooperativeKernelMultiDevice == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_LAUNCH_PARAMS*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchCooperativeKern_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5212, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5212, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5211
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernelMultiDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
 *     err = (<CUresult (*)(CUDA_LAUNCH_PARAMS*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5210
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     cuPythonInit()
 *     if __cuLaunchCooperativeKernelMultiDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5213
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
 *     err = (<CUresult (*)(CUDA_LAUNCH_PARAMS*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_LAUNCH_PARAMS *, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice)(__pyx_v_launchParamsList, __pyx_v_numDevices, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5213, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5214
 *             raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found')
 *     err = (<CUresult (*)(CUDA_LAUNCH_PARAMS*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5207
 *     return err
 * 
 * cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchCooperativeKernelMultiDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5216
 *     return err
 * 
 * cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchHostFunc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchHostFunc(CUstream __pyx_v_hStream, CUhostFn __pyx_v_fn, void *__pyx_v_userData) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchHostFunc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5218
 * cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLaunchHostFunc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLaunchHostFunc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5218, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5219
 *     global __cuLaunchHostFunc
 *     cuPythonInit()
 *     if __cuLaunchHostFunc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5220
 *     cuPythonInit()
 *     if __cuLaunchHostFunc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
 *     err = (<CUresult (*)(CUstream, CUhostFn, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchHostFunc)(hStream, fn, userData)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5221
 *     if __cuLaunchHostFunc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUhostFn, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchHostFunc)(hStream, fn, userData)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchHostFunc_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5221, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5221, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5220
 *     cuPythonInit()
 *     if __cuLaunchHostFunc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
 *     err = (<CUresult (*)(CUstream, CUhostFn, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchHostFunc)(hStream, fn, userData)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5219
 *     global __cuLaunchHostFunc
 *     cuPythonInit()
 *     if __cuLaunchHostFunc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5222
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
 *     err = (<CUresult (*)(CUstream, CUhostFn, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchHostFunc)(hStream, fn, userData)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUhostFn, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc)(__pyx_v_hStream, __pyx_v_fn, __pyx_v_userData); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5222, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5223
 *             raise RuntimeError('Function "cuLaunchHostFunc" not found')
 *     err = (<CUresult (*)(CUstream, CUhostFn, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchHostFunc)(hStream, fn, userData)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5216
 *     return err
 * 
 * cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchHostFunc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchHostFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5225
 *     return err
 * 
 * cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetBlockShape
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetBlockShape(CUfunction __pyx_v_hfunc, int __pyx_v_x, int __pyx_v_y, int __pyx_v_z) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncSetBlockShape", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5227
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5227, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5228
 *     global __cuFuncSetBlockShape
 *     cuPythonInit()
 *     if __cuFuncSetBlockShape == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5229
 *     cuPythonInit()
 *     if __cuFuncSetBlockShape == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetBlockShape)(hfunc, x, y, z)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5230
 *     if __cuFuncSetBlockShape == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetBlockShape)(hfunc, x, y, z)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncSetBlockShape_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5230, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5230, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5229
 *     cuPythonInit()
 *     if __cuFuncSetBlockShape == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetBlockShape)(hfunc, x, y, z)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5228
 *     global __cuFuncSetBlockShape
 *     cuPythonInit()
 *     if __cuFuncSetBlockShape == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5231
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetBlockShape)(hfunc, x, y, z)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, int, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape)(__pyx_v_hfunc, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5231, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5232
 *             raise RuntimeError('Function "cuFuncSetBlockShape" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetBlockShape)(hfunc, x, y, z)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5225
 *     return err
 * 
 * cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetBlockShape
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncSetBlockShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5234
 *     return err
 * 
 * cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedSize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetSharedSize(CUfunction __pyx_v_hfunc, unsigned int __pyx_v_numbytes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncSetSharedSize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5236
 * cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncSetSharedSize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncSetSharedSize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5236, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5237
 *     global __cuFuncSetSharedSize
 *     cuPythonInit()
 *     if __cuFuncSetSharedSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5238
 *     cuPythonInit()
 *     if __cuFuncSetSharedSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedSize)(hfunc, numbytes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5239
 *     if __cuFuncSetSharedSize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedSize)(hfunc, numbytes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncSetSharedSize_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5239, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5239, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5238
 *     cuPythonInit()
 *     if __cuFuncSetSharedSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedSize)(hfunc, numbytes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5237
 *     global __cuFuncSetSharedSize
 *     cuPythonInit()
 *     if __cuFuncSetSharedSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5240
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedSize)(hfunc, numbytes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize)(__pyx_v_hfunc, __pyx_v_numbytes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5240, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5241
 *             raise RuntimeError('Function "cuFuncSetSharedSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedSize)(hfunc, numbytes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5234
 *     return err
 * 
 * cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedSize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncSetSharedSize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5243
 *     return err
 * 
 * cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetSize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetSize(CUfunction __pyx_v_hfunc, unsigned int __pyx_v_numbytes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuParamSetSize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5245
 * cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuParamSetSize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuParamSetSize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5245, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5246
 *     global __cuParamSetSize
 *     cuPythonInit()
 *     if __cuParamSetSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetSize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5247
 *     cuPythonInit()
 *     if __cuParamSetSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetSize)(hfunc, numbytes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5248
 *     if __cuParamSetSize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetSize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetSize)(hfunc, numbytes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuParamSetSize_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5248, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5248, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5247
 *     cuPythonInit()
 *     if __cuParamSetSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetSize)(hfunc, numbytes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5246
 *     global __cuParamSetSize
 *     cuPythonInit()
 *     if __cuParamSetSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetSize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5249
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetSize)(hfunc, numbytes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize)(__pyx_v_hfunc, __pyx_v_numbytes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5249, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5250
 *             raise RuntimeError('Function "cuParamSetSize" not found')
 *     err = (<CUresult (*)(CUfunction, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetSize)(hfunc, numbytes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5243
 *     return err
 * 
 * cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetSize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuParamSetSize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5252
 *     return err
 * 
 * cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSeti
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSeti(CUfunction __pyx_v_hfunc, int __pyx_v_offset, unsigned int __pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuParamSeti", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5254
 * cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuParamSeti
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuParamSeti == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5254, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5255
 *     global __cuParamSeti
 *     cuPythonInit()
 *     if __cuParamSeti == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSeti" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5256
 *     cuPythonInit()
 *     if __cuParamSeti == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSeti" not found')
 *     err = (<CUresult (*)(CUfunction, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSeti)(hfunc, offset, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5257
 *     if __cuParamSeti == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuParamSeti" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSeti)(hfunc, offset, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuParamSeti_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5257, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5257, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5256
 *     cuPythonInit()
 *     if __cuParamSeti == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSeti" not found')
 *     err = (<CUresult (*)(CUfunction, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSeti)(hfunc, offset, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5255
 *     global __cuParamSeti
 *     cuPythonInit()
 *     if __cuParamSeti == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSeti" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5258
 *         with gil:
 *             raise RuntimeError('Function "cuParamSeti" not found')
 *     err = (<CUresult (*)(CUfunction, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSeti)(hfunc, offset, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti)(__pyx_v_hfunc, __pyx_v_offset, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5258, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5259
 *             raise RuntimeError('Function "cuParamSeti" not found')
 *     err = (<CUresult (*)(CUfunction, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSeti)(hfunc, offset, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5252
 *     return err
 * 
 * cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSeti
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuParamSeti", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5261
 *     return err
 * 
 * cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetf
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetf(CUfunction __pyx_v_hfunc, int __pyx_v_offset, float __pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuParamSetf", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5263
 * cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuParamSetf
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuParamSetf == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5263, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5264
 *     global __cuParamSetf
 *     cuPythonInit()
 *     if __cuParamSetf == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetf" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5265
 *     cuPythonInit()
 *     if __cuParamSetf == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetf" not found')
 *     err = (<CUresult (*)(CUfunction, int, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetf)(hfunc, offset, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5266
 *     if __cuParamSetf == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetf" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetf)(hfunc, offset, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuParamSetf_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5266, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5266, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5265
 *     cuPythonInit()
 *     if __cuParamSetf == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetf" not found')
 *     err = (<CUresult (*)(CUfunction, int, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetf)(hfunc, offset, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5264
 *     global __cuParamSetf
 *     cuPythonInit()
 *     if __cuParamSetf == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetf" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5267
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetf" not found')
 *     err = (<CUresult (*)(CUfunction, int, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetf)(hfunc, offset, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, float))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf)(__pyx_v_hfunc, __pyx_v_offset, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5267, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5268
 *             raise RuntimeError('Function "cuParamSetf" not found')
 *     err = (<CUresult (*)(CUfunction, int, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetf)(hfunc, offset, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5261
 *     return err
 * 
 * cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetf
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuParamSetf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5270
 *     return err
 * 
 * cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetv
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetv(CUfunction __pyx_v_hfunc, int __pyx_v_offset, void *__pyx_v_ptr, unsigned int __pyx_v_numbytes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuParamSetv", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5272
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5272, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5273
 *     global __cuParamSetv
 *     cuPythonInit()
 *     if __cuParamSetv == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetv" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5274
 *     cuPythonInit()
 *     if __cuParamSetv == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetv" not found')
 *     err = (<CUresult (*)(CUfunction, int, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetv)(hfunc, offset, ptr, numbytes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5275
 *     if __cuParamSetv == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetv" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetv)(hfunc, offset, ptr, numbytes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuParamSetv_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5275, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5275, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5274
 *     cuPythonInit()
 *     if __cuParamSetv == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetv" not found')
 *     err = (<CUresult (*)(CUfunction, int, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetv)(hfunc, offset, ptr, numbytes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5273
 *     global __cuParamSetv
 *     cuPythonInit()
 *     if __cuParamSetv == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetv" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5276
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetv" not found')
 *     err = (<CUresult (*)(CUfunction, int, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetv)(hfunc, offset, ptr, numbytes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, void *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv)(__pyx_v_hfunc, __pyx_v_offset, __pyx_v_ptr, __pyx_v_numbytes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5276, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5277
 *             raise RuntimeError('Function "cuParamSetv" not found')
 *     err = (<CUresult (*)(CUfunction, int, void*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetv)(hfunc, offset, ptr, numbytes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5270
 *     return err
 * 
 * cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetv
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuParamSetv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5279
 *     return err
 * 
 * cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunch
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunch(CUfunction __pyx_v_f) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunch", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5281
 * cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLaunch
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLaunch == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5281, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5282
 *     global __cuLaunch
 *     cuPythonInit()
 *     if __cuLaunch == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunch" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5283
 *     cuPythonInit()
 *     if __cuLaunch == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunch" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunch)(f)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5284
 *     if __cuLaunch == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunch" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunch)(f)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunch_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5284, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5284, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5283
 *     cuPythonInit()
 *     if __cuLaunch == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunch" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunch)(f)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5282
 *     global __cuLaunch
 *     cuPythonInit()
 *     if __cuLaunch == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunch" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5285
 *         with gil:
 *             raise RuntimeError('Function "cuLaunch" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunch)(f)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch)(__pyx_v_f); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5285, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5286
 *             raise RuntimeError('Function "cuLaunch" not found')
 *     err = (<CUresult (*)(CUfunction) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunch)(f)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5279
 *     return err
 * 
 * cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunch
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5288
 *     return err
 * 
 * cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchGrid
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchGrid(CUfunction __pyx_v_f, int __pyx_v_grid_width, int __pyx_v_grid_height) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchGrid", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5290
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5290, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5291
 *     global __cuLaunchGrid
 *     cuPythonInit()
 *     if __cuLaunchGrid == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5292
 *     cuPythonInit()
 *     if __cuLaunchGrid == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
 *     err = (<CUresult (*)(CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGrid)(f, grid_width, grid_height)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5293
 *     if __cuLaunchGrid == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGrid" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGrid)(f, grid_width, grid_height)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchGrid_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5293, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5293, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5292
 *     cuPythonInit()
 *     if __cuLaunchGrid == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
 *     err = (<CUresult (*)(CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGrid)(f, grid_width, grid_height)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5291
 *     global __cuLaunchGrid
 *     cuPythonInit()
 *     if __cuLaunchGrid == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5294
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
 *     err = (<CUresult (*)(CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGrid)(f, grid_width, grid_height)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid)(__pyx_v_f, __pyx_v_grid_width, __pyx_v_grid_height); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5294, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5295
 *             raise RuntimeError('Function "cuLaunchGrid" not found')
 *     err = (<CUresult (*)(CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGrid)(f, grid_width, grid_height)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5288
 *     return err
 * 
 * cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchGrid
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5297
 *     return err
 * 
 * cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchGridAsync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchGridAsync(CUfunction __pyx_v_f, int __pyx_v_grid_width, int __pyx_v_grid_height, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLaunchGridAsync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5299
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5299, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5300
 *     global __cuLaunchGridAsync
 *     cuPythonInit()
 *     if __cuLaunchGridAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5301
 *     cuPythonInit()
 *     if __cuLaunchGridAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGridAsync)(f, grid_width, grid_height, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5302
 *     if __cuLaunchGridAsync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGridAsync)(f, grid_width, grid_height, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLaunchGridAsync_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5302, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5302, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5301
 *     cuPythonInit()
 *     if __cuLaunchGridAsync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGridAsync)(f, grid_width, grid_height, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5300
 *     global __cuLaunchGridAsync
 *     cuPythonInit()
 *     if __cuLaunchGridAsync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5303
 *         with gil:
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGridAsync)(f, grid_width, grid_height, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, int, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync)(__pyx_v_f, __pyx_v_grid_width, __pyx_v_grid_height, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5303, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5304
 *             raise RuntimeError('Function "cuLaunchGridAsync" not found')
 *     err = (<CUresult (*)(CUfunction, int, int, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLaunchGridAsync)(f, grid_width, grid_height, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5297
 *     return err
 * 
 * cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLaunchGridAsync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLaunchGridAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5306
 *     return err
 * 
 * cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetTexRef
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetTexRef(CUfunction __pyx_v_hfunc, int __pyx_v_texunit, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuParamSetTexRef", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5308
 * cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuParamSetTexRef
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuParamSetTexRef == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5308, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5309
 *     global __cuParamSetTexRef
 *     cuPythonInit()
 *     if __cuParamSetTexRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5310
 *     cuPythonInit()
 *     if __cuParamSetTexRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
 *     err = (<CUresult (*)(CUfunction, int, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetTexRef)(hfunc, texunit, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5311
 *     if __cuParamSetTexRef == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, int, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetTexRef)(hfunc, texunit, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuParamSetTexRef_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5311, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5311, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5310
 *     cuPythonInit()
 *     if __cuParamSetTexRef == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
 *     err = (<CUresult (*)(CUfunction, int, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetTexRef)(hfunc, texunit, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5309
 *     global __cuParamSetTexRef
 *     cuPythonInit()
 *     if __cuParamSetTexRef == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5312
 *         with gil:
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
 *     err = (<CUresult (*)(CUfunction, int, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetTexRef)(hfunc, texunit, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, int, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef)(__pyx_v_hfunc, __pyx_v_texunit, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5312, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5313
 *             raise RuntimeError('Function "cuParamSetTexRef" not found')
 *     err = (<CUresult (*)(CUfunction, int, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuParamSetTexRef)(hfunc, texunit, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5306
 *     return err
 * 
 * cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuParamSetTexRef
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuParamSetTexRef", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5315
 *     return err
 * 
 * cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedMemConfig
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetSharedMemConfig(CUfunction __pyx_v_hfunc, CUsharedconfig __pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuFuncSetSharedMemConfig", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5317
 * cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuFuncSetSharedMemConfig
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuFuncSetSharedMemConfig == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5317, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5318
 *     global __cuFuncSetSharedMemConfig
 *     cuPythonInit()
 *     if __cuFuncSetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5319
 *     cuPythonInit()
 *     if __cuFuncSetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedMemConfig)(hfunc, config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5320
 *     if __cuFuncSetSharedMemConfig == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfunction, CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedMemConfig)(hfunc, config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuFuncSetSharedMemConfi};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5320, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5320, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5319
 *     cuPythonInit()
 *     if __cuFuncSetSharedMemConfig == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedMemConfig)(hfunc, config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5318
 *     global __cuFuncSetSharedMemConfig
 *     cuPythonInit()
 *     if __cuFuncSetSharedMemConfig == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5321
 *         with gil:
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedMemConfig)(hfunc, config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfunction, CUsharedconfig))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig)(__pyx_v_hfunc, __pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5321, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5322
 *             raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found')
 *     err = (<CUresult (*)(CUfunction, CUsharedconfig) except ?CUDA_ERROR_NOT_FOUND nogil> __cuFuncSetSharedMemConfig)(hfunc, config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5315
 *     return err
 * 
 * cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedMemConfig
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuFuncSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5324
 *     return err
 * 
 * cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphCreate(CUgraph *__pyx_v_phGraph, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5326
 * cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5326, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5327
 *     global __cuGraphCreate
 *     cuPythonInit()
 *     if __cuGraphCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5328
 *     cuPythonInit()
 *     if __cuGraphCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphCreate" not found')
 *     err = (<CUresult (*)(CUgraph*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphCreate)(phGraph, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5329
 *     if __cuGraphCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphCreate)(phGraph, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphCreate_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5329, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5329, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5328
 *     cuPythonInit()
 *     if __cuGraphCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphCreate" not found')
 *     err = (<CUresult (*)(CUgraph*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphCreate)(phGraph, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5327
 *     global __cuGraphCreate
 *     cuPythonInit()
 *     if __cuGraphCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5330
 *         with gil:
 *             raise RuntimeError('Function "cuGraphCreate" not found')
 *     err = (<CUresult (*)(CUgraph*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphCreate)(phGraph, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate)(__pyx_v_phGraph, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5330, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5331
 *             raise RuntimeError('Function "cuGraphCreate" not found')
 *     err = (<CUresult (*)(CUgraph*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphCreate)(phGraph, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5324
 *     return err
 * 
 * cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5333
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddKernelNode_v2(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_KERNEL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddKernelNode_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5335
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5335, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5336
 *     global __cuGraphAddKernelNode_v2
 *     cuPythonInit()
 *     if __cuGraphAddKernelNode_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5337
 *     cuPythonInit()
 *     if __cuGraphAddKernelNode_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5338
 *     if __cuGraphAddKernelNode_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddKernelNode_v2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5338, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5338, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5337
 *     cuPythonInit()
 *     if __cuGraphAddKernelNode_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5336
 *     global __cuGraphAddKernelNode_v2
 *     cuPythonInit()
 *     if __cuGraphAddKernelNode_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5339
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_KERNEL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5339, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5340
 *             raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5333
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddKernelNode_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5342
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetParams_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeGetParams_v2(CUgraphNode __pyx_v_hNode, CUDA_KERNEL_NODE_PARAMS *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphKernelNodeGetParams_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5344
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5344, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5345
 *     global __cuGraphKernelNodeGetParams_v2
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5346
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5347
 *     if __cuGraphKernelNodeGetParams_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphKernelNodeGetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5347, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5347, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5346
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5345
 *     global __cuGraphKernelNodeGetParams_v2
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5348
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5348, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5349
 *             raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5342
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetParams_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphKernelNodeGetParams_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5351
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetParams_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeSetParams_v2(CUgraphNode __pyx_v_hNode, CUDA_KERNEL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphKernelNodeSetParams_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5353
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5353, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5354
 *     global __cuGraphKernelNodeSetParams_v2
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5355
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5356
 *     if __cuGraphKernelNodeSetParams_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphKernelNodeSetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5356, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5356, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5355
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5354
 *     global __cuGraphKernelNodeSetParams_v2
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5357
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5357, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5358
 *             raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5351
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetParams_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphKernelNodeSetParams_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5360
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemcpyNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_MEMCPY3D const *__pyx_v_copyParams, CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddMemcpyNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5362
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5362, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5363
 *     global __cuGraphAddMemcpyNode
 *     cuPythonInit()
 *     if __cuGraphAddMemcpyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5364
 *     cuPythonInit()
 *     if __cuGraphAddMemcpyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5365
 *     if __cuGraphAddMemcpyNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddMemcpyNode_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5365, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5365, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5364
 *     cuPythonInit()
 *     if __cuGraphAddMemcpyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5363
 *     global __cuGraphAddMemcpyNode
 *     cuPythonInit()
 *     if __cuGraphAddMemcpyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5366
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEMCPY3D const *, CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_copyParams, __pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5366, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5367
 *             raise RuntimeError('Function "cuGraphAddMemcpyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5360
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddMemcpyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5369
 *     return err
 * 
 * cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemcpyNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_MEMCPY3D *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemcpyNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5371
 * cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphMemcpyNodeGetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphMemcpyNodeGetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5371, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5372
 *     global __cuGraphMemcpyNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5373
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeGetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5374
 *     if __cuGraphMemcpyNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeGetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemcpyNodeGetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5374, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5374, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5373
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeGetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5372
 *     global __cuGraphMemcpyNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5375
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeGetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_MEMCPY3D *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5375, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5376
 *             raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeGetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5369
 *     return err
 * 
 * cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemcpyNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5378
 *     return err
 * 
 * cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemcpyNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_MEMCPY3D const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemcpyNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5380
 * cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphMemcpyNodeSetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphMemcpyNodeSetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5380, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5381
 *     global __cuGraphMemcpyNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5382
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5383
 *     if __cuGraphMemcpyNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemcpyNodeSetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5383, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5383, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5382
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5381
 *     global __cuGraphMemcpyNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphMemcpyNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5384
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_MEMCPY3D const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5384, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5385
 *             raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMCPY3D*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemcpyNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5378
 *     return err
 * 
 * cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5387
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemsetNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_MEMSET_NODE_PARAMS const *__pyx_v_memsetParams, CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddMemsetNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5389
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5389, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5390
 *     global __cuGraphAddMemsetNode
 *     cuPythonInit()
 *     if __cuGraphAddMemsetNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5391
 *     cuPythonInit()
 *     if __cuGraphAddMemsetNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5392
 *     if __cuGraphAddMemsetNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddMemsetNode_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5392, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5392, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5391
 *     cuPythonInit()
 *     if __cuGraphAddMemsetNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5390
 *     global __cuGraphAddMemsetNode
 *     cuPythonInit()
 *     if __cuGraphAddMemsetNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5393
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEMSET_NODE_PARAMS const *, CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_memsetParams, __pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5393, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5394
 *             raise RuntimeError('Function "cuGraphAddMemsetNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5387
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddMemsetNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5396
 *     return err
 * 
 * cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemsetNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_MEMSET_NODE_PARAMS *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemsetNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5398
 * cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphMemsetNodeGetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphMemsetNodeGetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5398, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5399
 *     global __cuGraphMemsetNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5400
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeGetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5401
 *     if __cuGraphMemsetNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeGetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemsetNodeGetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5401, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5401, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5400
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeGetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5399
 *     global __cuGraphMemsetNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5402
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeGetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5402, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5403
 *             raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeGetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5396
 *     return err
 * 
 * cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemsetNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5405
 *     return err
 * 
 * cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemsetNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_MEMSET_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemsetNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5407
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5407, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5408
 *     global __cuGraphMemsetNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5409
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5410
 *     if __cuGraphMemsetNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemsetNodeSetPar};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5410, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5410, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5409
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5408
 *     global __cuGraphMemsetNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphMemsetNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5411
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5411, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5412
 *             raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemsetNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5405
 *     return err
 * 
 * cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5414
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddHostNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_HOST_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddHostNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5416
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5416, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5417
 *     global __cuGraphAddHostNode
 *     cuPythonInit()
 *     if __cuGraphAddHostNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5418
 *     cuPythonInit()
 *     if __cuGraphAddHostNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5419
 *     if __cuGraphAddHostNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddHostNode_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5419, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5419, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5418
 *     cuPythonInit()
 *     if __cuGraphAddHostNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5417
 *     global __cuGraphAddHostNode
 *     cuPythonInit()
 *     if __cuGraphAddHostNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5420
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_HOST_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5420, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5421
 *             raise RuntimeError('Function "cuGraphAddHostNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5414
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddHostNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5423
 *     return err
 * 
 * cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphHostNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_HOST_NODE_PARAMS *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphHostNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5425
 * cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphHostNodeGetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphHostNodeGetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5425, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5426
 *     global __cuGraphHostNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphHostNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5427
 *     cuPythonInit()
 *     if __cuGraphHostNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeGetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5428
 *     if __cuGraphHostNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeGetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphHostNodeGetParam};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5428, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5428, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5427
 *     cuPythonInit()
 *     if __cuGraphHostNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeGetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5426
 *     global __cuGraphHostNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphHostNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5429
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeGetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5429, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5430
 *             raise RuntimeError('Function "cuGraphHostNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeGetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5423
 *     return err
 * 
 * cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphHostNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5432
 *     return err
 * 
 * cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphHostNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_HOST_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphHostNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5434
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5434, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5435
 *     global __cuGraphHostNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphHostNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5436
 *     cuPythonInit()
 *     if __cuGraphHostNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5437
 *     if __cuGraphHostNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphHostNodeSetParam};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5437, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5437, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5436
 *     cuPythonInit()
 *     if __cuGraphHostNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5435
 *     global __cuGraphHostNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphHostNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5438
 *         with gil:
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_HOST_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5438, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5439
 *             raise RuntimeError('Function "cuGraphHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphHostNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5432
 *     return err
 * 
 * cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5441
 *     return err
 * 
 * cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddChildGraphNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddChildGraphNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUgraph __pyx_v_childGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddChildGraphNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5443
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5443, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5444
 *     global __cuGraphAddChildGraphNode
 *     cuPythonInit()
 *     if __cuGraphAddChildGraphNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5445
 *     cuPythonInit()
 *     if __cuGraphAddChildGraphNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5446
 *     if __cuGraphAddChildGraphNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddChildGraphNod};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5446, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5446, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5445
 *     cuPythonInit()
 *     if __cuGraphAddChildGraphNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5444
 *     global __cuGraphAddChildGraphNode
 *     cuPythonInit()
 *     if __cuGraphAddChildGraphNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5447
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUgraph))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_childGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5447, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5448
 *             raise RuntimeError('Function "cuGraphAddChildGraphNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5441
 *     return err
 * 
 * cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddChildGraphNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddChildGraphNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5450
 *     return err
 * 
 * cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphChildGraphNodeGetGraph
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphChildGraphNodeGetGraph(CUgraphNode __pyx_v_hNode, CUgraph *__pyx_v_phGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphChildGraphNodeGetGraph", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5452
 * cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphChildGraphNodeGetGraph
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphChildGraphNodeGetGraph == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5452, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5453
 *     global __cuGraphChildGraphNodeGetGraph
 *     cuPythonInit()
 *     if __cuGraphChildGraphNodeGetGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5454
 *     cuPythonInit()
 *     if __cuGraphChildGraphNodeGetGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphChildGraphNodeGetGraph)(hNode, phGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5455
 *     if __cuGraphChildGraphNodeGetGraph == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphChildGraphNodeGetGraph)(hNode, phGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphChildGraphNodeGe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5455, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5455, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5454
 *     cuPythonInit()
 *     if __cuGraphChildGraphNodeGetGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphChildGraphNodeGetGraph)(hNode, phGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5453
 *     global __cuGraphChildGraphNodeGetGraph
 *     cuPythonInit()
 *     if __cuGraphChildGraphNodeGetGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5456
 *         with gil:
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphChildGraphNodeGetGraph)(hNode, phGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraph *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph)(__pyx_v_hNode, __pyx_v_phGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5456, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5457
 *             raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphChildGraphNodeGetGraph)(hNode, phGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5450
 *     return err
 * 
 * cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphChildGraphNodeGetGraph
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphChildGraphNodeGetGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5459
 *     return err
 * 
 * cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEmptyNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEmptyNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddEmptyNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5461
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5461, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5462
 *     global __cuGraphAddEmptyNode
 *     cuPythonInit()
 *     if __cuGraphAddEmptyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5463
 *     cuPythonInit()
 *     if __cuGraphAddEmptyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5464
 *     if __cuGraphAddEmptyNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddEmptyNode_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5464, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5464, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5463
 *     cuPythonInit()
 *     if __cuGraphAddEmptyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5462
 *     global __cuGraphAddEmptyNode
 *     cuPythonInit()
 *     if __cuGraphAddEmptyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5465
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5465, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5466
 *             raise RuntimeError('Function "cuGraphAddEmptyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5459
 *     return err
 * 
 * cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEmptyNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddEmptyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5468
 *     return err
 * 
 * cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventRecordNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEventRecordNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddEventRecordNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5470
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5470, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5471
 *     global __cuGraphAddEventRecordNode
 *     cuPythonInit()
 *     if __cuGraphAddEventRecordNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5472
 *     cuPythonInit()
 *     if __cuGraphAddEventRecordNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5473
 *     if __cuGraphAddEventRecordNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddEventRecordNo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5473, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5473, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5472
 *     cuPythonInit()
 *     if __cuGraphAddEventRecordNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5471
 *     global __cuGraphAddEventRecordNode
 *     cuPythonInit()
 *     if __cuGraphAddEventRecordNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5474
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5474, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5475
 *             raise RuntimeError('Function "cuGraphAddEventRecordNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5468
 *     return err
 * 
 * cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventRecordNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddEventRecordNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5477
 *     return err
 * 
 * cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeGetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventRecordNodeGetEvent(CUgraphNode __pyx_v_hNode, CUevent *__pyx_v_event_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphEventRecordNodeGetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5479
 * cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphEventRecordNodeGetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphEventRecordNodeGetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5479, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5480
 *     global __cuGraphEventRecordNodeGetEvent
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeGetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5481
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeGetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeGetEvent)(hNode, event_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5482
 *     if __cuGraphEventRecordNodeGetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeGetEvent)(hNode, event_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphEventRecordNodeG};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5482, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5482, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5481
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeGetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeGetEvent)(hNode, event_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5480
 *     global __cuGraphEventRecordNodeGetEvent
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeGetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5483
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeGetEvent)(hNode, event_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUevent *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent)(__pyx_v_hNode, __pyx_v_event_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5483, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5484
 *             raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeGetEvent)(hNode, event_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5477
 *     return err
 * 
 * cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeGetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphEventRecordNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5486
 *     return err
 * 
 * cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeSetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventRecordNodeSetEvent(CUgraphNode __pyx_v_hNode, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphEventRecordNodeSetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5488
 * cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphEventRecordNodeSetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphEventRecordNodeSetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5488, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5489
 *     global __cuGraphEventRecordNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5490
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeSetEvent)(hNode, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5491
 *     if __cuGraphEventRecordNodeSetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeSetEvent)(hNode, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphEventRecordNodeS};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5491, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5491, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5490
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeSetEvent)(hNode, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5489
 *     global __cuGraphEventRecordNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphEventRecordNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5492
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeSetEvent)(hNode, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent)(__pyx_v_hNode, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5492, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5493
 *             raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventRecordNodeSetEvent)(hNode, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5486
 *     return err
 * 
 * cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeSetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5495
 *     return err
 * 
 * cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventWaitNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEventWaitNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddEventWaitNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5497
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5497, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5498
 *     global __cuGraphAddEventWaitNode
 *     cuPythonInit()
 *     if __cuGraphAddEventWaitNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5499
 *     cuPythonInit()
 *     if __cuGraphAddEventWaitNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5500
 *     if __cuGraphAddEventWaitNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddEventWaitNode};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5500, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5500, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5499
 *     cuPythonInit()
 *     if __cuGraphAddEventWaitNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5498
 *     global __cuGraphAddEventWaitNode
 *     cuPythonInit()
 *     if __cuGraphAddEventWaitNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5501
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5501, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5502
 *             raise RuntimeError('Function "cuGraphAddEventWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5495
 *     return err
 * 
 * cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventWaitNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddEventWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5504
 *     return err
 * 
 * cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeGetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventWaitNodeGetEvent(CUgraphNode __pyx_v_hNode, CUevent *__pyx_v_event_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphEventWaitNodeGetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5506
 * cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphEventWaitNodeGetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphEventWaitNodeGetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5506, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5507
 *     global __cuGraphEventWaitNodeGetEvent
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeGetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5508
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeGetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeGetEvent)(hNode, event_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5509
 *     if __cuGraphEventWaitNodeGetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeGetEvent)(hNode, event_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphEventWaitNodeGet};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5509, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5509, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5508
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeGetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeGetEvent)(hNode, event_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5507
 *     global __cuGraphEventWaitNodeGetEvent
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeGetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5510
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeGetEvent)(hNode, event_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUevent *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent)(__pyx_v_hNode, __pyx_v_event_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5510, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5511
 *             raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeGetEvent)(hNode, event_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5504
 *     return err
 * 
 * cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeGetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphEventWaitNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5513
 *     return err
 * 
 * cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeSetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventWaitNodeSetEvent(CUgraphNode __pyx_v_hNode, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphEventWaitNodeSetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5515
 * cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphEventWaitNodeSetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphEventWaitNodeSetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5515, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5516
 *     global __cuGraphEventWaitNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5517
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeSetEvent)(hNode, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5518
 *     if __cuGraphEventWaitNodeSetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeSetEvent)(hNode, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphEventWaitNodeSet};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5518, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5518, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5517
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeSetEvent)(hNode, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5516
 *     global __cuGraphEventWaitNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphEventWaitNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5519
 *         with gil:
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeSetEvent)(hNode, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent)(__pyx_v_hNode, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5519, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5520
 *             raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphEventWaitNodeSetEvent)(hNode, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5513
 *     return err
 * 
 * cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeSetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5522
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddExternalSemaphoresSignalNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddExternalSemaphoresSignalNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5524
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5524, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5525
 *     global __cuGraphAddExternalSemaphoresSignalNode
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresSignalNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5526
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresSignalNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5527
 *     if __cuGraphAddExternalSemaphoresSignalNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddExternalSemap};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5527, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5527, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5526
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresSignalNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5525
 *     global __cuGraphAddExternalSemaphoresSignalNode
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresSignalNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5528
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5528, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5529
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5522
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddExternalSemaphoresSignalNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5531
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *__pyx_v_params_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExternalSemaphoresSignalNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5533
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5533, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5534
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5535
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5536
 *     if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExternalSemaphor};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5536, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5536, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5535
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5534
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5537
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams)(__pyx_v_hNode, __pyx_v_params_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5537, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5538
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5531
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExternalSemaphoresSignalNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5540
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExternalSemaphoresSignalNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5542
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5542, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5543
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5544
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5545
 *     if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExternalSemaphor_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5545, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5545, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5544
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5543
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5546
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5546, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5547
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5540
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5549
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddExternalSemaphoresWaitNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddExternalSemaphoresWaitNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5551
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5551, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5552
 *     global __cuGraphAddExternalSemaphoresWaitNode
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresWaitNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5553
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresWaitNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5554
 *     if __cuGraphAddExternalSemaphoresWaitNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddExternalSemap_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5554, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5554, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5553
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresWaitNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5552
 *     global __cuGraphAddExternalSemaphoresWaitNode
 *     cuPythonInit()
 *     if __cuGraphAddExternalSemaphoresWaitNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5555
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5555, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5556
 *             raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5549
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddExternalSemaphoresWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5558
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS *__pyx_v_params_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExternalSemaphoresWaitNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5560
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5560, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5561
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5562
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5563
 *     if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExternalSemaphor_3};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5563, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5563, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5562
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5561
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5564
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams)(__pyx_v_hNode, __pyx_v_params_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5564, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5565
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5558
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExternalSemaphoresWaitNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5567
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExternalSemaphoresWaitNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5569
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5569, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5570
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5571
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5572
 *     if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExternalSemaphor_4};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5572, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5572, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5571
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5570
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5573
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5573, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5574
 *             raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5567
 *     return err
 * 
 * cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5576
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddBatchMemOpNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_BATCH_MEM_OP_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddBatchMemOpNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5578
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5578, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5579
 *     global __cuGraphAddBatchMemOpNode
 *     cuPythonInit()
 *     if __cuGraphAddBatchMemOpNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5580
 *     cuPythonInit()
 *     if __cuGraphAddBatchMemOpNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5581
 *     if __cuGraphAddBatchMemOpNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddBatchMemOpNod};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5581, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5581, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5580
 *     cuPythonInit()
 *     if __cuGraphAddBatchMemOpNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5579
 *     global __cuGraphAddBatchMemOpNode
 *     cuPythonInit()
 *     if __cuGraphAddBatchMemOpNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5582
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_BATCH_MEM_OP_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5582, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5583
 *             raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5576
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddBatchMemOpNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5585
 *     return err
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphBatchMemOpNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS *__pyx_v_nodeParams_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphBatchMemOpNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5587
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5587, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5588
 *     global __cuGraphBatchMemOpNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5589
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5590
 *     if __cuGraphBatchMemOpNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphBatchMemOpNodeGe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5590, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5590, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5589
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5588
 *     global __cuGraphBatchMemOpNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5591
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams)(__pyx_v_hNode, __pyx_v_nodeParams_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5591, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5592
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5585
 *     return err
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphBatchMemOpNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5594
 *     return err
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphBatchMemOpNodeSetParams(CUgraphNode __pyx_v_hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphBatchMemOpNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5596
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5596, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5597
 *     global __cuGraphBatchMemOpNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5598
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5599
 *     if __cuGraphBatchMemOpNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphBatchMemOpNodeSe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5599, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5599, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5598
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5597
 *     global __cuGraphBatchMemOpNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphBatchMemOpNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5600
 *         with gil:
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5600, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5601
 *             raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5594
 *     return err
 * 
 * cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphBatchMemOpNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5603
 *     return err
 * 
 * cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecBatchMemOpNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecBatchMemOpNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5605
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5605, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5606
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecBatchMemOpNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5607
 *     cuPythonInit()
 *     if __cuGraphExecBatchMemOpNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5608
 *     if __cuGraphExecBatchMemOpNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecBatchMemOpNo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5608, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5608, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5607
 *     cuPythonInit()
 *     if __cuGraphExecBatchMemOpNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5606
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecBatchMemOpNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5609
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5609, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5610
 *             raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5603
 *     return err
 * 
 * cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecBatchMemOpNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5612
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemAllocNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddMemAllocNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5614
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5614, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5615
 *     global __cuGraphAddMemAllocNode
 *     cuPythonInit()
 *     if __cuGraphAddMemAllocNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5616
 *     cuPythonInit()
 *     if __cuGraphAddMemAllocNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5617
 *     if __cuGraphAddMemAllocNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddMemAllocNode};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5617, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5617, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5616
 *     cuPythonInit()
 *     if __cuGraphAddMemAllocNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5615
 *     global __cuGraphAddMemAllocNode
 *     cuPythonInit()
 *     if __cuGraphAddMemAllocNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5618
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEM_ALLOC_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5618, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5619
 *             raise RuntimeError('Function "cuGraphAddMemAllocNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5612
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddMemAllocNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5621
 *     return err
 * 
 * cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemAllocNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemAllocNodeGetParams(CUgraphNode __pyx_v_hNode, CUDA_MEM_ALLOC_NODE_PARAMS *__pyx_v_params_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemAllocNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5623
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5623, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5624
 *     global __cuGraphMemAllocNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemAllocNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5625
 *     cuPythonInit()
 *     if __cuGraphMemAllocNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemAllocNodeGetParams)(hNode, params_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5626
 *     if __cuGraphMemAllocNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemAllocNodeGetParams)(hNode, params_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemAllocNodeGetP};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5626, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5626, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5625
 *     cuPythonInit()
 *     if __cuGraphMemAllocNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemAllocNodeGetParams)(hNode, params_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5624
 *     global __cuGraphMemAllocNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemAllocNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5627
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemAllocNodeGetParams)(hNode, params_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams)(__pyx_v_hNode, __pyx_v_params_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5627, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5628
 *             raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemAllocNodeGetParams)(hNode, params_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5621
 *     return err
 * 
 * cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemAllocNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemAllocNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5630
 *     return err
 * 
 * cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemFreeNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemFreeNode(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, size_t __pyx_v_numDependencies, CUdeviceptr __pyx_v_dptr) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddMemFreeNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5632
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5632, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5633
 *     global __cuGraphAddMemFreeNode
 *     cuPythonInit()
 *     if __cuGraphAddMemFreeNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5634
 *     cuPythonInit()
 *     if __cuGraphAddMemFreeNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5635
 *     if __cuGraphAddMemFreeNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddMemFreeNode_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5635, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5635, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5634
 *     cuPythonInit()
 *     if __cuGraphAddMemFreeNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5633
 *     global __cuGraphAddMemFreeNode
 *     cuPythonInit()
 *     if __cuGraphAddMemFreeNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5636
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUdeviceptr))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_dptr); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5636, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5637
 *             raise RuntimeError('Function "cuGraphAddMemFreeNode" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, size_t, CUdeviceptr) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5630
 *     return err
 * 
 * cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemFreeNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddMemFreeNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5639
 *     return err
 * 
 * cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemFreeNodeGetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemFreeNodeGetParams(CUgraphNode __pyx_v_hNode, CUdeviceptr *__pyx_v_dptr_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphMemFreeNodeGetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5641
 * cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphMemFreeNodeGetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphMemFreeNodeGetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5641, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5642
 *     global __cuGraphMemFreeNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemFreeNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5643
 *     cuPythonInit()
 *     if __cuGraphMemFreeNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUdeviceptr*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemFreeNodeGetParams)(hNode, dptr_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5644
 *     if __cuGraphMemFreeNodeGetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUdeviceptr*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemFreeNodeGetParams)(hNode, dptr_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphMemFreeNodeGetPa};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5644, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5644, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5643
 *     cuPythonInit()
 *     if __cuGraphMemFreeNodeGetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUdeviceptr*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemFreeNodeGetParams)(hNode, dptr_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5642
 *     global __cuGraphMemFreeNodeGetParams
 *     cuPythonInit()
 *     if __cuGraphMemFreeNodeGetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5645
 *         with gil:
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUdeviceptr*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemFreeNodeGetParams)(hNode, dptr_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUdeviceptr *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams)(__pyx_v_hNode, __pyx_v_dptr_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5645, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5646
 *             raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUdeviceptr*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphMemFreeNodeGetParams)(hNode, dptr_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5639
 *     return err
 * 
 * cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphMemFreeNodeGetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphMemFreeNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5648
 *     return err
 * 
 * cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGraphMemTrim
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGraphMemTrim(CUdevice __pyx_v_device) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGraphMemTrim", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5650
 * cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGraphMemTrim
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGraphMemTrim == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5650, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5651
 *     global __cuDeviceGraphMemTrim
 *     cuPythonInit()
 *     if __cuDeviceGraphMemTrim == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5652
 *     cuPythonInit()
 *     if __cuDeviceGraphMemTrim == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGraphMemTrim)(device)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5653
 *     if __cuDeviceGraphMemTrim == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGraphMemTrim)(device)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGraphMemTrim_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5653, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5653, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5652
 *     cuPythonInit()
 *     if __cuDeviceGraphMemTrim == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGraphMemTrim)(device)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5651
 *     global __cuDeviceGraphMemTrim
 *     cuPythonInit()
 *     if __cuDeviceGraphMemTrim == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5654
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGraphMemTrim)(device)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim)(__pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5654, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5655
 *             raise RuntimeError('Function "cuDeviceGraphMemTrim" not found')
 *     err = (<CUresult (*)(CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGraphMemTrim)(device)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5648
 *     return err
 * 
 * cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGraphMemTrim
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGraphMemTrim", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5657
 *     return err
 * 
 * cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetGraphMemAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetGraphMemAttribute(CUdevice __pyx_v_device, CUgraphMem_attribute __pyx_v_attr, void *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetGraphMemAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5659
 * cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetGraphMemAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetGraphMemAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5659, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5660
 *     global __cuDeviceGetGraphMemAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetGraphMemAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5661
 *     cuPythonInit()
 *     if __cuDeviceGetGraphMemAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetGraphMemAttribute)(device, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5662
 *     if __cuDeviceGetGraphMemAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetGraphMemAttribute)(device, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetGraphMemAttr};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5662, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5662, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5661
 *     cuPythonInit()
 *     if __cuDeviceGetGraphMemAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetGraphMemAttribute)(device, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5660
 *     global __cuDeviceGetGraphMemAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetGraphMemAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5663
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetGraphMemAttribute)(device, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUgraphMem_attribute, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute)(__pyx_v_device, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5663, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5664
 *             raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetGraphMemAttribute)(device, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5657
 *     return err
 * 
 * cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetGraphMemAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5666
 *     return err
 * 
 * cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetGraphMemAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceSetGraphMemAttribute(CUdevice __pyx_v_device, CUgraphMem_attribute __pyx_v_attr, void *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceSetGraphMemAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5668
 * cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceSetGraphMemAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceSetGraphMemAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5668, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5669
 *     global __cuDeviceSetGraphMemAttribute
 *     cuPythonInit()
 *     if __cuDeviceSetGraphMemAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5670
 *     cuPythonInit()
 *     if __cuDeviceSetGraphMemAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetGraphMemAttribute)(device, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5671
 *     if __cuDeviceSetGraphMemAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetGraphMemAttribute)(device, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceSetGraphMemAttr};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5671, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5671, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5670
 *     cuPythonInit()
 *     if __cuDeviceSetGraphMemAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetGraphMemAttribute)(device, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5669
 *     global __cuDeviceSetGraphMemAttribute
 *     cuPythonInit()
 *     if __cuDeviceSetGraphMemAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5672
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetGraphMemAttribute)(device, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUgraphMem_attribute, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute)(__pyx_v_device, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5672, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5673
 *             raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found')
 *     err = (<CUresult (*)(CUdevice, CUgraphMem_attribute, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceSetGraphMemAttribute)(device, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5666
 *     return err
 * 
 * cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetGraphMemAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceSetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5675
 *     return err
 * 
 * cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphClone
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphClone(CUgraph *__pyx_v_phGraphClone, CUgraph __pyx_v_originalGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphClone", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5677
 * cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphClone
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphClone == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5677, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5678
 *     global __cuGraphClone
 *     cuPythonInit()
 *     if __cuGraphClone == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphClone" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5679
 *     cuPythonInit()
 *     if __cuGraphClone == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphClone" not found')
 *     err = (<CUresult (*)(CUgraph*, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphClone)(phGraphClone, originalGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5680
 *     if __cuGraphClone == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphClone" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph*, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphClone)(phGraphClone, originalGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphClone_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5680, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5680, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5679
 *     cuPythonInit()
 *     if __cuGraphClone == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphClone" not found')
 *     err = (<CUresult (*)(CUgraph*, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphClone)(phGraphClone, originalGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5678
 *     global __cuGraphClone
 *     cuPythonInit()
 *     if __cuGraphClone == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphClone" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5681
 *         with gil:
 *             raise RuntimeError('Function "cuGraphClone" not found')
 *     err = (<CUresult (*)(CUgraph*, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphClone)(phGraphClone, originalGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph *, CUgraph))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone)(__pyx_v_phGraphClone, __pyx_v_originalGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5681, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5682
 *             raise RuntimeError('Function "cuGraphClone" not found')
 *     err = (<CUresult (*)(CUgraph*, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphClone)(phGraphClone, originalGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5675
 *     return err
 * 
 * cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphClone
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5684
 *     return err
 * 
 * cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeFindInClone
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeFindInClone(CUgraphNode *__pyx_v_phNode, CUgraphNode __pyx_v_hOriginalNode, CUgraph __pyx_v_hClonedGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeFindInClone", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5686
 * cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeFindInClone
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeFindInClone == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5686, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5687
 *     global __cuGraphNodeFindInClone
 *     cuPythonInit()
 *     if __cuGraphNodeFindInClone == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5688
 *     cuPythonInit()
 *     if __cuGraphNodeFindInClone == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5689
 *     if __cuGraphNodeFindInClone == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeFindInClone};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5689, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5689, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5688
 *     cuPythonInit()
 *     if __cuGraphNodeFindInClone == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5687
 *     global __cuGraphNodeFindInClone
 *     cuPythonInit()
 *     if __cuGraphNodeFindInClone == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5690
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraphNode, CUgraph))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone)(__pyx_v_phNode, __pyx_v_hOriginalNode, __pyx_v_hClonedGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5690, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5691
 *             raise RuntimeError('Function "cuGraphNodeFindInClone" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5684
 *     return err
 * 
 * cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeFindInClone
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeFindInClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5693
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetType
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetType(CUgraphNode __pyx_v_hNode, CUgraphNodeType *__pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetType", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5695
 * cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeGetType
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeGetType == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5695, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5696
 *     global __cuGraphNodeGetType
 *     cuPythonInit()
 *     if __cuGraphNodeGetType == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5697
 *     cuPythonInit()
 *     if __cuGraphNodeGetType == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeType*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetType)(hNode, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5698
 *     if __cuGraphNodeGetType == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeType*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetType)(hNode, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetType_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5698, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5698, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5697
 *     cuPythonInit()
 *     if __cuGraphNodeGetType == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeType*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetType)(hNode, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5696
 *     global __cuGraphNodeGetType
 *     cuPythonInit()
 *     if __cuGraphNodeGetType == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5699
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeType*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetType)(hNode, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraphNodeType *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType)(__pyx_v_hNode, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5699, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5700
 *             raise RuntimeError('Function "cuGraphNodeGetType" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeType*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetType)(hNode, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5693
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetType
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetType", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5702
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetContainingGraph
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetContainingGraph(CUgraphNode __pyx_v_hNode, CUgraph *__pyx_v_phGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetContainingGraph", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5704
 * cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeGetContainingGraph
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeGetContainingGraph == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5704, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5705
 *     global __cuGraphNodeGetContainingGraph
 *     cuPythonInit()
 *     if __cuGraphNodeGetContainingGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5706
 *     cuPythonInit()
 *     if __cuGraphNodeGetContainingGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetContainingGraph)(hNode, phGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5707
 *     if __cuGraphNodeGetContainingGraph == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetContainingGraph)(hNode, phGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetContainin};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5707, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5707, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5706
 *     cuPythonInit()
 *     if __cuGraphNodeGetContainingGraph == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetContainingGraph)(hNode, phGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5705
 *     global __cuGraphNodeGetContainingGraph
 *     cuPythonInit()
 *     if __cuGraphNodeGetContainingGraph == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5708
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetContainingGraph)(hNode, phGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraph *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph)(__pyx_v_hNode, __pyx_v_phGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5708, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5709
 *             raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraph*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetContainingGraph)(hNode, phGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5702
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetContainingGraph
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetContainingGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5711
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetLocalId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetLocalId(CUgraphNode __pyx_v_hNode, unsigned int *__pyx_v_nodeId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetLocalId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5713
 * cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeGetLocalId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeGetLocalId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5713, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5714
 *     global __cuGraphNodeGetLocalId
 *     cuPythonInit()
 *     if __cuGraphNodeGetLocalId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5715
 *     cuPythonInit()
 *     if __cuGraphNodeGetLocalId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetLocalId)(hNode, nodeId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5716
 *     if __cuGraphNodeGetLocalId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetLocalId)(hNode, nodeId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetLocalId_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5716, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5716, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5715
 *     cuPythonInit()
 *     if __cuGraphNodeGetLocalId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetLocalId)(hNode, nodeId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5714
 *     global __cuGraphNodeGetLocalId
 *     cuPythonInit()
 *     if __cuGraphNodeGetLocalId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5717
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetLocalId)(hNode, nodeId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId)(__pyx_v_hNode, __pyx_v_nodeId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5717, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5718
 *             raise RuntimeError('Function "cuGraphNodeGetLocalId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetLocalId)(hNode, nodeId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5711
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetLocalId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetLocalId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5720
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetToolsId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetToolsId(CUgraphNode __pyx_v_hNode, unsigned PY_LONG_LONG *__pyx_v_toolsNodeId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetToolsId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5722
 * cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeGetToolsId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeGetToolsId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5722, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5723
 *     global __cuGraphNodeGetToolsId
 *     cuPythonInit()
 *     if __cuGraphNodeGetToolsId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5724
 *     cuPythonInit()
 *     if __cuGraphNodeGetToolsId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetToolsId)(hNode, toolsNodeId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5725
 *     if __cuGraphNodeGetToolsId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetToolsId)(hNode, toolsNodeId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetToolsId_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5725, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5725, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5724
 *     cuPythonInit()
 *     if __cuGraphNodeGetToolsId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetToolsId)(hNode, toolsNodeId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5723
 *     global __cuGraphNodeGetToolsId
 *     cuPythonInit()
 *     if __cuGraphNodeGetToolsId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5726
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetToolsId)(hNode, toolsNodeId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, unsigned PY_LONG_LONG *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId)(__pyx_v_hNode, __pyx_v_toolsNodeId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5726, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5727
 *             raise RuntimeError('Function "cuGraphNodeGetToolsId" not found')
 *     err = (<CUresult (*)(CUgraphNode, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetToolsId)(hNode, toolsNodeId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5720
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetToolsId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetToolsId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5729
 *     return err
 * 
 * cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetId(CUgraph __pyx_v_hGraph, unsigned int *__pyx_v_graphId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphGetId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5731
 * cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphGetId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphGetId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5731, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5732
 *     global __cuGraphGetId
 *     cuPythonInit()
 *     if __cuGraphGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5733
 *     cuPythonInit()
 *     if __cuGraphGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetId" not found')
 *     err = (<CUresult (*)(CUgraph, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetId)(hGraph, graphId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5734
 *     if __cuGraphGetId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetId)(hGraph, graphId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphGetId_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5734, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5734, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5733
 *     cuPythonInit()
 *     if __cuGraphGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetId" not found')
 *     err = (<CUresult (*)(CUgraph, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetId)(hGraph, graphId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5732
 *     global __cuGraphGetId
 *     cuPythonInit()
 *     if __cuGraphGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5735
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetId" not found')
 *     err = (<CUresult (*)(CUgraph, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetId)(hGraph, graphId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId)(__pyx_v_hGraph, __pyx_v_graphId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5735, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5736
 *             raise RuntimeError('Function "cuGraphGetId" not found')
 *     err = (<CUresult (*)(CUgraph, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetId)(hGraph, graphId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5729
 *     return err
 * 
 * cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5738
 *     return err
 * 
 * cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecGetId(CUgraphExec __pyx_v_hGraphExec, unsigned int *__pyx_v_graphId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecGetId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5740
 * cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecGetId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecGetId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5740, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5741
 *     global __cuGraphExecGetId
 *     cuPythonInit()
 *     if __cuGraphExecGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5742
 *     cuPythonInit()
 *     if __cuGraphExecGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
 *     err = (<CUresult (*)(CUgraphExec, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetId)(hGraphExec, graphId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5743
 *     if __cuGraphExecGetId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetId)(hGraphExec, graphId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecGetId_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5743, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5743, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5742
 *     cuPythonInit()
 *     if __cuGraphExecGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
 *     err = (<CUresult (*)(CUgraphExec, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetId)(hGraphExec, graphId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5741
 *     global __cuGraphExecGetId
 *     cuPythonInit()
 *     if __cuGraphExecGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5744
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
 *     err = (<CUresult (*)(CUgraphExec, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetId)(hGraphExec, graphId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId)(__pyx_v_hGraphExec, __pyx_v_graphId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5744, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5745
 *             raise RuntimeError('Function "cuGraphExecGetId" not found')
 *     err = (<CUresult (*)(CUgraphExec, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetId)(hGraphExec, graphId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5738
 *     return err
 * 
 * cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5747
 *     return err
 * 
 * cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetNodes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetNodes(CUgraph __pyx_v_hGraph, CUgraphNode *__pyx_v_nodes, size_t *__pyx_v_numNodes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphGetNodes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5749
 * cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphGetNodes
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphGetNodes == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5749, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5750
 *     global __cuGraphGetNodes
 *     cuPythonInit()
 *     if __cuGraphGetNodes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5751
 *     cuPythonInit()
 *     if __cuGraphGetNodes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetNodes)(hGraph, nodes, numNodes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5752
 *     if __cuGraphGetNodes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetNodes)(hGraph, nodes, numNodes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphGetNodes_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5752, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5752, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5751
 *     cuPythonInit()
 *     if __cuGraphGetNodes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetNodes)(hGraph, nodes, numNodes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5750
 *     global __cuGraphGetNodes
 *     cuPythonInit()
 *     if __cuGraphGetNodes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5753
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetNodes)(hGraph, nodes, numNodes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUgraphNode *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes)(__pyx_v_hGraph, __pyx_v_nodes, __pyx_v_numNodes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5753, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5754
 *             raise RuntimeError('Function "cuGraphGetNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetNodes)(hGraph, nodes, numNodes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5747
 *     return err
 * 
 * cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetNodes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphGetNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5756
 *     return err
 * 
 * cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetRootNodes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetRootNodes(CUgraph __pyx_v_hGraph, CUgraphNode *__pyx_v_rootNodes, size_t *__pyx_v_numRootNodes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphGetRootNodes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5758
 * cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphGetRootNodes
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphGetRootNodes == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5758, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5759
 *     global __cuGraphGetRootNodes
 *     cuPythonInit()
 *     if __cuGraphGetRootNodes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5760
 *     cuPythonInit()
 *     if __cuGraphGetRootNodes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5761
 *     if __cuGraphGetRootNodes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphGetRootNodes_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5761, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5761, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5760
 *     cuPythonInit()
 *     if __cuGraphGetRootNodes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5759
 *     global __cuGraphGetRootNodes
 *     cuPythonInit()
 *     if __cuGraphGetRootNodes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5762
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUgraphNode *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes)(__pyx_v_hGraph, __pyx_v_rootNodes, __pyx_v_numRootNodes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5762, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5763
 *             raise RuntimeError('Function "cuGraphGetRootNodes" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5756
 *     return err
 * 
 * cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphGetRootNodes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphGetRootNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5765
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetEdges_v2(CUgraph __pyx_v_hGraph, CUgraphNode *__pyx_v_from_, CUgraphNode *__pyx_v_to, CUgraphEdgeData *__pyx_v_edgeData, size_t *__pyx_v_numEdges) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphGetEdges_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5767
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5767, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5768
 *     global __cuGraphGetEdges_v2
 *     cuPythonInit()
 *     if __cuGraphGetEdges_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5769
 *     cuPythonInit()
 *     if __cuGraphGetEdges_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5770
 *     if __cuGraphGetEdges_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphGetEdges_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5770, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5770, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5769
 *     cuPythonInit()
 *     if __cuGraphGetEdges_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5768
 *     global __cuGraphGetEdges_v2
 *     cuPythonInit()
 *     if __cuGraphGetEdges_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5771
 *         with gil:
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUgraphNode *, CUgraphNode *, CUgraphEdgeData *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2)(__pyx_v_hGraph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numEdges); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5771, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5772
 *             raise RuntimeError('Function "cuGraphGetEdges_v2" not found')
 *     err = (<CUresult (*)(CUgraph, CUgraphNode*, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5765
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphGetEdges_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5774
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependencies_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetDependencies_v2(CUgraphNode __pyx_v_hNode, CUgraphNode *__pyx_v_dependencies, CUgraphEdgeData *__pyx_v_edgeData, size_t *__pyx_v_numDependencies) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetDependencies_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5776
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5776, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5777
 *     global __cuGraphNodeGetDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5778
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5779
 *     if __cuGraphNodeGetDependencies_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetDependenc};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5779, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5779, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5778
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5777
 *     global __cuGraphNodeGetDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5780
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraphNode *, CUgraphEdgeData *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2)(__pyx_v_hNode, __pyx_v_dependencies, __pyx_v_edgeData, __pyx_v_numDependencies); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5780, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5781
 *             raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5774
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependencies_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5783
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependentNodes_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetDependentNodes_v2(CUgraphNode __pyx_v_hNode, CUgraphNode *__pyx_v_dependentNodes, CUgraphEdgeData *__pyx_v_edgeData, size_t *__pyx_v_numDependentNodes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetDependentNodes_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5785
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5785, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5786
 *     global __cuGraphNodeGetDependentNodes_v2
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependentNodes_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5787
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependentNodes_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5788
 *     if __cuGraphNodeGetDependentNodes_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetDependent};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5788, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5788, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5787
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependentNodes_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5786
 *     global __cuGraphNodeGetDependentNodes_v2
 *     cuPythonInit()
 *     if __cuGraphNodeGetDependentNodes_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5789
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraphNode *, CUgraphEdgeData *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2)(__pyx_v_hNode, __pyx_v_dependentNodes, __pyx_v_edgeData, __pyx_v_numDependentNodes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5789, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5790
 *             raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode*, CUgraphEdgeData*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5783
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependentNodes_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetDependentNodes_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5792
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddDependencies_v2(CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_from_, CUgraphNode const *__pyx_v_to, CUgraphEdgeData const *__pyx_v_edgeData, size_t __pyx_v_numDependencies) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddDependencies_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5794
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5794, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5795
 *     global __cuGraphAddDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphAddDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5796
 *     cuPythonInit()
 *     if __cuGraphAddDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5797
 *     if __cuGraphAddDependencies_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddDependencies};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5797, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5797, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5796
 *     cuPythonInit()
 *     if __cuGraphAddDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5795
 *     global __cuGraphAddDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphAddDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5798
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUgraphNode const *, CUgraphNode const *, CUgraphEdgeData const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2)(__pyx_v_hGraph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5798, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5799
 *             raise RuntimeError('Function "cuGraphAddDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5792
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5801
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphRemoveDependencies_v2(CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_from_, CUgraphNode const *__pyx_v_to, CUgraphEdgeData const *__pyx_v_edgeData, size_t __pyx_v_numDependencies) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphRemoveDependencies_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5803
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5803, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5804
 *     global __cuGraphRemoveDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphRemoveDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5805
 *     cuPythonInit()
 *     if __cuGraphRemoveDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5806
 *     if __cuGraphRemoveDependencies_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphRemoveDependenci};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5806, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5806, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5805
 *     cuPythonInit()
 *     if __cuGraphRemoveDependencies_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5804
 *     global __cuGraphRemoveDependencies_v2
 *     cuPythonInit()
 *     if __cuGraphRemoveDependencies_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5807
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUgraphNode const *, CUgraphNode const *, CUgraphEdgeData const *, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2)(__pyx_v_hGraph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5807, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5808
 *             raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found')
 *     err = (<CUresult (*)(CUgraph, const CUgraphNode*, const CUgraphNode*, const CUgraphEdgeData*, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5801
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphRemoveDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5810
 *     return err
 * 
 * cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroyNode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDestroyNode(CUgraphNode __pyx_v_hNode) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphDestroyNode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5812
 * cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphDestroyNode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphDestroyNode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5812, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5813
 *     global __cuGraphDestroyNode
 *     cuPythonInit()
 *     if __cuGraphDestroyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5814
 *     cuPythonInit()
 *     if __cuGraphDestroyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroyNode)(hNode)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5815
 *     if __cuGraphDestroyNode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroyNode)(hNode)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphDestroyNode_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5815, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5815, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5814
 *     cuPythonInit()
 *     if __cuGraphDestroyNode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroyNode)(hNode)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5813
 *     global __cuGraphDestroyNode
 *     cuPythonInit()
 *     if __cuGraphDestroyNode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5816
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroyNode)(hNode)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode)(__pyx_v_hNode); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5816, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5817
 *             raise RuntimeError('Function "cuGraphDestroyNode" not found')
 *     err = (<CUresult (*)(CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroyNode)(hNode)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5810
 *     return err
 * 
 * cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroyNode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphDestroyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5819
 *     return err
 * 
 * cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphInstantiateWithFlags(CUgraphExec *__pyx_v_phGraphExec, CUgraph __pyx_v_hGraph, unsigned PY_LONG_LONG __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphInstantiateWithFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5821
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5821, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5822
 *     global __cuGraphInstantiateWithFlags
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5823
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5824
 *     if __cuGraphInstantiateWithFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphInstantiateWithF};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5824, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5824, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5823
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5822
 *     global __cuGraphInstantiateWithFlags
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5825
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec *, CUgraph, unsigned PY_LONG_LONG))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags)(__pyx_v_phGraphExec, __pyx_v_hGraph, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5825, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5826
 *             raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, unsigned long long) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5819
 *     return err
 * 
 * cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphInstantiateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5828
 *     return err
 * 
 * cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphInstantiateWithParams(CUgraphExec *__pyx_v_phGraphExec, CUgraph __pyx_v_hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS *__pyx_v_instantiateParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphInstantiateWithParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5830
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5830, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5831
 *     global __cuGraphInstantiateWithParams
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5832
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5833
 *     if __cuGraphInstantiateWithParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphInstantiateWithP};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5833, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5833, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5832
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5831
 *     global __cuGraphInstantiateWithParams
 *     cuPythonInit()
 *     if __cuGraphInstantiateWithParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5834
 *         with gil:
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec *, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams)(__pyx_v_phGraphExec, __pyx_v_hGraph, __pyx_v_instantiateParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5834, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5835
 *             raise RuntimeError('Function "cuGraphInstantiateWithParams" not found')
 *     err = (<CUresult (*)(CUgraphExec*, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5828
 *     return err
 * 
 * cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphInstantiateWithParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5837
 *     return err
 * 
 * cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecGetFlags(CUgraphExec __pyx_v_hGraphExec, cuuint64_t *__pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecGetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5839
 * cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecGetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecGetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5839, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5840
 *     global __cuGraphExecGetFlags
 *     cuPythonInit()
 *     if __cuGraphExecGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5841
 *     cuPythonInit()
 *     if __cuGraphExecGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec, cuuint64_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetFlags)(hGraphExec, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5842
 *     if __cuGraphExecGetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, cuuint64_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetFlags)(hGraphExec, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecGetFlags_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5842, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5842, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5841
 *     cuPythonInit()
 *     if __cuGraphExecGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec, cuuint64_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetFlags)(hGraphExec, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5840
 *     global __cuGraphExecGetFlags
 *     cuPythonInit()
 *     if __cuGraphExecGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5843
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec, cuuint64_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetFlags)(hGraphExec, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, cuuint64_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags)(__pyx_v_hGraphExec, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5843, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5844
 *             raise RuntimeError('Function "cuGraphExecGetFlags" not found')
 *     err = (<CUresult (*)(CUgraphExec, cuuint64_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecGetFlags)(hGraphExec, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5837
 *     return err
 * 
 * cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5846
 *     return err
 * 
 * cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecKernelNodeSetParams_v2(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_KERNEL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecKernelNodeSetParams_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5848
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5848, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5849
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     cuPythonInit()
 *     if __cuGraphExecKernelNodeSetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5850
 *     cuPythonInit()
 *     if __cuGraphExecKernelNodeSetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5851
 *     if __cuGraphExecKernelNodeSetParams_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecKernelNodeSe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5851, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5851, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5850
 *     cuPythonInit()
 *     if __cuGraphExecKernelNodeSetParams_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5849
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     cuPythonInit()
 *     if __cuGraphExecKernelNodeSetParams_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5852
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_KERNEL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5852, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5853
 *             raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5846
 *     return err
 * 
 * cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecKernelNodeSetParams_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5855
 *     return err
 * 
 * cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemcpyNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecMemcpyNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_MEMCPY3D const *__pyx_v_copyParams, CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecMemcpyNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5857
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5857, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5858
 *     global __cuGraphExecMemcpyNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecMemcpyNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5859
 *     cuPythonInit()
 *     if __cuGraphExecMemcpyNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5860
 *     if __cuGraphExecMemcpyNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecMemcpyNodeSe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5860, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5860, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5859
 *     cuPythonInit()
 *     if __cuGraphExecMemcpyNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5858
 *     global __cuGraphExecMemcpyNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecMemcpyNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5861
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_MEMCPY3D const *, CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_copyParams, __pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5861, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5862
 *             raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5855
 *     return err
 * 
 * cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemcpyNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5864
 *     return err
 * 
 * cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemsetNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecMemsetNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_MEMSET_NODE_PARAMS const *__pyx_v_memsetParams, CUcontext __pyx_v_ctx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecMemsetNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5866
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5866, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5867
 *     global __cuGraphExecMemsetNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecMemsetNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5868
 *     cuPythonInit()
 *     if __cuGraphExecMemsetNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5869
 *     if __cuGraphExecMemsetNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecMemsetNodeSe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5869, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5869, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5868
 *     cuPythonInit()
 *     if __cuGraphExecMemsetNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5867
 *     global __cuGraphExecMemsetNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecMemsetNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5870
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_MEMSET_NODE_PARAMS const *, CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_memsetParams, __pyx_v_ctx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5870, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5871
 *             raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS*, CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5864
 *     return err
 * 
 * cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemsetNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5873
 *     return err
 * 
 * cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecHostNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecHostNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_HOST_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecHostNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5875
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5875, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5876
 *     global __cuGraphExecHostNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecHostNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5877
 *     cuPythonInit()
 *     if __cuGraphExecHostNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5878
 *     if __cuGraphExecHostNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecHostNodeSetP};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5878, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5878, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5877
 *     cuPythonInit()
 *     if __cuGraphExecHostNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5876
 *     global __cuGraphExecHostNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecHostNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5879
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_HOST_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5879, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5880
 *             raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5873
 *     return err
 * 
 * cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecHostNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5882
 *     return err
 * 
 * cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecChildGraphNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecChildGraphNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUgraph __pyx_v_childGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecChildGraphNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5884
 * cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecChildGraphNodeSetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5884, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5885
 *     global __cuGraphExecChildGraphNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5886
 *     cuPythonInit()
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5887
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecChildGraphNo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5887, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5887, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5886
 *     cuPythonInit()
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5885
 *     global __cuGraphExecChildGraphNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecChildGraphNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5888
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUgraph))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_childGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5888, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5889
 *             raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5882
 *     return err
 * 
 * cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecChildGraphNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecChildGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5891
 *     return err
 * 
 * cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecEventRecordNodeSetEvent(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecEventRecordNodeSetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5893
 * cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5893, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5894
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5895
 *     cuPythonInit()
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5896
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecEventRecordN};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5896, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5896, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5895
 *     cuPythonInit()
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5894
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphExecEventRecordNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5897
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5897, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5898
 *             raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5891
 *     return err
 * 
 * cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5900
 *     return err
 * 
 * cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecEventWaitNodeSetEvent(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUevent __pyx_v_event) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecEventWaitNodeSetEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5902
 * cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5902, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5903
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5904
 *     cuPythonInit()
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5905
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecEventWaitNod};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5905, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5905, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5904
 *     cuPythonInit()
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5903
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     cuPythonInit()
 *     if __cuGraphExecEventWaitNodeSetEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5906
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5906, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5907
 *             raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5900
 *     return err
 * 
 * cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5909
 *     return err
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecExternalSemaphoresSignalNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5911
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5911, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5912
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5913
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5914
 *     if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecExternalSema};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5914, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5914, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5913
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5912
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5915
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5915, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5916
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5909
 *     return err
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5918
 *     return err
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecExternalSemaphoresWaitNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5920
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5920, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5921
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5922
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5923
 *     if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecExternalSema_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5923, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5923, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5922
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5921
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5924
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5924, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5925
 *             raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5918
 *     return err
 * 
 * cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5927
 *     return err
 * 
 * cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetEnabled
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeSetEnabled(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, unsigned int __pyx_v_isEnabled) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeSetEnabled", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5929
 * cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeSetEnabled
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeSetEnabled == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5929, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5930
 *     global __cuGraphNodeSetEnabled
 *     cuPythonInit()
 *     if __cuGraphNodeSetEnabled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5931
 *     cuPythonInit()
 *     if __cuGraphNodeSetEnabled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5932
 *     if __cuGraphNodeSetEnabled == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeSetEnabled_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5932, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5932, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5931
 *     cuPythonInit()
 *     if __cuGraphNodeSetEnabled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5930
 *     global __cuGraphNodeSetEnabled
 *     cuPythonInit()
 *     if __cuGraphNodeSetEnabled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5933
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_isEnabled); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5933, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5934
 *             raise RuntimeError('Function "cuGraphNodeSetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5927
 *     return err
 * 
 * cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetEnabled
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeSetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5936
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetEnabled
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetEnabled(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, unsigned int *__pyx_v_isEnabled) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeGetEnabled", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5938
 * cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeGetEnabled
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeGetEnabled == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5938, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5939
 *     global __cuGraphNodeGetEnabled
 *     cuPythonInit()
 *     if __cuGraphNodeGetEnabled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5940
 *     cuPythonInit()
 *     if __cuGraphNodeGetEnabled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5941
 *     if __cuGraphNodeGetEnabled == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeGetEnabled_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5941, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5941, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5940
 *     cuPythonInit()
 *     if __cuGraphNodeGetEnabled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5939
 *     global __cuGraphNodeGetEnabled
 *     cuPythonInit()
 *     if __cuGraphNodeGetEnabled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5942
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, unsigned int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_isEnabled); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5942, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5943
 *             raise RuntimeError('Function "cuGraphNodeGetEnabled" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, unsigned int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5936
 *     return err
 * 
 * cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetEnabled
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeGetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5945
 *     return err
 * 
 * cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphUpload
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphUpload(CUgraphExec __pyx_v_hGraphExec, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphUpload", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5947
 * cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphUpload
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphUpload == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5947, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5948
 *     global __cuGraphUpload
 *     cuPythonInit()
 *     if __cuGraphUpload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphUpload" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5949
 *     cuPythonInit()
 *     if __cuGraphUpload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphUpload" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphUpload)(hGraphExec, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5950
 *     if __cuGraphUpload == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphUpload" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphUpload)(hGraphExec, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphUpload_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5950, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5950, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5949
 *     cuPythonInit()
 *     if __cuGraphUpload == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphUpload" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphUpload)(hGraphExec, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5948
 *     global __cuGraphUpload
 *     cuPythonInit()
 *     if __cuGraphUpload == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphUpload" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5951
 *         with gil:
 *             raise RuntimeError('Function "cuGraphUpload" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphUpload)(hGraphExec, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload)(__pyx_v_hGraphExec, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5951, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5952
 *             raise RuntimeError('Function "cuGraphUpload" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphUpload)(hGraphExec, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5945
 *     return err
 * 
 * cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphUpload
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphUpload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5954
 *     return err
 * 
 * cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphLaunch
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphLaunch(CUgraphExec __pyx_v_hGraphExec, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphLaunch", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5956
 * cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphLaunch
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphLaunch == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5956, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5957
 *     global __cuGraphLaunch
 *     cuPythonInit()
 *     if __cuGraphLaunch == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5958
 *     cuPythonInit()
 *     if __cuGraphLaunch == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphLaunch)(hGraphExec, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5959
 *     if __cuGraphLaunch == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphLaunch" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphLaunch)(hGraphExec, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphLaunch_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5959, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5959, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5958
 *     cuPythonInit()
 *     if __cuGraphLaunch == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphLaunch)(hGraphExec, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5957
 *     global __cuGraphLaunch
 *     cuPythonInit()
 *     if __cuGraphLaunch == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5960
 *         with gil:
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphLaunch)(hGraphExec, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch)(__pyx_v_hGraphExec, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5960, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5961
 *             raise RuntimeError('Function "cuGraphLaunch" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphLaunch)(hGraphExec, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5954
 *     return err
 * 
 * cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphLaunch
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphLaunch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5963
 *     return err
 * 
 * cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecDestroy(CUgraphExec __pyx_v_hGraphExec) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5965
 * cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5965, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5966
 *     global __cuGraphExecDestroy
 *     cuPythonInit()
 *     if __cuGraphExecDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5967
 *     cuPythonInit()
 *     if __cuGraphExecDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
 *     err = (<CUresult (*)(CUgraphExec) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecDestroy)(hGraphExec)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5968
 *     if __cuGraphExecDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecDestroy)(hGraphExec)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecDestroy_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5968, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5968, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5967
 *     cuPythonInit()
 *     if __cuGraphExecDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
 *     err = (<CUresult (*)(CUgraphExec) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecDestroy)(hGraphExec)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5966
 *     global __cuGraphExecDestroy
 *     cuPythonInit()
 *     if __cuGraphExecDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5969
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
 *     err = (<CUresult (*)(CUgraphExec) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecDestroy)(hGraphExec)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy)(__pyx_v_hGraphExec); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5969, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5970
 *             raise RuntimeError('Function "cuGraphExecDestroy" not found')
 *     err = (<CUresult (*)(CUgraphExec) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecDestroy)(hGraphExec)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5963
 *     return err
 * 
 * cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5972
 *     return err
 * 
 * cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDestroy(CUgraph __pyx_v_hGraph) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5974
 * cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5974, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5975
 *     global __cuGraphDestroy
 *     cuPythonInit()
 *     if __cuGraphDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5976
 *     cuPythonInit()
 *     if __cuGraphDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
 *     err = (<CUresult (*)(CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroy)(hGraph)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5977
 *     if __cuGraphDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroy)(hGraph)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphDestroy_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5977, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5977, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5976
 *     cuPythonInit()
 *     if __cuGraphDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
 *     err = (<CUresult (*)(CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroy)(hGraph)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5975
 *     global __cuGraphDestroy
 *     cuPythonInit()
 *     if __cuGraphDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5978
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
 *     err = (<CUresult (*)(CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroy)(hGraph)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy)(__pyx_v_hGraph); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5978, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5979
 *             raise RuntimeError('Function "cuGraphDestroy" not found')
 *     err = (<CUresult (*)(CUgraph) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDestroy)(hGraph)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5972
 *     return err
 * 
 * cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5981
 *     return err
 * 
 * cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecUpdate_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecUpdate_v2(CUgraphExec __pyx_v_hGraphExec, CUgraph __pyx_v_hGraph, CUgraphExecUpdateResultInfo *__pyx_v_resultInfo) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecUpdate_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5983
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5983, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5984
 *     global __cuGraphExecUpdate_v2
 *     cuPythonInit()
 *     if __cuGraphExecUpdate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5985
 *     cuPythonInit()
 *     if __cuGraphExecUpdate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5986
 *     if __cuGraphExecUpdate_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecUpdate_v2_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5986, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5986, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5985
 *     cuPythonInit()
 *     if __cuGraphExecUpdate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5984
 *     global __cuGraphExecUpdate_v2
 *     cuPythonInit()
 *     if __cuGraphExecUpdate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5987
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2)(__pyx_v_hGraphExec, __pyx_v_hGraph, __pyx_v_resultInfo); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5987, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5988
 *             raise RuntimeError('Function "cuGraphExecUpdate_v2" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5981
 *     return err
 * 
 * cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecUpdate_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecUpdate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5990
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeCopyAttributes
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeCopyAttributes(CUgraphNode __pyx_v_dst, CUgraphNode __pyx_v_src) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphKernelNodeCopyAttributes", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":5992
 * cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphKernelNodeCopyAttributes
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphKernelNodeCopyAttributes == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 5992, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":5993
 *     global __cuGraphKernelNodeCopyAttributes
 *     cuPythonInit()
 *     if __cuGraphKernelNodeCopyAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":5994
 *     cuPythonInit()
 *     if __cuGraphKernelNodeCopyAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeCopyAttributes)(dst, src)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":5995
 *     if __cuGraphKernelNodeCopyAttributes == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeCopyAttributes)(dst, src)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphKernelNodeCopyAt};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5995, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 5995, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":5994
 *     cuPythonInit()
 *     if __cuGraphKernelNodeCopyAttributes == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeCopyAttributes)(dst, src)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":5993
 *     global __cuGraphKernelNodeCopyAttributes
 *     cuPythonInit()
 *     if __cuGraphKernelNodeCopyAttributes == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":5996
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeCopyAttributes)(dst, src)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraphNode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes)(__pyx_v_dst, __pyx_v_src); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 5996, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":5997
 *             raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeCopyAttributes)(dst, src)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5990
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeCopyAttributes
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphKernelNodeCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":5999
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeGetAttribute(CUgraphNode __pyx_v_hNode, CUkernelNodeAttrID __pyx_v_attr, CUkernelNodeAttrValue *__pyx_v_value_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphKernelNodeGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6001
 * cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphKernelNodeGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphKernelNodeGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6001, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6002
 *     global __cuGraphKernelNodeGetAttribute
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6003
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6004
 *     if __cuGraphKernelNodeGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphKernelNodeGetAtt};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6004, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6004, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6003
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6002
 *     global __cuGraphKernelNodeGetAttribute
 *     cuPythonInit()
 *     if __cuGraphKernelNodeGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6005
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute)(__pyx_v_hNode, __pyx_v_attr, __pyx_v_value_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6005, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6006
 *             raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":5999
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphKernelNodeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6008
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeSetAttribute(CUgraphNode __pyx_v_hNode, CUkernelNodeAttrID __pyx_v_attr, CUkernelNodeAttrValue const *__pyx_v_value) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphKernelNodeSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6010
 * cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphKernelNodeSetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphKernelNodeSetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6010, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6011
 *     global __cuGraphKernelNodeSetAttribute
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6012
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetAttribute)(hNode, attr, value)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6013
 *     if __cuGraphKernelNodeSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetAttribute)(hNode, attr, value)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphKernelNodeSetAtt};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6013, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6013, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6012
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetAttribute)(hNode, attr, value)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6011
 *     global __cuGraphKernelNodeSetAttribute
 *     cuPythonInit()
 *     if __cuGraphKernelNodeSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6014
 *         with gil:
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetAttribute)(hNode, attr, value)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute)(__pyx_v_hNode, __pyx_v_attr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6014, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6015
 *             raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphKernelNodeSetAttribute)(hNode, attr, value)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6008
 *     return err
 * 
 * cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphKernelNodeSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6017
 *     return err
 * 
 * cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDebugDotPrint
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDebugDotPrint(CUgraph __pyx_v_hGraph, char const *__pyx_v_path, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphDebugDotPrint", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6019
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6019, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6020
 *     global __cuGraphDebugDotPrint
 *     cuPythonInit()
 *     if __cuGraphDebugDotPrint == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6021
 *     cuPythonInit()
 *     if __cuGraphDebugDotPrint == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
 *     err = (<CUresult (*)(CUgraph, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDebugDotPrint)(hGraph, path, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6022
 *     if __cuGraphDebugDotPrint == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDebugDotPrint)(hGraph, path, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphDebugDotPrint_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6022, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6022, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6021
 *     cuPythonInit()
 *     if __cuGraphDebugDotPrint == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
 *     err = (<CUresult (*)(CUgraph, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDebugDotPrint)(hGraph, path, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6020
 *     global __cuGraphDebugDotPrint
 *     cuPythonInit()
 *     if __cuGraphDebugDotPrint == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6023
 *         with gil:
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
 *     err = (<CUresult (*)(CUgraph, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDebugDotPrint)(hGraph, path, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, char const *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint)(__pyx_v_hGraph, __pyx_v_path, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6023, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6024
 *             raise RuntimeError('Function "cuGraphDebugDotPrint" not found')
 *     err = (<CUresult (*)(CUgraph, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphDebugDotPrint)(hGraph, path, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6017
 *     return err
 * 
 * cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphDebugDotPrint
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphDebugDotPrint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6026
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectCreate(CUuserObject *__pyx_v_object_out, void *__pyx_v_ptr, CUhostFn __pyx_v_destroy, unsigned int __pyx_v_initialRefcount, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuUserObjectCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6028
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6028, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6029
 *     global __cuUserObjectCreate
 *     cuPythonInit()
 *     if __cuUserObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6030
 *     cuPythonInit()
 *     if __cuUserObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
 *     err = (<CUresult (*)(CUuserObject*, void*, CUhostFn, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6031
 *     if __cuUserObjectCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUuserObject*, void*, CUhostFn, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuUserObjectCreate_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6031, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6031, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6030
 *     cuPythonInit()
 *     if __cuUserObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
 *     err = (<CUresult (*)(CUuserObject*, void*, CUhostFn, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6029
 *     global __cuUserObjectCreate
 *     cuPythonInit()
 *     if __cuUserObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6032
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
 *     err = (<CUresult (*)(CUuserObject*, void*, CUhostFn, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUuserObject *, void *, CUhostFn, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate)(__pyx_v_object_out, __pyx_v_ptr, __pyx_v_destroy, __pyx_v_initialRefcount, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6032, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6033
 *             raise RuntimeError('Function "cuUserObjectCreate" not found')
 *     err = (<CUresult (*)(CUuserObject*, void*, CUhostFn, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6026
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuUserObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6035
 *     return err
 * 
 * cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRetain
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectRetain(CUuserObject __pyx_v_object, unsigned int __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuUserObjectRetain", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6037
 * cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuUserObjectRetain
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuUserObjectRetain == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6037, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6038
 *     global __cuUserObjectRetain
 *     cuPythonInit()
 *     if __cuUserObjectRetain == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6039
 *     cuPythonInit()
 *     if __cuUserObjectRetain == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRetain)(object, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6040
 *     if __cuUserObjectRetain == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRetain)(object, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuUserObjectRetain_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6040, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6040, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6039
 *     cuPythonInit()
 *     if __cuUserObjectRetain == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRetain)(object, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6038
 *     global __cuUserObjectRetain
 *     cuPythonInit()
 *     if __cuUserObjectRetain == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6041
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRetain)(object, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUuserObject, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain)(__pyx_v_object, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6041, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6042
 *             raise RuntimeError('Function "cuUserObjectRetain" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRetain)(object, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6035
 *     return err
 * 
 * cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRetain
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuUserObjectRetain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6044
 *     return err
 * 
 * cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRelease
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectRelease(CUuserObject __pyx_v_object, unsigned int __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuUserObjectRelease", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6046
 * cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuUserObjectRelease
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuUserObjectRelease == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6046, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6047
 *     global __cuUserObjectRelease
 *     cuPythonInit()
 *     if __cuUserObjectRelease == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6048
 *     cuPythonInit()
 *     if __cuUserObjectRelease == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRelease)(object, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6049
 *     if __cuUserObjectRelease == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRelease)(object, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuUserObjectRelease_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6049, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6049, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6048
 *     cuPythonInit()
 *     if __cuUserObjectRelease == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRelease)(object, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6047
 *     global __cuUserObjectRelease
 *     cuPythonInit()
 *     if __cuUserObjectRelease == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6050
 *         with gil:
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRelease)(object, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUuserObject, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease)(__pyx_v_object, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6050, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6051
 *             raise RuntimeError('Function "cuUserObjectRelease" not found')
 *     err = (<CUresult (*)(CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuUserObjectRelease)(object, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6044
 *     return err
 * 
 * cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRelease
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuUserObjectRelease", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6053
 *     return err
 * 
 * cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphRetainUserObject
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphRetainUserObject(CUgraph __pyx_v_graph, CUuserObject __pyx_v_object, unsigned int __pyx_v_count, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphRetainUserObject", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6055
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6055, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6056
 *     global __cuGraphRetainUserObject
 *     cuPythonInit()
 *     if __cuGraphRetainUserObject == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6057
 *     cuPythonInit()
 *     if __cuGraphRetainUserObject == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRetainUserObject)(graph, object, count, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6058
 *     if __cuGraphRetainUserObject == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRetainUserObject)(graph, object, count, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphRetainUserObject};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6058, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6058, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6057
 *     cuPythonInit()
 *     if __cuGraphRetainUserObject == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRetainUserObject)(graph, object, count, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6056
 *     global __cuGraphRetainUserObject
 *     cuPythonInit()
 *     if __cuGraphRetainUserObject == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6059
 *         with gil:
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRetainUserObject)(graph, object, count, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject)(__pyx_v_graph, __pyx_v_object, __pyx_v_count, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6059, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6060
 *             raise RuntimeError('Function "cuGraphRetainUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphRetainUserObject)(graph, object, count, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6053
 *     return err
 * 
 * cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphRetainUserObject
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphRetainUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6062
 *     return err
 * 
 * cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphReleaseUserObject
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphReleaseUserObject(CUgraph __pyx_v_graph, CUuserObject __pyx_v_object, unsigned int __pyx_v_count) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphReleaseUserObject", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6064
 * cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphReleaseUserObject
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphReleaseUserObject == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6064, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6065
 *     global __cuGraphReleaseUserObject
 *     cuPythonInit()
 *     if __cuGraphReleaseUserObject == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6066
 *     cuPythonInit()
 *     if __cuGraphReleaseUserObject == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphReleaseUserObject)(graph, object, count)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6067
 *     if __cuGraphReleaseUserObject == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphReleaseUserObject)(graph, object, count)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphReleaseUserObjec};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6067, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6067, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6066
 *     cuPythonInit()
 *     if __cuGraphReleaseUserObject == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphReleaseUserObject)(graph, object, count)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6065
 *     global __cuGraphReleaseUserObject
 *     cuPythonInit()
 *     if __cuGraphReleaseUserObject == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6068
 *         with gil:
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphReleaseUserObject)(graph, object, count)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraph, CUuserObject, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject)(__pyx_v_graph, __pyx_v_object, __pyx_v_count); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6068, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6069
 *             raise RuntimeError('Function "cuGraphReleaseUserObject" not found')
 *     err = (<CUresult (*)(CUgraph, CUuserObject, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphReleaseUserObject)(graph, object, count)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6062
 *     return err
 * 
 * cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphReleaseUserObject
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphReleaseUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6071
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddNode_v2(CUgraphNode *__pyx_v_phGraphNode, CUgraph __pyx_v_hGraph, CUgraphNode const *__pyx_v_dependencies, CUgraphEdgeData const *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, CUgraphNodeParams *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphAddNode_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6073
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6073, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6074
 *     global __cuGraphAddNode_v2
 *     cuPythonInit()
 *     if __cuGraphAddNode_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6075
 *     cuPythonInit()
 *     if __cuGraphAddNode_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6076
 *     if __cuGraphAddNode_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphAddNode_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6076, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6076, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6075
 *     cuPythonInit()
 *     if __cuGraphAddNode_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6074
 *     global __cuGraphAddNode_v2
 *     cuPythonInit()
 *     if __cuGraphAddNode_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6077
 *         with gil:
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode *, CUgraph, CUgraphNode const *, CUgraphEdgeData const *, size_t, CUgraphNodeParams *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2)(__pyx_v_phGraphNode, __pyx_v_hGraph, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6077, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6078
 *             raise RuntimeError('Function "cuGraphAddNode_v2" not found')
 *     err = (<CUresult (*)(CUgraphNode*, CUgraph, const CUgraphNode*, const CUgraphEdgeData*, size_t, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6071
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphAddNode_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6080
 *     return err
 * 
 * cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeSetParams(CUgraphNode __pyx_v_hNode, CUgraphNodeParams *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6082
 * cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphNodeSetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphNodeSetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6082, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6083
 *     global __cuGraphNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6084
 *     cuPythonInit()
 *     if __cuGraphNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetParams)(hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6085
 *     if __cuGraphNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetParams)(hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphNodeSetParams_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6085, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6085, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6084
 *     cuPythonInit()
 *     if __cuGraphNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetParams)(hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6083
 *     global __cuGraphNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6086
 *         with gil:
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetParams)(hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphNode, CUgraphNodeParams *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams)(__pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6086, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6087
 *             raise RuntimeError('Function "cuGraphNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphNodeSetParams)(hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6080
 *     return err
 * 
 * cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6089
 *     return err
 * 
 * cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecNodeSetParams
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecNodeSetParams(CUgraphExec __pyx_v_hGraphExec, CUgraphNode __pyx_v_hNode, CUgraphNodeParams *__pyx_v_nodeParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphExecNodeSetParams", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6091
 * cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphExecNodeSetParams
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphExecNodeSetParams == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6091, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6092
 *     global __cuGraphExecNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6093
 *     cuPythonInit()
 *     if __cuGraphExecNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6094
 *     if __cuGraphExecNodeSetParams == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphExecNodeSetParam};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6094, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6094, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6093
 *     cuPythonInit()
 *     if __cuGraphExecNodeSetParams == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6092
 *     global __cuGraphExecNodeSetParams
 *     cuPythonInit()
 *     if __cuGraphExecNodeSetParams == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6095
 *         with gil:
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams)(__pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6095, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6096
 *             raise RuntimeError('Function "cuGraphExecNodeSetParams" not found')
 *     err = (<CUresult (*)(CUgraphExec, CUgraphNode, CUgraphNodeParams*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6089
 *     return err
 * 
 * cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphExecNodeSetParams
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphExecNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6098
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphConditionalHandleCreate(CUgraphConditionalHandle *__pyx_v_pHandle_out, CUgraph __pyx_v_hGraph, CUcontext __pyx_v_ctx, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphConditionalHandleCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6100
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6100, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6101
 *     global __cuGraphConditionalHandleCreate
 *     cuPythonInit()
 *     if __cuGraphConditionalHandleCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6102
 *     cuPythonInit()
 *     if __cuGraphConditionalHandleCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
 *     err = (<CUresult (*)(CUgraphConditionalHandle*, CUgraph, CUcontext, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6103
 *     if __cuGraphConditionalHandleCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphConditionalHandle*, CUgraph, CUcontext, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphConditionalHandl};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6103, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6103, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6102
 *     cuPythonInit()
 *     if __cuGraphConditionalHandleCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
 *     err = (<CUresult (*)(CUgraphConditionalHandle*, CUgraph, CUcontext, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6101
 *     global __cuGraphConditionalHandleCreate
 *     cuPythonInit()
 *     if __cuGraphConditionalHandleCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6104
 *         with gil:
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
 *     err = (<CUresult (*)(CUgraphConditionalHandle*, CUgraph, CUcontext, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphConditionalHandle *, CUgraph, CUcontext, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate)(__pyx_v_pHandle_out, __pyx_v_hGraph, __pyx_v_ctx, __pyx_v_defaultLaunchValue, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6104, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6105
 *             raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found')
 *     err = (<CUresult (*)(CUgraphConditionalHandle*, CUgraph, CUcontext, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6098
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphConditionalHandleCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6107
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveBlocksPerMultiprocessor(int *__pyx_v_numBlocks, CUfunction __pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxActiveBlocksPerMultiprocessor", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6109
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6109, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6110
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6111
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6112
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxActiveBlo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6112, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6112, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6111
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6110
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6113
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction, int, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor)(__pyx_v_numBlocks, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6113, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6114
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6107
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6116
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *__pyx_v_numBlocks, CUfunction __pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6118
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6118, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6119
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6120
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6121
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxActiveBlo_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6121, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6121, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6120
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6119
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6122
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction, int, size_t, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(__pyx_v_numBlocks, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6122, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6123
 *             raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found')
 *     err = (<CUresult (*)(int*, CUfunction, int, size_t, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6116
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6125
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialBlockSize(int *__pyx_v_minGridSize, int *__pyx_v_blockSize, CUfunction __pyx_v_func, CUoccupancyB2DSize __pyx_v_blockSizeToDynamicSMemSize, size_t __pyx_v_dynamicSMemSize, int __pyx_v_blockSizeLimit) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxPotentialBlockSize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6127
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6127, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6128
 *     global __cuOccupancyMaxPotentialBlockSize
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6129
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6130
 *     if __cuOccupancyMaxPotentialBlockSize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxPotential};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6130, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6130, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6129
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6128
 *     global __cuOccupancyMaxPotentialBlockSize
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6131
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize)(__pyx_v_minGridSize, __pyx_v_blockSize, __pyx_v_func, __pyx_v_blockSizeToDynamicSMemSize, __pyx_v_dynamicSMemSize, __pyx_v_blockSizeLimit); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6131, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6132
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6125
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxPotentialBlockSize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6134
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialBlockSizeWithFlags(int *__pyx_v_minGridSize, int *__pyx_v_blockSize, CUfunction __pyx_v_func, CUoccupancyB2DSize __pyx_v_blockSizeToDynamicSMemSize, size_t __pyx_v_dynamicSMemSize, int __pyx_v_blockSizeLimit, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxPotentialBlockSizeWithFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6136
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6136, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6137
 *     global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6138
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6139
 *     if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxPotential_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6139, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6139, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6138
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6137
 *     global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6140
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags)(__pyx_v_minGridSize, __pyx_v_blockSize, __pyx_v_func, __pyx_v_blockSizeToDynamicSMemSize, __pyx_v_dynamicSMemSize, __pyx_v_blockSizeLimit, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6140, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6141
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found')
 *     err = (<CUresult (*)(int*, int*, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6134
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxPotentialBlockSizeWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6143
 *     return err
 * 
 * cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyAvailableDynamicSMemPerBlock(size_t *__pyx_v_dynamicSmemSize, CUfunction __pyx_v_func, int __pyx_v_numBlocks, int __pyx_v_blockSize) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyAvailableDynamicSMemPerBlock", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6145
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6145, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6146
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     cuPythonInit()
 *     if __cuOccupancyAvailableDynamicSMemPerBlock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6147
 *     cuPythonInit()
 *     if __cuOccupancyAvailableDynamicSMemPerBlock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
 *     err = (<CUresult (*)(size_t*, CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6148
 *     if __cuOccupancyAvailableDynamicSMemPerBlock == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyAvailableDyn};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6148, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6148, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6147
 *     cuPythonInit()
 *     if __cuOccupancyAvailableDynamicSMemPerBlock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
 *     err = (<CUresult (*)(size_t*, CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6146
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     cuPythonInit()
 *     if __cuOccupancyAvailableDynamicSMemPerBlock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6149
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
 *     err = (<CUresult (*)(size_t*, CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUfunction, int, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock)(__pyx_v_dynamicSmemSize, __pyx_v_func, __pyx_v_numBlocks, __pyx_v_blockSize); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6149, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6150
 *             raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found')
 *     err = (<CUresult (*)(size_t*, CUfunction, int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6143
 *     return err
 * 
 * cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyAvailableDynamicSMemPerBlock", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6152
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxPotentialClusterSize
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialClusterSize(int *__pyx_v_clusterSize, CUfunction __pyx_v_func, CUlaunchConfig const *__pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxPotentialClusterSize", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6154
 * cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuOccupancyMaxPotentialClusterSize
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6154, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6155
 *     global __cuOccupancyMaxPotentialClusterSize
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6156
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6157
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxPotential_3};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6157, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6157, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6156
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6155
 *     global __cuOccupancyMaxPotentialClusterSize
 *     cuPythonInit()
 *     if __cuOccupancyMaxPotentialClusterSize == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6158
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction, CUlaunchConfig const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize)(__pyx_v_clusterSize, __pyx_v_func, __pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6158, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6159
 *             raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6152
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxPotentialClusterSize
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxPotentialClusterSize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6161
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveClusters
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveClusters(int *__pyx_v_numClusters, CUfunction __pyx_v_func, CUlaunchConfig const *__pyx_v_config) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuOccupancyMaxActiveClusters", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6163
 * cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuOccupancyMaxActiveClusters
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuOccupancyMaxActiveClusters == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6163, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6164
 *     global __cuOccupancyMaxActiveClusters
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveClusters == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6165
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveClusters == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveClusters)(numClusters, func, config)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6166
 *     if __cuOccupancyMaxActiveClusters == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveClusters)(numClusters, func, config)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuOccupancyMaxActiveClu};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6166, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6166, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6165
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveClusters == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveClusters)(numClusters, func, config)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6164
 *     global __cuOccupancyMaxActiveClusters
 *     cuPythonInit()
 *     if __cuOccupancyMaxActiveClusters == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6167
 *         with gil:
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveClusters)(numClusters, func, config)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUfunction, CUlaunchConfig const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters)(__pyx_v_numClusters, __pyx_v_func, __pyx_v_config); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6167, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6168
 *             raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found')
 *     err = (<CUresult (*)(int*, CUfunction, const CUlaunchConfig*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuOccupancyMaxActiveClusters)(numClusters, func, config)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6161
 *     return err
 * 
 * cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveClusters
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuOccupancyMaxActiveClusters", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6170
 *     return err
 * 
 * cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetArray(CUtexref __pyx_v_hTexRef, CUarray __pyx_v_hArray, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6172
 * cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6172, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6173
 *     global __cuTexRefSetArray
 *     cuPythonInit()
 *     if __cuTexRefSetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6174
 *     cuPythonInit()
 *     if __cuTexRefSetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetArray)(hTexRef, hArray, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6175
 *     if __cuTexRefSetArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetArray)(hTexRef, hArray, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetArray_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6175, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6175, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6174
 *     cuPythonInit()
 *     if __cuTexRefSetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetArray)(hTexRef, hArray, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6173
 *     global __cuTexRefSetArray
 *     cuPythonInit()
 *     if __cuTexRefSetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6176
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetArray)(hTexRef, hArray, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUarray, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray)(__pyx_v_hTexRef, __pyx_v_hArray, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6176, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6177
 *             raise RuntimeError('Function "cuTexRefSetArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetArray)(hTexRef, hArray, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6170
 *     return err
 * 
 * cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6179
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmappedArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmappedArray(CUtexref __pyx_v_hTexRef, CUmipmappedArray __pyx_v_hMipmappedArray, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetMipmappedArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6181
 * cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetMipmappedArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetMipmappedArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6181, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6182
 *     global __cuTexRefSetMipmappedArray
 *     cuPythonInit()
 *     if __cuTexRefSetMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6183
 *     cuPythonInit()
 *     if __cuTexRefSetMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6184
 *     if __cuTexRefSetMipmappedArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetMipmappedArr};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6184, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6184, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6183
 *     cuPythonInit()
 *     if __cuTexRefSetMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6182
 *     global __cuTexRefSetMipmappedArray
 *     cuPythonInit()
 *     if __cuTexRefSetMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6185
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUmipmappedArray, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray)(__pyx_v_hTexRef, __pyx_v_hMipmappedArray, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6185, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6186
 *             raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUtexref, CUmipmappedArray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6179
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmappedArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6188
 *     return err
 * 
 * cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddress_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddress_v2(size_t *__pyx_v_ByteOffset, CUtexref __pyx_v_hTexRef, CUdeviceptr __pyx_v_dptr, size_t __pyx_v_numbytes) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetAddress_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6190
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6190, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6191
 *     global __cuTexRefSetAddress_v2
 *     cuPythonInit()
 *     if __cuTexRefSetAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6192
 *     cuPythonInit()
 *     if __cuTexRefSetAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUtexref, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6193
 *     if __cuTexRefSetAddress_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(size_t*, CUtexref, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetAddress_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6193, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6193, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6192
 *     cuPythonInit()
 *     if __cuTexRefSetAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUtexref, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6191
 *     global __cuTexRefSetAddress_v2
 *     cuPythonInit()
 *     if __cuTexRefSetAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6194
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUtexref, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(size_t *, CUtexref, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2)(__pyx_v_ByteOffset, __pyx_v_hTexRef, __pyx_v_dptr, __pyx_v_numbytes); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6194, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6195
 *             raise RuntimeError('Function "cuTexRefSetAddress_v2" not found')
 *     err = (<CUresult (*)(size_t*, CUtexref, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6188
 *     return err
 * 
 * cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddress_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetAddress_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6197
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddress2D_v3(CUtexref __pyx_v_hTexRef, CUDA_ARRAY_DESCRIPTOR const *__pyx_v_desc, CUdeviceptr __pyx_v_dptr, size_t __pyx_v_Pitch) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetAddress2D_v3", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6199
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6199, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6200
 *     global __cuTexRefSetAddress2D_v3
 *     cuPythonInit()
 *     if __cuTexRefSetAddress2D_v3 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6201
 *     cuPythonInit()
 *     if __cuTexRefSetAddress2D_v3 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
 *     err = (<CUresult (*)(CUtexref, const CUDA_ARRAY_DESCRIPTOR*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6202
 *     if __cuTexRefSetAddress2D_v3 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, const CUDA_ARRAY_DESCRIPTOR*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetAddress2D_v3};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6202, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6202, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6201
 *     cuPythonInit()
 *     if __cuTexRefSetAddress2D_v3 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
 *     err = (<CUresult (*)(CUtexref, const CUDA_ARRAY_DESCRIPTOR*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6200
 *     global __cuTexRefSetAddress2D_v3
 *     cuPythonInit()
 *     if __cuTexRefSetAddress2D_v3 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6203
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
 *     err = (<CUresult (*)(CUtexref, const CUDA_ARRAY_DESCRIPTOR*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUDA_ARRAY_DESCRIPTOR const *, CUdeviceptr, size_t))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3)(__pyx_v_hTexRef, __pyx_v_desc, __pyx_v_dptr, __pyx_v_Pitch); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6203, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6204
 *             raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found')
 *     err = (<CUresult (*)(CUtexref, const CUDA_ARRAY_DESCRIPTOR*, CUdeviceptr, size_t) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6197
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetAddress2D_v3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6206
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFormat
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFormat(CUtexref __pyx_v_hTexRef, CUarray_format __pyx_v_fmt, int __pyx_v_NumPackedComponents) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetFormat", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6208
 * cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetFormat
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetFormat == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6208, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6209
 *     global __cuTexRefSetFormat
 *     cuPythonInit()
 *     if __cuTexRefSetFormat == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6210
 *     cuPythonInit()
 *     if __cuTexRefSetFormat == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray_format, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6211
 *     if __cuTexRefSetFormat == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, CUarray_format, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetFormat_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6211, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6211, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6210
 *     cuPythonInit()
 *     if __cuTexRefSetFormat == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray_format, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6209
 *     global __cuTexRefSetFormat
 *     cuPythonInit()
 *     if __cuTexRefSetFormat == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6212
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray_format, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUarray_format, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat)(__pyx_v_hTexRef, __pyx_v_fmt, __pyx_v_NumPackedComponents); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6212, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6213
 *             raise RuntimeError('Function "cuTexRefSetFormat" not found')
 *     err = (<CUresult (*)(CUtexref, CUarray_format, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6206
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFormat
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetFormat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6215
 *     return err
 * 
 * cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddressMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddressMode(CUtexref __pyx_v_hTexRef, int __pyx_v_dim, CUaddress_mode __pyx_v_am) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetAddressMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6217
 * cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetAddressMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetAddressMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6217, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6218
 *     global __cuTexRefSetAddressMode
 *     cuPythonInit()
 *     if __cuTexRefSetAddressMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6219
 *     cuPythonInit()
 *     if __cuTexRefSetAddressMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
 *     err = (<CUresult (*)(CUtexref, int, CUaddress_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddressMode)(hTexRef, dim, am)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6220
 *     if __cuTexRefSetAddressMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, int, CUaddress_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddressMode)(hTexRef, dim, am)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetAddressMode};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6220, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6220, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6219
 *     cuPythonInit()
 *     if __cuTexRefSetAddressMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
 *     err = (<CUresult (*)(CUtexref, int, CUaddress_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddressMode)(hTexRef, dim, am)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6218
 *     global __cuTexRefSetAddressMode
 *     cuPythonInit()
 *     if __cuTexRefSetAddressMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6221
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
 *     err = (<CUresult (*)(CUtexref, int, CUaddress_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddressMode)(hTexRef, dim, am)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, int, CUaddress_mode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode)(__pyx_v_hTexRef, __pyx_v_dim, __pyx_v_am); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6221, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6222
 *             raise RuntimeError('Function "cuTexRefSetAddressMode" not found')
 *     err = (<CUresult (*)(CUtexref, int, CUaddress_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetAddressMode)(hTexRef, dim, am)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6215
 *     return err
 * 
 * cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddressMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetAddressMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6224
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFilterMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFilterMode(CUtexref __pyx_v_hTexRef, CUfilter_mode __pyx_v_fm) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetFilterMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6226
 * cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetFilterMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetFilterMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6226, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6227
 *     global __cuTexRefSetFilterMode
 *     cuPythonInit()
 *     if __cuTexRefSetFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6228
 *     cuPythonInit()
 *     if __cuTexRefSetFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFilterMode)(hTexRef, fm)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6229
 *     if __cuTexRefSetFilterMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFilterMode)(hTexRef, fm)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetFilterMode_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6229, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6229, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6228
 *     cuPythonInit()
 *     if __cuTexRefSetFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFilterMode)(hTexRef, fm)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6227
 *     global __cuTexRefSetFilterMode
 *     cuPythonInit()
 *     if __cuTexRefSetFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6230
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFilterMode)(hTexRef, fm)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUfilter_mode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode)(__pyx_v_hTexRef, __pyx_v_fm); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6230, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6231
 *             raise RuntimeError('Function "cuTexRefSetFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFilterMode)(hTexRef, fm)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6224
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFilterMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetFilterMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6233
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapFilterMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapFilterMode(CUtexref __pyx_v_hTexRef, CUfilter_mode __pyx_v_fm) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetMipmapFilterMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6235
 * cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetMipmapFilterMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetMipmapFilterMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6235, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6236
 *     global __cuTexRefSetMipmapFilterMode
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6237
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapFilterMode)(hTexRef, fm)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6238
 *     if __cuTexRefSetMipmapFilterMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapFilterMode)(hTexRef, fm)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetMipmapFilter};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6238, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6238, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6237
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapFilterMode)(hTexRef, fm)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6236
 *     global __cuTexRefSetMipmapFilterMode
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6239
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapFilterMode)(hTexRef, fm)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, CUfilter_mode))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode)(__pyx_v_hTexRef, __pyx_v_fm); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6239, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6240
 *             raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUtexref, CUfilter_mode) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapFilterMode)(hTexRef, fm)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6233
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapFilterMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetMipmapFilterMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6242
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelBias
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapLevelBias(CUtexref __pyx_v_hTexRef, float __pyx_v_bias) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetMipmapLevelBias", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6244
 * cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetMipmapLevelBias
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetMipmapLevelBias == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6244, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6245
 *     global __cuTexRefSetMipmapLevelBias
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelBias == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6246
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelBias == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(CUtexref, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelBias)(hTexRef, bias)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6247
 *     if __cuTexRefSetMipmapLevelBias == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelBias)(hTexRef, bias)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetMipmapLevelB};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6247, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6247, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6246
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelBias == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(CUtexref, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelBias)(hTexRef, bias)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6245
 *     global __cuTexRefSetMipmapLevelBias
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelBias == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6248
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(CUtexref, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelBias)(hTexRef, bias)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, float))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias)(__pyx_v_hTexRef, __pyx_v_bias); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6248, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6249
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(CUtexref, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelBias)(hTexRef, bias)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6242
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelBias
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetMipmapLevelBias", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6251
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelClamp
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapLevelClamp(CUtexref __pyx_v_hTexRef, float __pyx_v_minMipmapLevelClamp, float __pyx_v_maxMipmapLevelClamp) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetMipmapLevelClamp", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6253
 * cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetMipmapLevelClamp
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetMipmapLevelClamp == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6253, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6254
 *     global __cuTexRefSetMipmapLevelClamp
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelClamp == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6255
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelClamp == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(CUtexref, float, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6256
 *     if __cuTexRefSetMipmapLevelClamp == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, float, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetMipmapLevelC};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6256, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6256, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6255
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelClamp == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(CUtexref, float, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6254
 *     global __cuTexRefSetMipmapLevelClamp
 *     cuPythonInit()
 *     if __cuTexRefSetMipmapLevelClamp == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6257
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(CUtexref, float, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, float, float))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp)(__pyx_v_hTexRef, __pyx_v_minMipmapLevelClamp, __pyx_v_maxMipmapLevelClamp); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6257, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6258
 *             raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(CUtexref, float, float) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6251
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelClamp
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetMipmapLevelClamp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6260
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMaxAnisotropy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMaxAnisotropy(CUtexref __pyx_v_hTexRef, unsigned int __pyx_v_maxAniso) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetMaxAnisotropy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6262
 * cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetMaxAnisotropy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetMaxAnisotropy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6262, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6263
 *     global __cuTexRefSetMaxAnisotropy
 *     cuPythonInit()
 *     if __cuTexRefSetMaxAnisotropy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6264
 *     cuPythonInit()
 *     if __cuTexRefSetMaxAnisotropy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6265
 *     if __cuTexRefSetMaxAnisotropy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetMaxAnisotrop};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6265, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6265, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6264
 *     cuPythonInit()
 *     if __cuTexRefSetMaxAnisotropy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6263
 *     global __cuTexRefSetMaxAnisotropy
 *     cuPythonInit()
 *     if __cuTexRefSetMaxAnisotropy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6266
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy)(__pyx_v_hTexRef, __pyx_v_maxAniso); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6266, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6267
 *             raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6260
 *     return err
 * 
 * cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMaxAnisotropy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetMaxAnisotropy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6269
 *     return err
 * 
 * cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetBorderColor
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetBorderColor(CUtexref __pyx_v_hTexRef, float *__pyx_v_pBorderColor) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetBorderColor", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6271
 * cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetBorderColor
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetBorderColor == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6271, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6272
 *     global __cuTexRefSetBorderColor
 *     cuPythonInit()
 *     if __cuTexRefSetBorderColor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6273
 *     cuPythonInit()
 *     if __cuTexRefSetBorderColor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
 *     err = (<CUresult (*)(CUtexref, float*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetBorderColor)(hTexRef, pBorderColor)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6274
 *     if __cuTexRefSetBorderColor == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, float*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetBorderColor)(hTexRef, pBorderColor)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetBorderColor};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6274, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6274, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6273
 *     cuPythonInit()
 *     if __cuTexRefSetBorderColor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
 *     err = (<CUresult (*)(CUtexref, float*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetBorderColor)(hTexRef, pBorderColor)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6272
 *     global __cuTexRefSetBorderColor
 *     cuPythonInit()
 *     if __cuTexRefSetBorderColor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6275
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
 *     err = (<CUresult (*)(CUtexref, float*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetBorderColor)(hTexRef, pBorderColor)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, float *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor)(__pyx_v_hTexRef, __pyx_v_pBorderColor); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6275, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6276
 *             raise RuntimeError('Function "cuTexRefSetBorderColor" not found')
 *     err = (<CUresult (*)(CUtexref, float*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetBorderColor)(hTexRef, pBorderColor)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6269
 *     return err
 * 
 * cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetBorderColor
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetBorderColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6278
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFlags(CUtexref __pyx_v_hTexRef, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefSetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6280
 * cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefSetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefSetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6280, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6281
 *     global __cuTexRefSetFlags
 *     cuPythonInit()
 *     if __cuTexRefSetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6282
 *     cuPythonInit()
 *     if __cuTexRefSetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFlags)(hTexRef, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6283
 *     if __cuTexRefSetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFlags)(hTexRef, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefSetFlags_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6283, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6283, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6282
 *     cuPythonInit()
 *     if __cuTexRefSetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFlags)(hTexRef, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6281
 *     global __cuTexRefSetFlags
 *     cuPythonInit()
 *     if __cuTexRefSetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6284
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFlags)(hTexRef, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags)(__pyx_v_hTexRef, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6284, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6285
 *             raise RuntimeError('Function "cuTexRefSetFlags" not found')
 *     err = (<CUresult (*)(CUtexref, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefSetFlags)(hTexRef, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6278
 *     return err
 * 
 * cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefSetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6287
 *     return err
 * 
 * cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddress_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetAddress_v2(CUdeviceptr *__pyx_v_pdptr, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetAddress_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6289
 * cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetAddress_v2
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetAddress_v2 == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6289, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6290
 *     global __cuTexRefGetAddress_v2
 *     cuPythonInit()
 *     if __cuTexRefGetAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6291
 *     cuPythonInit()
 *     if __cuTexRefGetAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddress_v2)(pdptr, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6292
 *     if __cuTexRefGetAddress_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddress_v2)(pdptr, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetAddress_v2_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6292, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6292, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6291
 *     cuPythonInit()
 *     if __cuTexRefGetAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddress_v2)(pdptr, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6290
 *     global __cuTexRefGetAddress_v2
 *     cuPythonInit()
 *     if __cuTexRefGetAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6293
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddress_v2)(pdptr, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2)(__pyx_v_pdptr, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6293, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6294
 *             raise RuntimeError('Function "cuTexRefGetAddress_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddress_v2)(pdptr, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6287
 *     return err
 * 
 * cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddress_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetAddress_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6296
 *     return err
 * 
 * cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetArray(CUarray *__pyx_v_phArray, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6298
 * cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6298, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6299
 *     global __cuTexRefGetArray
 *     cuPythonInit()
 *     if __cuTexRefGetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6300
 *     cuPythonInit()
 *     if __cuTexRefGetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetArray)(phArray, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6301
 *     if __cuTexRefGetArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetArray)(phArray, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetArray_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6301, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6301, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6300
 *     cuPythonInit()
 *     if __cuTexRefGetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetArray)(phArray, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6299
 *     global __cuTexRefGetArray
 *     cuPythonInit()
 *     if __cuTexRefGetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6302
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetArray)(phArray, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray)(__pyx_v_phArray, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6302, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6303
 *             raise RuntimeError('Function "cuTexRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetArray)(phArray, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6296
 *     return err
 * 
 * cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6305
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmappedArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmappedArray(CUmipmappedArray *__pyx_v_phMipmappedArray, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetMipmappedArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6307
 * cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetMipmappedArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetMipmappedArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6307, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6308
 *     global __cuTexRefGetMipmappedArray
 *     cuPythonInit()
 *     if __cuTexRefGetMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6309
 *     cuPythonInit()
 *     if __cuTexRefGetMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6310
 *     if __cuTexRefGetMipmappedArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmipmappedArray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetMipmappedArr};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6310, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6310, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6309
 *     cuPythonInit()
 *     if __cuTexRefGetMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6308
 *     global __cuTexRefGetMipmappedArray
 *     cuPythonInit()
 *     if __cuTexRefGetMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6311
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmipmappedArray *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray)(__pyx_v_phMipmappedArray, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6311, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6312
 *             raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6305
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmappedArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6314
 *     return err
 * 
 * cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddressMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetAddressMode(CUaddress_mode *__pyx_v_pam, CUtexref __pyx_v_hTexRef, int __pyx_v_dim) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetAddressMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6316
 * cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetAddressMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetAddressMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6316, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6317
 *     global __cuTexRefGetAddressMode
 *     cuPythonInit()
 *     if __cuTexRefGetAddressMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6318
 *     cuPythonInit()
 *     if __cuTexRefGetAddressMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
 *     err = (<CUresult (*)(CUaddress_mode*, CUtexref, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddressMode)(pam, hTexRef, dim)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6319
 *     if __cuTexRefGetAddressMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUaddress_mode*, CUtexref, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddressMode)(pam, hTexRef, dim)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetAddressMode};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6319, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6319, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6318
 *     cuPythonInit()
 *     if __cuTexRefGetAddressMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
 *     err = (<CUresult (*)(CUaddress_mode*, CUtexref, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddressMode)(pam, hTexRef, dim)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6317
 *     global __cuTexRefGetAddressMode
 *     cuPythonInit()
 *     if __cuTexRefGetAddressMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6320
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
 *     err = (<CUresult (*)(CUaddress_mode*, CUtexref, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddressMode)(pam, hTexRef, dim)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUaddress_mode *, CUtexref, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode)(__pyx_v_pam, __pyx_v_hTexRef, __pyx_v_dim); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6320, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6321
 *             raise RuntimeError('Function "cuTexRefGetAddressMode" not found')
 *     err = (<CUresult (*)(CUaddress_mode*, CUtexref, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetAddressMode)(pam, hTexRef, dim)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6314
 *     return err
 * 
 * cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddressMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetAddressMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6323
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFilterMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFilterMode(CUfilter_mode *__pyx_v_pfm, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetFilterMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6325
 * cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetFilterMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetFilterMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6325, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6326
 *     global __cuTexRefGetFilterMode
 *     cuPythonInit()
 *     if __cuTexRefGetFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6327
 *     cuPythonInit()
 *     if __cuTexRefGetFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFilterMode)(pfm, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6328
 *     if __cuTexRefGetFilterMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFilterMode)(pfm, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetFilterMode_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6328, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6328, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6327
 *     cuPythonInit()
 *     if __cuTexRefGetFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFilterMode)(pfm, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6326
 *     global __cuTexRefGetFilterMode
 *     cuPythonInit()
 *     if __cuTexRefGetFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6329
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFilterMode)(pfm, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfilter_mode *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode)(__pyx_v_pfm, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6329, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6330
 *             raise RuntimeError('Function "cuTexRefGetFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFilterMode)(pfm, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6323
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFilterMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetFilterMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6332
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFormat
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFormat(CUarray_format *__pyx_v_pFormat, int *__pyx_v_pNumChannels, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetFormat", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6334
 * cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetFormat
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetFormat == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6334, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6335
 *     global __cuTexRefGetFormat
 *     cuPythonInit()
 *     if __cuTexRefGetFormat == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6336
 *     cuPythonInit()
 *     if __cuTexRefGetFormat == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
 *     err = (<CUresult (*)(CUarray_format*, int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6337
 *     if __cuTexRefGetFormat == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray_format*, int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetFormat_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6337, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6337, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6336
 *     cuPythonInit()
 *     if __cuTexRefGetFormat == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
 *     err = (<CUresult (*)(CUarray_format*, int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6335
 *     global __cuTexRefGetFormat
 *     cuPythonInit()
 *     if __cuTexRefGetFormat == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6338
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
 *     err = (<CUresult (*)(CUarray_format*, int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray_format *, int *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat)(__pyx_v_pFormat, __pyx_v_pNumChannels, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6338, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6339
 *             raise RuntimeError('Function "cuTexRefGetFormat" not found')
 *     err = (<CUresult (*)(CUarray_format*, int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6332
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFormat
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetFormat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6341
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapFilterMode
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapFilterMode(CUfilter_mode *__pyx_v_pfm, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetMipmapFilterMode", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6343
 * cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetMipmapFilterMode
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetMipmapFilterMode == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6343, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6344
 *     global __cuTexRefGetMipmapFilterMode
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6345
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapFilterMode)(pfm, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6346
 *     if __cuTexRefGetMipmapFilterMode == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapFilterMode)(pfm, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetMipmapFilter};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6346, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6346, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6345
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapFilterMode == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapFilterMode)(pfm, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6344
 *     global __cuTexRefGetMipmapFilterMode
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapFilterMode == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6347
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapFilterMode)(pfm, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUfilter_mode *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode)(__pyx_v_pfm, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6347, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6348
 *             raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found')
 *     err = (<CUresult (*)(CUfilter_mode*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapFilterMode)(pfm, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6341
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapFilterMode
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetMipmapFilterMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6350
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelBias
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapLevelBias(float *__pyx_v_pbias, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetMipmapLevelBias", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6352
 * cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetMipmapLevelBias
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetMipmapLevelBias == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6352, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6353
 *     global __cuTexRefGetMipmapLevelBias
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelBias == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6354
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelBias == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelBias)(pbias, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6355
 *     if __cuTexRefGetMipmapLevelBias == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelBias)(pbias, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetMipmapLevelB};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6355, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6355, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6354
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelBias == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelBias)(pbias, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6353
 *     global __cuTexRefGetMipmapLevelBias
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelBias == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6356
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelBias)(pbias, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(float *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias)(__pyx_v_pbias, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6356, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6357
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelBias)(pbias, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6350
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelBias
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetMipmapLevelBias", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6359
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelClamp
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapLevelClamp(float *__pyx_v_pminMipmapLevelClamp, float *__pyx_v_pmaxMipmapLevelClamp, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetMipmapLevelClamp", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6361
 * cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetMipmapLevelClamp
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetMipmapLevelClamp == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6361, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6362
 *     global __cuTexRefGetMipmapLevelClamp
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelClamp == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6363
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelClamp == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(float*, float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6364
 *     if __cuTexRefGetMipmapLevelClamp == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(float*, float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetMipmapLevelC};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6364, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6364, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6363
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelClamp == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(float*, float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6362
 *     global __cuTexRefGetMipmapLevelClamp
 *     cuPythonInit()
 *     if __cuTexRefGetMipmapLevelClamp == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6365
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(float*, float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(float *, float *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp)(__pyx_v_pminMipmapLevelClamp, __pyx_v_pmaxMipmapLevelClamp, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6365, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6366
 *             raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found')
 *     err = (<CUresult (*)(float*, float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6359
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelClamp
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetMipmapLevelClamp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6368
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMaxAnisotropy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMaxAnisotropy(int *__pyx_v_pmaxAniso, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetMaxAnisotropy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6370
 * cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetMaxAnisotropy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetMaxAnisotropy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6370, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6371
 *     global __cuTexRefGetMaxAnisotropy
 *     cuPythonInit()
 *     if __cuTexRefGetMaxAnisotropy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6372
 *     cuPythonInit()
 *     if __cuTexRefGetMaxAnisotropy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6373
 *     if __cuTexRefGetMaxAnisotropy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetMaxAnisotrop};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6373, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6373, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6372
 *     cuPythonInit()
 *     if __cuTexRefGetMaxAnisotropy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6371
 *     global __cuTexRefGetMaxAnisotropy
 *     cuPythonInit()
 *     if __cuTexRefGetMaxAnisotropy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6374
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy)(__pyx_v_pmaxAniso, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6374, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6375
 *             raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found')
 *     err = (<CUresult (*)(int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6368
 *     return err
 * 
 * cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMaxAnisotropy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetMaxAnisotropy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6377
 *     return err
 * 
 * cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetBorderColor
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetBorderColor(float *__pyx_v_pBorderColor, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetBorderColor", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6379
 * cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetBorderColor
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetBorderColor == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6379, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6380
 *     global __cuTexRefGetBorderColor
 *     cuPythonInit()
 *     if __cuTexRefGetBorderColor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6381
 *     cuPythonInit()
 *     if __cuTexRefGetBorderColor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetBorderColor)(pBorderColor, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6382
 *     if __cuTexRefGetBorderColor == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetBorderColor)(pBorderColor, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetBorderColor};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6382, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6382, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6381
 *     cuPythonInit()
 *     if __cuTexRefGetBorderColor == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetBorderColor)(pBorderColor, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6380
 *     global __cuTexRefGetBorderColor
 *     cuPythonInit()
 *     if __cuTexRefGetBorderColor == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6383
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetBorderColor)(pBorderColor, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(float *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor)(__pyx_v_pBorderColor, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6383, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6384
 *             raise RuntimeError('Function "cuTexRefGetBorderColor" not found')
 *     err = (<CUresult (*)(float*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetBorderColor)(pBorderColor, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6377
 *     return err
 * 
 * cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetBorderColor
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetBorderColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6386
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFlags(unsigned int *__pyx_v_pFlags, CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefGetFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6388
 * cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefGetFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefGetFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6388, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6389
 *     global __cuTexRefGetFlags
 *     cuPythonInit()
 *     if __cuTexRefGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6390
 *     cuPythonInit()
 *     if __cuTexRefGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFlags)(pFlags, hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6391
 *     if __cuTexRefGetFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFlags)(pFlags, hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefGetFlags_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6391, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6391, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6390
 *     cuPythonInit()
 *     if __cuTexRefGetFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFlags)(pFlags, hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6389
 *     global __cuTexRefGetFlags
 *     cuPythonInit()
 *     if __cuTexRefGetFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6392
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFlags)(pFlags, hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags)(__pyx_v_pFlags, __pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6392, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6393
 *             raise RuntimeError('Function "cuTexRefGetFlags" not found')
 *     err = (<CUresult (*)(unsigned int*, CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefGetFlags)(pFlags, hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6386
 *     return err
 * 
 * cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6395
 *     return err
 * 
 * cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefCreate(CUtexref *__pyx_v_pTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6397
 * cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6397, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6398
 *     global __cuTexRefCreate
 *     cuPythonInit()
 *     if __cuTexRefCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6399
 *     cuPythonInit()
 *     if __cuTexRefCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
 *     err = (<CUresult (*)(CUtexref*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefCreate)(pTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6400
 *     if __cuTexRefCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefCreate)(pTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefCreate_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6400, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6400, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6399
 *     cuPythonInit()
 *     if __cuTexRefCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
 *     err = (<CUresult (*)(CUtexref*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefCreate)(pTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6398
 *     global __cuTexRefCreate
 *     cuPythonInit()
 *     if __cuTexRefCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6401
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
 *     err = (<CUresult (*)(CUtexref*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefCreate)(pTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate)(__pyx_v_pTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6401, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6402
 *             raise RuntimeError('Function "cuTexRefCreate" not found')
 *     err = (<CUresult (*)(CUtexref*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefCreate)(pTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6395
 *     return err
 * 
 * cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6404
 *     return err
 * 
 * cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefDestroy(CUtexref __pyx_v_hTexRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexRefDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6406
 * cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexRefDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexRefDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6406, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6407
 *     global __cuTexRefDestroy
 *     cuPythonInit()
 *     if __cuTexRefDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6408
 *     cuPythonInit()
 *     if __cuTexRefDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
 *     err = (<CUresult (*)(CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefDestroy)(hTexRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6409
 *     if __cuTexRefDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefDestroy)(hTexRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexRefDestroy_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6409, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6409, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6408
 *     cuPythonInit()
 *     if __cuTexRefDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
 *     err = (<CUresult (*)(CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefDestroy)(hTexRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6407
 *     global __cuTexRefDestroy
 *     cuPythonInit()
 *     if __cuTexRefDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6410
 *         with gil:
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
 *     err = (<CUresult (*)(CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefDestroy)(hTexRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy)(__pyx_v_hTexRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6410, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6411
 *             raise RuntimeError('Function "cuTexRefDestroy" not found')
 *     err = (<CUresult (*)(CUtexref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexRefDestroy)(hTexRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6404
 *     return err
 * 
 * cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexRefDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexRefDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6413
 *     return err
 * 
 * cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfRefSetArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfRefSetArray(CUsurfref __pyx_v_hSurfRef, CUarray __pyx_v_hArray, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSurfRefSetArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6415
 * cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuSurfRefSetArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuSurfRefSetArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6415, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6416
 *     global __cuSurfRefSetArray
 *     cuPythonInit()
 *     if __cuSurfRefSetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6417
 *     cuPythonInit()
 *     if __cuSurfRefSetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
 *     err = (<CUresult (*)(CUsurfref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefSetArray)(hSurfRef, hArray, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6418
 *     if __cuSurfRefSetArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsurfref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefSetArray)(hSurfRef, hArray, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSurfRefSetArray_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6418, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6418, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6417
 *     cuPythonInit()
 *     if __cuSurfRefSetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
 *     err = (<CUresult (*)(CUsurfref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefSetArray)(hSurfRef, hArray, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6416
 *     global __cuSurfRefSetArray
 *     cuPythonInit()
 *     if __cuSurfRefSetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6419
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
 *     err = (<CUresult (*)(CUsurfref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefSetArray)(hSurfRef, hArray, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsurfref, CUarray, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray)(__pyx_v_hSurfRef, __pyx_v_hArray, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6419, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6420
 *             raise RuntimeError('Function "cuSurfRefSetArray" not found')
 *     err = (<CUresult (*)(CUsurfref, CUarray, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefSetArray)(hSurfRef, hArray, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6413
 *     return err
 * 
 * cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfRefSetArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSurfRefSetArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6422
 *     return err
 * 
 * cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfRefGetArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfRefGetArray(CUarray *__pyx_v_phArray, CUsurfref __pyx_v_hSurfRef) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSurfRefGetArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6424
 * cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuSurfRefGetArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuSurfRefGetArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6424, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6425
 *     global __cuSurfRefGetArray
 *     cuPythonInit()
 *     if __cuSurfRefGetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6426
 *     cuPythonInit()
 *     if __cuSurfRefGetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUsurfref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefGetArray)(phArray, hSurfRef)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6427
 *     if __cuSurfRefGetArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, CUsurfref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefGetArray)(phArray, hSurfRef)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSurfRefGetArray_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6427, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6427, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6426
 *     cuPythonInit()
 *     if __cuSurfRefGetArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUsurfref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefGetArray)(phArray, hSurfRef)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6425
 *     global __cuSurfRefGetArray
 *     cuPythonInit()
 *     if __cuSurfRefGetArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6428
 *         with gil:
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUsurfref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefGetArray)(phArray, hSurfRef)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUsurfref))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray)(__pyx_v_phArray, __pyx_v_hSurfRef); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6428, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6429
 *             raise RuntimeError('Function "cuSurfRefGetArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUsurfref) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfRefGetArray)(phArray, hSurfRef)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6422
 *     return err
 * 
 * cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfRefGetArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSurfRefGetArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6431
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectCreate(CUtexObject *__pyx_v_pTexObject, CUDA_RESOURCE_DESC const *__pyx_v_pResDesc, CUDA_TEXTURE_DESC const *__pyx_v_pTexDesc, CUDA_RESOURCE_VIEW_DESC const *__pyx_v_pResViewDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexObjectCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6433
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6433, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6434
 *     global __cuTexObjectCreate
 *     cuPythonInit()
 *     if __cuTexObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6435
 *     cuPythonInit()
 *     if __cuTexObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
 *     err = (<CUresult (*)(CUtexObject*, const CUDA_RESOURCE_DESC*, const CUDA_TEXTURE_DESC*, const CUDA_RESOURCE_VIEW_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6436
 *     if __cuTexObjectCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexObject*, const CUDA_RESOURCE_DESC*, const CUDA_TEXTURE_DESC*, const CUDA_RESOURCE_VIEW_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexObjectCreate_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6436, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6436, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6435
 *     cuPythonInit()
 *     if __cuTexObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
 *     err = (<CUresult (*)(CUtexObject*, const CUDA_RESOURCE_DESC*, const CUDA_TEXTURE_DESC*, const CUDA_RESOURCE_VIEW_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6434
 *     global __cuTexObjectCreate
 *     cuPythonInit()
 *     if __cuTexObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6437
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
 *     err = (<CUresult (*)(CUtexObject*, const CUDA_RESOURCE_DESC*, const CUDA_TEXTURE_DESC*, const CUDA_RESOURCE_VIEW_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexObject *, CUDA_RESOURCE_DESC const *, CUDA_TEXTURE_DESC const *, CUDA_RESOURCE_VIEW_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate)(__pyx_v_pTexObject, __pyx_v_pResDesc, __pyx_v_pTexDesc, __pyx_v_pResViewDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6437, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6438
 *             raise RuntimeError('Function "cuTexObjectCreate" not found')
 *     err = (<CUresult (*)(CUtexObject*, const CUDA_RESOURCE_DESC*, const CUDA_TEXTURE_DESC*, const CUDA_RESOURCE_VIEW_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6431
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6440
 *     return err
 * 
 * cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectDestroy(CUtexObject __pyx_v_texObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexObjectDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6442
 * cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexObjectDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexObjectDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6442, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6443
 *     global __cuTexObjectDestroy
 *     cuPythonInit()
 *     if __cuTexObjectDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6444
 *     cuPythonInit()
 *     if __cuTexObjectDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
 *     err = (<CUresult (*)(CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectDestroy)(texObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6445
 *     if __cuTexObjectDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectDestroy)(texObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexObjectDestroy_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6445, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6445, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6444
 *     cuPythonInit()
 *     if __cuTexObjectDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
 *     err = (<CUresult (*)(CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectDestroy)(texObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6443
 *     global __cuTexObjectDestroy
 *     cuPythonInit()
 *     if __cuTexObjectDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6446
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
 *     err = (<CUresult (*)(CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectDestroy)(texObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtexObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy)(__pyx_v_texObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6446, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6447
 *             raise RuntimeError('Function "cuTexObjectDestroy" not found')
 *     err = (<CUresult (*)(CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectDestroy)(texObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6440
 *     return err
 * 
 * cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexObjectDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6449
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceDesc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC *__pyx_v_pResDesc, CUtexObject __pyx_v_texObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexObjectGetResourceDesc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6451
 * cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexObjectGetResourceDesc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexObjectGetResourceDesc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6451, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6452
 *     global __cuTexObjectGetResourceDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6453
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceDesc)(pResDesc, texObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6454
 *     if __cuTexObjectGetResourceDesc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceDesc)(pResDesc, texObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexObjectGetResourceD};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6454, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6454, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6453
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceDesc)(pResDesc, texObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6452
 *     global __cuTexObjectGetResourceDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6455
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceDesc)(pResDesc, texObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_RESOURCE_DESC *, CUtexObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc)(__pyx_v_pResDesc, __pyx_v_texObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6455, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6456
 *             raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceDesc)(pResDesc, texObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6449
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceDesc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexObjectGetResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6458
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetTextureDesc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC *__pyx_v_pTexDesc, CUtexObject __pyx_v_texObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexObjectGetTextureDesc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6460
 * cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexObjectGetTextureDesc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexObjectGetTextureDesc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6460, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6461
 *     global __cuTexObjectGetTextureDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetTextureDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6462
 *     cuPythonInit()
 *     if __cuTexObjectGetTextureDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
 *     err = (<CUresult (*)(CUDA_TEXTURE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetTextureDesc)(pTexDesc, texObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6463
 *     if __cuTexObjectGetTextureDesc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_TEXTURE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetTextureDesc)(pTexDesc, texObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexObjectGetTextureDe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6463, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6463, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6462
 *     cuPythonInit()
 *     if __cuTexObjectGetTextureDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
 *     err = (<CUresult (*)(CUDA_TEXTURE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetTextureDesc)(pTexDesc, texObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6461
 *     global __cuTexObjectGetTextureDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetTextureDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6464
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
 *     err = (<CUresult (*)(CUDA_TEXTURE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetTextureDesc)(pTexDesc, texObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_TEXTURE_DESC *, CUtexObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc)(__pyx_v_pTexDesc, __pyx_v_texObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6464, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6465
 *             raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found')
 *     err = (<CUresult (*)(CUDA_TEXTURE_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetTextureDesc)(pTexDesc, texObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6458
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetTextureDesc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexObjectGetTextureDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6467
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceViewDesc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC *__pyx_v_pResViewDesc, CUtexObject __pyx_v_texObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTexObjectGetResourceViewDesc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6469
 * cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTexObjectGetResourceViewDesc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTexObjectGetResourceViewDesc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6469, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6470
 *     global __cuTexObjectGetResourceViewDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceViewDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6471
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceViewDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_VIEW_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6472
 *     if __cuTexObjectGetResourceViewDesc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_RESOURCE_VIEW_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTexObjectGetResourceV};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6472, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6472, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6471
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceViewDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_VIEW_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6470
 *     global __cuTexObjectGetResourceViewDesc
 *     cuPythonInit()
 *     if __cuTexObjectGetResourceViewDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6473
 *         with gil:
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_VIEW_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_RESOURCE_VIEW_DESC *, CUtexObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc)(__pyx_v_pResViewDesc, __pyx_v_texObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6473, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6474
 *             raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_VIEW_DESC*, CUtexObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6467
 *     return err
 * 
 * cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceViewDesc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTexObjectGetResourceViewDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6476
 *     return err
 * 
 * cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectCreate(CUsurfObject *__pyx_v_pSurfObject, CUDA_RESOURCE_DESC const *__pyx_v_pResDesc) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSurfObjectCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6478
 * cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuSurfObjectCreate
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuSurfObjectCreate == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6478, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6479
 *     global __cuSurfObjectCreate
 *     cuPythonInit()
 *     if __cuSurfObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6480
 *     cuPythonInit()
 *     if __cuSurfObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
 *     err = (<CUresult (*)(CUsurfObject*, const CUDA_RESOURCE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectCreate)(pSurfObject, pResDesc)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6481
 *     if __cuSurfObjectCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsurfObject*, const CUDA_RESOURCE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectCreate)(pSurfObject, pResDesc)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSurfObjectCreate_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6481, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6481, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6480
 *     cuPythonInit()
 *     if __cuSurfObjectCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
 *     err = (<CUresult (*)(CUsurfObject*, const CUDA_RESOURCE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectCreate)(pSurfObject, pResDesc)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6479
 *     global __cuSurfObjectCreate
 *     cuPythonInit()
 *     if __cuSurfObjectCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6482
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
 *     err = (<CUresult (*)(CUsurfObject*, const CUDA_RESOURCE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectCreate)(pSurfObject, pResDesc)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsurfObject *, CUDA_RESOURCE_DESC const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate)(__pyx_v_pSurfObject, __pyx_v_pResDesc); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6482, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6483
 *             raise RuntimeError('Function "cuSurfObjectCreate" not found')
 *     err = (<CUresult (*)(CUsurfObject*, const CUDA_RESOURCE_DESC*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectCreate)(pSurfObject, pResDesc)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6476
 *     return err
 * 
 * cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSurfObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6485
 *     return err
 * 
 * cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectDestroy(CUsurfObject __pyx_v_surfObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSurfObjectDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6487
 * cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuSurfObjectDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuSurfObjectDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6487, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6488
 *     global __cuSurfObjectDestroy
 *     cuPythonInit()
 *     if __cuSurfObjectDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6489
 *     cuPythonInit()
 *     if __cuSurfObjectDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
 *     err = (<CUresult (*)(CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectDestroy)(surfObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6490
 *     if __cuSurfObjectDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectDestroy)(surfObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSurfObjectDestroy_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6490, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6490, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6489
 *     cuPythonInit()
 *     if __cuSurfObjectDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
 *     err = (<CUresult (*)(CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectDestroy)(surfObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6488
 *     global __cuSurfObjectDestroy
 *     cuPythonInit()
 *     if __cuSurfObjectDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6491
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
 *     err = (<CUresult (*)(CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectDestroy)(surfObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUsurfObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy)(__pyx_v_surfObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6491, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6492
 *             raise RuntimeError('Function "cuSurfObjectDestroy" not found')
 *     err = (<CUresult (*)(CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectDestroy)(surfObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6485
 *     return err
 * 
 * cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSurfObjectDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6494
 *     return err
 * 
 * cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectGetResourceDesc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC *__pyx_v_pResDesc, CUsurfObject __pyx_v_surfObject) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuSurfObjectGetResourceDesc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6496
 * cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuSurfObjectGetResourceDesc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuSurfObjectGetResourceDesc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6496, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6497
 *     global __cuSurfObjectGetResourceDesc
 *     cuPythonInit()
 *     if __cuSurfObjectGetResourceDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6498
 *     cuPythonInit()
 *     if __cuSurfObjectGetResourceDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectGetResourceDesc)(pResDesc, surfObject)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6499
 *     if __cuSurfObjectGetResourceDesc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectGetResourceDesc)(pResDesc, surfObject)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuSurfObjectGetResource};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6499, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6499, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6498
 *     cuPythonInit()
 *     if __cuSurfObjectGetResourceDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectGetResourceDesc)(pResDesc, surfObject)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6497
 *     global __cuSurfObjectGetResourceDesc
 *     cuPythonInit()
 *     if __cuSurfObjectGetResourceDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6500
 *         with gil:
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectGetResourceDesc)(pResDesc, surfObject)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUDA_RESOURCE_DESC *, CUsurfObject))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc)(__pyx_v_pResDesc, __pyx_v_surfObject); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6500, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6501
 *             raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found')
 *     err = (<CUresult (*)(CUDA_RESOURCE_DESC*, CUsurfObject) except ?CUDA_ERROR_NOT_FOUND nogil> __cuSurfObjectGetResourceDesc)(pResDesc, surfObject)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6494
 *     return err
 * 
 * cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectGetResourceDesc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuSurfObjectGetResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6503
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeTiled(CUtensorMap *__pyx_v_tensorMap, CUtensorMapDataType __pyx_v_tensorDataType, cuuint32_t __pyx_v_tensorRank, void *__pyx_v_globalAddress, cuuint64_t const *__pyx_v_globalDim, cuuint64_t const *__pyx_v_globalStrides, cuuint32_t const *__pyx_v_boxDim, cuuint32_t const *__pyx_v_elementStrides, CUtensorMapInterleave __pyx_v_interleave, CUtensorMapSwizzle __pyx_v_swizzle, CUtensorMapL2promotion __pyx_v_l2Promotion, CUtensorMapFloatOOBfill __pyx_v_oobFill) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTensorMapEncodeTiled", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6505
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6505, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6506
 *     global __cuTensorMapEncodeTiled
 *     cuPythonInit()
 *     if __cuTensorMapEncodeTiled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6507
 *     cuPythonInit()
 *     if __cuTensorMapEncodeTiled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const cuuint32_t*, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6508
 *     if __cuTensorMapEncodeTiled == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const cuuint32_t*, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTensorMapEncodeTiled};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6508, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6508, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6507
 *     cuPythonInit()
 *     if __cuTensorMapEncodeTiled == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const cuuint32_t*, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6506
 *     global __cuTensorMapEncodeTiled
 *     cuPythonInit()
 *     if __cuTensorMapEncodeTiled == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6509
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const cuuint32_t*, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, cuuint32_t const *, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled)(__pyx_v_tensorMap, __pyx_v_tensorDataType, __pyx_v_tensorRank, __pyx_v_globalAddress, __pyx_v_globalDim, __pyx_v_globalStrides, __pyx_v_boxDim, __pyx_v_elementStrides, __pyx_v_interleave, __pyx_v_swizzle, __pyx_v_l2Promotion, __pyx_v_oobFill); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6509, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6510
 *             raise RuntimeError('Function "cuTensorMapEncodeTiled" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const cuuint32_t*, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6503
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTensorMapEncodeTiled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6512
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeIm2col(CUtensorMap *__pyx_v_tensorMap, CUtensorMapDataType __pyx_v_tensorDataType, cuuint32_t __pyx_v_tensorRank, void *__pyx_v_globalAddress, cuuint64_t const *__pyx_v_globalDim, cuuint64_t const *__pyx_v_globalStrides, int const *__pyx_v_pixelBoxLowerCorner, int const *__pyx_v_pixelBoxUpperCorner, cuuint32_t __pyx_v_channelsPerPixel, cuuint32_t __pyx_v_pixelsPerColumn, cuuint32_t const *__pyx_v_elementStrides, CUtensorMapInterleave __pyx_v_interleave, CUtensorMapSwizzle __pyx_v_swizzle, CUtensorMapL2promotion __pyx_v_l2Promotion, CUtensorMapFloatOOBfill __pyx_v_oobFill) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTensorMapEncodeIm2col", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6514
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6514, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6515
 *     global __cuTensorMapEncodeIm2col
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2col == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6516
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2col == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const int*, const int*, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6517
 *     if __cuTensorMapEncodeIm2col == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const int*, const int*, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTensorMapEncodeIm2col};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6517, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6517, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6516
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2col == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const int*, const int*, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6515
 *     global __cuTensorMapEncodeIm2col
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2col == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6518
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const int*, const int*, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, int const *, int const *, cuuint32_t, cuuint32_t, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col)(__pyx_v_tensorMap, __pyx_v_tensorDataType, __pyx_v_tensorRank, __pyx_v_globalAddress, __pyx_v_globalDim, __pyx_v_globalStrides, __pyx_v_pixelBoxLowerCorner, __pyx_v_pixelBoxUpperCorner, __pyx_v_channelsPerPixel, __pyx_v_pixelsPerColumn, __pyx_v_elementStrides, __pyx_v_interleave, __pyx_v_swizzle, __pyx_v_l2Promotion, __pyx_v_oobFill); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6518, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6519
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, const int*, const int*, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6512
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTensorMapEncodeIm2col", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6521
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeIm2colWide(CUtensorMap *__pyx_v_tensorMap, CUtensorMapDataType __pyx_v_tensorDataType, cuuint32_t __pyx_v_tensorRank, void *__pyx_v_globalAddress, cuuint64_t const *__pyx_v_globalDim, cuuint64_t const *__pyx_v_globalStrides, int __pyx_v_pixelBoxLowerCornerWidth, int __pyx_v_pixelBoxUpperCornerWidth, cuuint32_t __pyx_v_channelsPerPixel, cuuint32_t __pyx_v_pixelsPerColumn, cuuint32_t const *__pyx_v_elementStrides, CUtensorMapInterleave __pyx_v_interleave, CUtensorMapIm2ColWideMode __pyx_v_mode, CUtensorMapSwizzle __pyx_v_swizzle, CUtensorMapL2promotion __pyx_v_l2Promotion, CUtensorMapFloatOOBfill __pyx_v_oobFill) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTensorMapEncodeIm2colWide", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6523
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6523, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6524
 *     global __cuTensorMapEncodeIm2colWide
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2colWide == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6525
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2colWide == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, int, int, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6526
 *     if __cuTensorMapEncodeIm2colWide == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, int, int, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTensorMapEncodeIm2col_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6526, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6526, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6525
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2colWide == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, int, int, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6524
 *     global __cuTensorMapEncodeIm2colWide
 *     cuPythonInit()
 *     if __cuTensorMapEncodeIm2colWide == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6527
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, int, int, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, int, int, cuuint32_t, cuuint32_t, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide)(__pyx_v_tensorMap, __pyx_v_tensorDataType, __pyx_v_tensorRank, __pyx_v_globalAddress, __pyx_v_globalDim, __pyx_v_globalStrides, __pyx_v_pixelBoxLowerCornerWidth, __pyx_v_pixelBoxUpperCornerWidth, __pyx_v_channelsPerPixel, __pyx_v_pixelsPerColumn, __pyx_v_elementStrides, __pyx_v_interleave, __pyx_v_mode, __pyx_v_swizzle, __pyx_v_l2Promotion, __pyx_v_oobFill); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6527, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6528
 *             raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found')
 *     err = (<CUresult (*)(CUtensorMap*, CUtensorMapDataType, cuuint32_t, void*, const cuuint64_t*, const cuuint64_t*, int, int, cuuint32_t, cuuint32_t, const cuuint32_t*, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6521
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTensorMapEncodeIm2colWide", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6530
 *     return err
 * 
 * cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTensorMapReplaceAddress
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapReplaceAddress(CUtensorMap *__pyx_v_tensorMap, void *__pyx_v_globalAddress) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuTensorMapReplaceAddress", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6532
 * cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuTensorMapReplaceAddress
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuTensorMapReplaceAddress == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6532, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6533
 *     global __cuTensorMapReplaceAddress
 *     cuPythonInit()
 *     if __cuTensorMapReplaceAddress == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6534
 *     cuPythonInit()
 *     if __cuTensorMapReplaceAddress == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
 *     err = (<CUresult (*)(CUtensorMap*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapReplaceAddress)(tensorMap, globalAddress)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6535
 *     if __cuTensorMapReplaceAddress == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUtensorMap*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapReplaceAddress)(tensorMap, globalAddress)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuTensorMapReplaceAddre};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6535, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6535, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6534
 *     cuPythonInit()
 *     if __cuTensorMapReplaceAddress == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
 *     err = (<CUresult (*)(CUtensorMap*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapReplaceAddress)(tensorMap, globalAddress)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6533
 *     global __cuTensorMapReplaceAddress
 *     cuPythonInit()
 *     if __cuTensorMapReplaceAddress == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6536
 *         with gil:
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
 *     err = (<CUresult (*)(CUtensorMap*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapReplaceAddress)(tensorMap, globalAddress)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUtensorMap *, void *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress)(__pyx_v_tensorMap, __pyx_v_globalAddress); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6536, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6537
 *             raise RuntimeError('Function "cuTensorMapReplaceAddress" not found')
 *     err = (<CUresult (*)(CUtensorMap*, void*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuTensorMapReplaceAddress)(tensorMap, globalAddress)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6530
 *     return err
 * 
 * cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuTensorMapReplaceAddress
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuTensorMapReplaceAddress", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6539
 *     return err
 * 
 * cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceCanAccessPeer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceCanAccessPeer(int *__pyx_v_canAccessPeer, CUdevice __pyx_v_dev, CUdevice __pyx_v_peerDev) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceCanAccessPeer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6541
 * cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceCanAccessPeer
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceCanAccessPeer == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6541, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6542
 *     global __cuDeviceCanAccessPeer
 *     cuPythonInit()
 *     if __cuDeviceCanAccessPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6543
 *     cuPythonInit()
 *     if __cuDeviceCanAccessPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
 *     err = (<CUresult (*)(int*, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6544
 *     if __cuDeviceCanAccessPeer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceCanAccessPeer_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6544, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6544, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6543
 *     cuPythonInit()
 *     if __cuDeviceCanAccessPeer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
 *     err = (<CUresult (*)(int*, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6542
 *     global __cuDeviceCanAccessPeer
 *     cuPythonInit()
 *     if __cuDeviceCanAccessPeer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6545
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
 *     err = (<CUresult (*)(int*, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUdevice, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer)(__pyx_v_canAccessPeer, __pyx_v_dev, __pyx_v_peerDev); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6545, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6546
 *             raise RuntimeError('Function "cuDeviceCanAccessPeer" not found')
 *     err = (<CUresult (*)(int*, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6539
 *     return err
 * 
 * cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceCanAccessPeer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceCanAccessPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6548
 *     return err
 * 
 * cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxEnablePeerAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxEnablePeerAccess(CUcontext __pyx_v_peerContext, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxEnablePeerAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6550
 * cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxEnablePeerAccess
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxEnablePeerAccess == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6550, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6551
 *     global __cuCtxEnablePeerAccess
 *     cuPythonInit()
 *     if __cuCtxEnablePeerAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6552
 *     cuPythonInit()
 *     if __cuCtxEnablePeerAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxEnablePeerAccess)(peerContext, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6553
 *     if __cuCtxEnablePeerAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxEnablePeerAccess)(peerContext, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxEnablePeerAccess_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6553, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6553, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6552
 *     cuPythonInit()
 *     if __cuCtxEnablePeerAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxEnablePeerAccess)(peerContext, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6551
 *     global __cuCtxEnablePeerAccess
 *     cuPythonInit()
 *     if __cuCtxEnablePeerAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6554
 *         with gil:
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxEnablePeerAccess)(peerContext, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess)(__pyx_v_peerContext, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6554, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6555
 *             raise RuntimeError('Function "cuCtxEnablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxEnablePeerAccess)(peerContext, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6548
 *     return err
 * 
 * cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxEnablePeerAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxEnablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6557
 *     return err
 * 
 * cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDisablePeerAccess
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDisablePeerAccess(CUcontext __pyx_v_peerContext) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxDisablePeerAccess", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6559
 * cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxDisablePeerAccess
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxDisablePeerAccess == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6559, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6560
 *     global __cuCtxDisablePeerAccess
 *     cuPythonInit()
 *     if __cuCtxDisablePeerAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6561
 *     cuPythonInit()
 *     if __cuCtxDisablePeerAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDisablePeerAccess)(peerContext)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6562
 *     if __cuCtxDisablePeerAccess == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDisablePeerAccess)(peerContext)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxDisablePeerAccess};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6562, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6562, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6561
 *     cuPythonInit()
 *     if __cuCtxDisablePeerAccess == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDisablePeerAccess)(peerContext)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6560
 *     global __cuCtxDisablePeerAccess
 *     cuPythonInit()
 *     if __cuCtxDisablePeerAccess == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6563
 *         with gil:
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDisablePeerAccess)(peerContext)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess)(__pyx_v_peerContext); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6563, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6564
 *             raise RuntimeError('Function "cuCtxDisablePeerAccess" not found')
 *     err = (<CUresult (*)(CUcontext) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxDisablePeerAccess)(peerContext)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6557
 *     return err
 * 
 * cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxDisablePeerAccess
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxDisablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6566
 *     return err
 * 
 * cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetP2PAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetP2PAttribute(int *__pyx_v_value, CUdevice_P2PAttribute __pyx_v_attrib, CUdevice __pyx_v_srcDevice, CUdevice __pyx_v_dstDevice) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetP2PAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6568
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6568, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6569
 *     global __cuDeviceGetP2PAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6570
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_P2PAttribute, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6571
 *     if __cuDeviceGetP2PAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int*, CUdevice_P2PAttribute, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetP2PAttribute};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6571, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6571, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6570
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_P2PAttribute, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6569
 *     global __cuDeviceGetP2PAttribute
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6572
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_P2PAttribute, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int *, CUdevice_P2PAttribute, CUdevice, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute)(__pyx_v_value, __pyx_v_attrib, __pyx_v_srcDevice, __pyx_v_dstDevice); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6572, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6573
 *             raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found')
 *     err = (<CUresult (*)(int*, CUdevice_P2PAttribute, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6566
 *     return err
 * 
 * cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetP2PAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetP2PAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6575
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetP2PAtomicCapabilities(unsigned int *__pyx_v_capabilities, CUatomicOperation const *__pyx_v_operations, unsigned int __pyx_v_count, CUdevice __pyx_v_srcDevice, CUdevice __pyx_v_dstDevice) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetP2PAtomicCapabilities", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6577
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6577, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6578
 *     global __cuDeviceGetP2PAtomicCapabilities
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAtomicCapabilities == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6579
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAtomicCapabilities == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6580
 *     if __cuDeviceGetP2PAtomicCapabilities == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetP2PAtomicCap};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6580, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6580, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6579
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAtomicCapabilities == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6578
 *     global __cuDeviceGetP2PAtomicCapabilities
 *     cuPythonInit()
 *     if __cuDeviceGetP2PAtomicCapabilities == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6581
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUatomicOperation const *, unsigned int, CUdevice, CUdevice))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities)(__pyx_v_capabilities, __pyx_v_operations, __pyx_v_count, __pyx_v_srcDevice, __pyx_v_dstDevice); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6581, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6582
 *             raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found')
 *     err = (<CUresult (*)(unsigned int*, const CUatomicOperation*, unsigned int, CUdevice, CUdevice) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6575
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetP2PAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6584
 *     return err
 * 
 * cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnregisterResource
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsUnregisterResource(CUgraphicsResource __pyx_v_resource) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsUnregisterResource", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6586
 * cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsUnregisterResource
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsUnregisterResource == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6586, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6587
 *     global __cuGraphicsUnregisterResource
 *     cuPythonInit()
 *     if __cuGraphicsUnregisterResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6588
 *     cuPythonInit()
 *     if __cuGraphicsUnregisterResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
 *     err = (<CUresult (*)(CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnregisterResource)(resource)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6589
 *     if __cuGraphicsUnregisterResource == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnregisterResource)(resource)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsUnregisterRes};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6589, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6589, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6588
 *     cuPythonInit()
 *     if __cuGraphicsUnregisterResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
 *     err = (<CUresult (*)(CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnregisterResource)(resource)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6587
 *     global __cuGraphicsUnregisterResource
 *     cuPythonInit()
 *     if __cuGraphicsUnregisterResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6590
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
 *     err = (<CUresult (*)(CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnregisterResource)(resource)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource)(__pyx_v_resource); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6590, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6591
 *             raise RuntimeError('Function "cuGraphicsUnregisterResource" not found')
 *     err = (<CUresult (*)(CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnregisterResource)(resource)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6584
 *     return err
 * 
 * cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnregisterResource
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsUnregisterResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6593
 *     return err
 * 
 * cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsSubResourceGetMappedArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsSubResourceGetMappedArray(CUarray *__pyx_v_pArray, CUgraphicsResource __pyx_v_resource, unsigned int __pyx_v_arrayIndex, unsigned int __pyx_v_mipLevel) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsSubResourceGetMappedArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6595
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6595, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6596
 *     global __cuGraphicsSubResourceGetMappedArray
 *     cuPythonInit()
 *     if __cuGraphicsSubResourceGetMappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6597
 *     cuPythonInit()
 *     if __cuGraphicsSubResourceGetMappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6598
 *     if __cuGraphicsSubResourceGetMappedArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUarray*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsSubResourceGe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6598, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6598, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6597
 *     cuPythonInit()
 *     if __cuGraphicsSubResourceGetMappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6596
 *     global __cuGraphicsSubResourceGetMappedArray
 *     cuPythonInit()
 *     if __cuGraphicsSubResourceGetMappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6599
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUarray *, CUgraphicsResource, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray)(__pyx_v_pArray, __pyx_v_resource, __pyx_v_arrayIndex, __pyx_v_mipLevel); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6599, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6600
 *             raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found')
 *     err = (<CUresult (*)(CUarray*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6593
 *     return err
 * 
 * cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsSubResourceGetMappedArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsSubResourceGetMappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6602
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray *__pyx_v_pMipmappedArray, CUgraphicsResource __pyx_v_resource) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsResourceGetMappedMipmappedArray", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6604
 * cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6604, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6605
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6606
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6607
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUmipmappedArray*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsResourceGetMa};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6607, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6607, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6606
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6605
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedMipmappedArray == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6608
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUmipmappedArray *, CUgraphicsResource))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray)(__pyx_v_pMipmappedArray, __pyx_v_resource); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6608, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6609
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found')
 *     err = (<CUresult (*)(CUmipmappedArray*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6602
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsResourceGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6611
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr *__pyx_v_pDevPtr, size_t *__pyx_v_pSize, CUgraphicsResource __pyx_v_resource) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsResourceGetMappedPointer_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6613
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6613, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6614
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedPointer_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6615
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedPointer_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6616
 *     if __cuGraphicsResourceGetMappedPointer_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsResourceGetMa_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6616, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6616, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6615
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedPointer_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6614
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedPointer_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6617
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdeviceptr *, size_t *, CUgraphicsResource))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2)(__pyx_v_pDevPtr, __pyx_v_pSize, __pyx_v_resource); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6617, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6618
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found')
 *     err = (<CUresult (*)(CUdeviceptr*, size_t*, CUgraphicsResource) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6611
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsResourceGetMappedPointer_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6620
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource __pyx_v_resource, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsResourceSetMapFlags_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6622
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6622, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6623
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     cuPythonInit()
 *     if __cuGraphicsResourceSetMapFlags_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6624
 *     cuPythonInit()
 *     if __cuGraphicsResourceSetMapFlags_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
 *     err = (<CUresult (*)(CUgraphicsResource, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceSetMapFlags_v2)(resource, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6625
 *     if __cuGraphicsResourceSetMapFlags_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceSetMapFlags_v2)(resource, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsResourceSetMa};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6625, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6625, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6624
 *     cuPythonInit()
 *     if __cuGraphicsResourceSetMapFlags_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
 *     err = (<CUresult (*)(CUgraphicsResource, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceSetMapFlags_v2)(resource, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6623
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     cuPythonInit()
 *     if __cuGraphicsResourceSetMapFlags_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6626
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
 *     err = (<CUresult (*)(CUgraphicsResource, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceSetMapFlags_v2)(resource, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2)(__pyx_v_resource, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6626, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6627
 *             raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found')
 *     err = (<CUresult (*)(CUgraphicsResource, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceSetMapFlags_v2)(resource, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6620
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsResourceSetMapFlags_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6629
 *     return err
 * 
 * cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsMapResources
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsMapResources(unsigned int __pyx_v_count, CUgraphicsResource *__pyx_v_resources, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsMapResources", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6631
 * cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsMapResources
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsMapResources == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6631, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6632
 *     global __cuGraphicsMapResources
 *     cuPythonInit()
 *     if __cuGraphicsMapResources == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6633
 *     cuPythonInit()
 *     if __cuGraphicsMapResources == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsMapResources)(count, resources, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6634
 *     if __cuGraphicsMapResources == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsMapResources)(count, resources, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsMapResources};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6634, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6634, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6633
 *     cuPythonInit()
 *     if __cuGraphicsMapResources == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsMapResources)(count, resources, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6632
 *     global __cuGraphicsMapResources
 *     cuPythonInit()
 *     if __cuGraphicsMapResources == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6635
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsMapResources)(count, resources, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int, CUgraphicsResource *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources)(__pyx_v_count, __pyx_v_resources, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6635, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6636
 *             raise RuntimeError('Function "cuGraphicsMapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsMapResources)(count, resources, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6629
 *     return err
 * 
 * cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsMapResources
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsMapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6638
 *     return err
 * 
 * cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnmapResources
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsUnmapResources(unsigned int __pyx_v_count, CUgraphicsResource *__pyx_v_resources, CUstream __pyx_v_hStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsUnmapResources", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6640
 * cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsUnmapResources
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsUnmapResources == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6640, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6641
 *     global __cuGraphicsUnmapResources
 *     cuPythonInit()
 *     if __cuGraphicsUnmapResources == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6642
 *     cuPythonInit()
 *     if __cuGraphicsUnmapResources == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnmapResources)(count, resources, hStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6643
 *     if __cuGraphicsUnmapResources == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnmapResources)(count, resources, hStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsUnmapResource};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6643, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6643, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6642
 *     cuPythonInit()
 *     if __cuGraphicsUnmapResources == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnmapResources)(count, resources, hStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6641
 *     global __cuGraphicsUnmapResources
 *     cuPythonInit()
 *     if __cuGraphicsUnmapResources == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6644
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnmapResources)(count, resources, hStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int, CUgraphicsResource *, CUstream))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources)(__pyx_v_count, __pyx_v_resources, __pyx_v_hStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6644, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6645
 *             raise RuntimeError('Function "cuGraphicsUnmapResources" not found')
 *     err = (<CUresult (*)(unsigned int, CUgraphicsResource*, CUstream) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsUnmapResources)(count, resources, hStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6638
 *     return err
 * 
 * cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnmapResources
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsUnmapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6647
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetProcAddress_v2(char const *__pyx_v_symbol, void **__pyx_v_pfn, int __pyx_v_cudaVersion, cuuint64_t __pyx_v_flags, CUdriverProcAddressQueryResult *__pyx_v_symbolStatus) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGetProcAddress_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6649
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6649, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6650
 *     global __cuGetProcAddress_v2
 *     cuPythonInit()
 *     if __cuGetProcAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6651
 *     cuPythonInit()
 *     if __cuGetProcAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
 *     err = (<CUresult (*)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6652
 *     if __cuGetProcAddress_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGetProcAddress_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6652, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6652, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6651
 *     cuPythonInit()
 *     if __cuGetProcAddress_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
 *     err = (<CUresult (*)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6650
 *     global __cuGetProcAddress_v2
 *     cuPythonInit()
 *     if __cuGetProcAddress_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6653
 *         with gil:
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
 *     err = (<CUresult (*)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(char const *, void **, int, cuuint64_t, CUdriverProcAddressQueryResult *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2)(__pyx_v_symbol, __pyx_v_pfn, __pyx_v_cudaVersion, __pyx_v_flags, __pyx_v_symbolStatus); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6653, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6654
 *             raise RuntimeError('Function "cuGetProcAddress_v2" not found')
 *     err = (<CUresult (*)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6647
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGetProcAddress_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6656
 *     return err
 * 
 * cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpGetAttribute(CUcoredumpSettings __pyx_v_attrib, void *__pyx_v_value, size_t *__pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCoredumpGetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6658
 * cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCoredumpGetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCoredumpGetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6658, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6659
 *     global __cuCoredumpGetAttribute
 *     cuPythonInit()
 *     if __cuCoredumpGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6660
 *     cuPythonInit()
 *     if __cuCoredumpGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttribute)(attrib, value, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6661
 *     if __cuCoredumpGetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttribute)(attrib, value, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCoredumpGetAttribute};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6661, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6661, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6660
 *     cuPythonInit()
 *     if __cuCoredumpGetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttribute)(attrib, value, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6659
 *     global __cuCoredumpGetAttribute
 *     cuPythonInit()
 *     if __cuCoredumpGetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6662
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttribute)(attrib, value, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcoredumpSettings, void *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute)(__pyx_v_attrib, __pyx_v_value, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6662, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6663
 *             raise RuntimeError('Function "cuCoredumpGetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttribute)(attrib, value, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6656
 *     return err
 * 
 * cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCoredumpGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6665
 *     return err
 * 
 * cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttributeGlobal
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpGetAttributeGlobal(CUcoredumpSettings __pyx_v_attrib, void *__pyx_v_value, size_t *__pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCoredumpGetAttributeGlobal", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6667
 * cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCoredumpGetAttributeGlobal
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCoredumpGetAttributeGlobal == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6667, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6668
 *     global __cuCoredumpGetAttributeGlobal
 *     cuPythonInit()
 *     if __cuCoredumpGetAttributeGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6669
 *     cuPythonInit()
 *     if __cuCoredumpGetAttributeGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttributeGlobal)(attrib, value, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6670
 *     if __cuCoredumpGetAttributeGlobal == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttributeGlobal)(attrib, value, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCoredumpGetAttributeG};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6670, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6670, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6669
 *     cuPythonInit()
 *     if __cuCoredumpGetAttributeGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttributeGlobal)(attrib, value, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6668
 *     global __cuCoredumpGetAttributeGlobal
 *     cuPythonInit()
 *     if __cuCoredumpGetAttributeGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6671
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttributeGlobal)(attrib, value, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcoredumpSettings, void *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal)(__pyx_v_attrib, __pyx_v_value, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6671, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6672
 *             raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpGetAttributeGlobal)(attrib, value, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6665
 *     return err
 * 
 * cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttributeGlobal
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCoredumpGetAttributeGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6674
 *     return err
 * 
 * cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttribute
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpSetAttribute(CUcoredumpSettings __pyx_v_attrib, void *__pyx_v_value, size_t *__pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCoredumpSetAttribute", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6676
 * cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCoredumpSetAttribute
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCoredumpSetAttribute == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6676, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6677
 *     global __cuCoredumpSetAttribute
 *     cuPythonInit()
 *     if __cuCoredumpSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6678
 *     cuPythonInit()
 *     if __cuCoredumpSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttribute)(attrib, value, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6679
 *     if __cuCoredumpSetAttribute == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttribute)(attrib, value, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCoredumpSetAttribute};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6679, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6679, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6678
 *     cuPythonInit()
 *     if __cuCoredumpSetAttribute == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttribute)(attrib, value, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6677
 *     global __cuCoredumpSetAttribute
 *     cuPythonInit()
 *     if __cuCoredumpSetAttribute == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6680
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttribute)(attrib, value, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcoredumpSettings, void *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute)(__pyx_v_attrib, __pyx_v_value, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6680, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6681
 *             raise RuntimeError('Function "cuCoredumpSetAttribute" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttribute)(attrib, value, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6674
 *     return err
 * 
 * cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttribute
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCoredumpSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6683
 *     return err
 * 
 * cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttributeGlobal
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpSetAttributeGlobal(CUcoredumpSettings __pyx_v_attrib, void *__pyx_v_value, size_t *__pyx_v_size) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCoredumpSetAttributeGlobal", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6685
 * cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCoredumpSetAttributeGlobal
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCoredumpSetAttributeGlobal == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6685, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6686
 *     global __cuCoredumpSetAttributeGlobal
 *     cuPythonInit()
 *     if __cuCoredumpSetAttributeGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6687
 *     cuPythonInit()
 *     if __cuCoredumpSetAttributeGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttributeGlobal)(attrib, value, size)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6688
 *     if __cuCoredumpSetAttributeGlobal == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttributeGlobal)(attrib, value, size)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCoredumpSetAttributeG};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6688, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6688, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6687
 *     cuPythonInit()
 *     if __cuCoredumpSetAttributeGlobal == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttributeGlobal)(attrib, value, size)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6686
 *     global __cuCoredumpSetAttributeGlobal
 *     cuPythonInit()
 *     if __cuCoredumpSetAttributeGlobal == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6689
 *         with gil:
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttributeGlobal)(attrib, value, size)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcoredumpSettings, void *, size_t *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal)(__pyx_v_attrib, __pyx_v_value, __pyx_v_size); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6689, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6690
 *             raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found')
 *     err = (<CUresult (*)(CUcoredumpSettings, void*, size_t*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCoredumpSetAttributeGlobal)(attrib, value, size)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6683
 *     return err
 * 
 * cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttributeGlobal
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCoredumpSetAttributeGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6692
 *     return err
 * 
 * cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetExportTable
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetExportTable(void const **__pyx_v_ppExportTable, CUuuid const *__pyx_v_pExportTableId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGetExportTable", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6694
 * cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGetExportTable
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGetExportTable == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6694, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6695
 *     global __cuGetExportTable
 *     cuPythonInit()
 *     if __cuGetExportTable == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetExportTable" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6696
 *     cuPythonInit()
 *     if __cuGetExportTable == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetExportTable" not found')
 *     err = (<CUresult (*)(const void**, const CUuuid*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetExportTable)(ppExportTable, pExportTableId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6697
 *     if __cuGetExportTable == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGetExportTable" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(const void**, const CUuuid*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetExportTable)(ppExportTable, pExportTableId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGetExportTable_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6697, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6697, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6696
 *     cuPythonInit()
 *     if __cuGetExportTable == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGetExportTable" not found')
 *     err = (<CUresult (*)(const void**, const CUuuid*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetExportTable)(ppExportTable, pExportTableId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6695
 *     global __cuGetExportTable
 *     cuPythonInit()
 *     if __cuGetExportTable == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGetExportTable" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6698
 *         with gil:
 *             raise RuntimeError('Function "cuGetExportTable" not found')
 *     err = (<CUresult (*)(const void**, const CUuuid*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetExportTable)(ppExportTable, pExportTableId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void const **, CUuuid const *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable)(__pyx_v_ppExportTable, __pyx_v_pExportTableId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6698, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6699
 *             raise RuntimeError('Function "cuGetExportTable" not found')
 *     err = (<CUresult (*)(const void**, const CUuuid*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGetExportTable)(ppExportTable, pExportTableId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6692
 *     return err
 * 
 * cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGetExportTable
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGetExportTable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6701
 *     return err
 * 
 * cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxCreate(CUgreenCtx *__pyx_v_phCtx, CUdevResourceDesc __pyx_v_desc, CUdevice __pyx_v_dev, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6703
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6703, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6704
 *     global __cuGreenCtxCreate
 *     cuPythonInit()
 *     if __cuGreenCtxCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6705
 *     cuPythonInit()
 *     if __cuGreenCtxCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
 *     err = (<CUresult (*)(CUgreenCtx*, CUdevResourceDesc, CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxCreate)(phCtx, desc, dev, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6706
 *     if __cuGreenCtxCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx*, CUdevResourceDesc, CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxCreate)(phCtx, desc, dev, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxCreate_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6706, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6706, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6705
 *     cuPythonInit()
 *     if __cuGreenCtxCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
 *     err = (<CUresult (*)(CUgreenCtx*, CUdevResourceDesc, CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxCreate)(phCtx, desc, dev, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6704
 *     global __cuGreenCtxCreate
 *     cuPythonInit()
 *     if __cuGreenCtxCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6707
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
 *     err = (<CUresult (*)(CUgreenCtx*, CUdevResourceDesc, CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxCreate)(phCtx, desc, dev, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx *, CUdevResourceDesc, CUdevice, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate)(__pyx_v_phCtx, __pyx_v_desc, __pyx_v_dev, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6707, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6708
 *             raise RuntimeError('Function "cuGreenCtxCreate" not found')
 *     err = (<CUresult (*)(CUgreenCtx*, CUdevResourceDesc, CUdevice, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxCreate)(phCtx, desc, dev, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6701
 *     return err
 * 
 * cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6710
 *     return err
 * 
 * cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxDestroy
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxDestroy(CUgreenCtx __pyx_v_hCtx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxDestroy", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6712
 * cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGreenCtxDestroy
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGreenCtxDestroy == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6712, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6713
 *     global __cuGreenCtxDestroy
 *     cuPythonInit()
 *     if __cuGreenCtxDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6714
 *     cuPythonInit()
 *     if __cuGreenCtxDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
 *     err = (<CUresult (*)(CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxDestroy)(hCtx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6715
 *     if __cuGreenCtxDestroy == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxDestroy)(hCtx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxDestroy_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6715, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6715, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6714
 *     cuPythonInit()
 *     if __cuGreenCtxDestroy == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
 *     err = (<CUresult (*)(CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxDestroy)(hCtx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6713
 *     global __cuGreenCtxDestroy
 *     cuPythonInit()
 *     if __cuGreenCtxDestroy == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6716
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
 *     err = (<CUresult (*)(CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxDestroy)(hCtx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy)(__pyx_v_hCtx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6716, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6717
 *             raise RuntimeError('Function "cuGreenCtxDestroy" not found')
 *     err = (<CUresult (*)(CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxDestroy)(hCtx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6710
 *     return err
 * 
 * cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxDestroy
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6719
 *     return err
 * 
 * cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxFromGreenCtx
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxFromGreenCtx(CUcontext *__pyx_v_pContext, CUgreenCtx __pyx_v_hCtx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxFromGreenCtx", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6721
 * cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxFromGreenCtx
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxFromGreenCtx == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6721, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6722
 *     global __cuCtxFromGreenCtx
 *     cuPythonInit()
 *     if __cuCtxFromGreenCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6723
 *     cuPythonInit()
 *     if __cuCtxFromGreenCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
 *     err = (<CUresult (*)(CUcontext*, CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxFromGreenCtx)(pContext, hCtx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6724
 *     if __cuCtxFromGreenCtx == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*, CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxFromGreenCtx)(pContext, hCtx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxFromGreenCtx_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6724, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6724, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6723
 *     cuPythonInit()
 *     if __cuCtxFromGreenCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
 *     err = (<CUresult (*)(CUcontext*, CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxFromGreenCtx)(pContext, hCtx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6722
 *     global __cuCtxFromGreenCtx
 *     cuPythonInit()
 *     if __cuCtxFromGreenCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6725
 *         with gil:
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
 *     err = (<CUresult (*)(CUcontext*, CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxFromGreenCtx)(pContext, hCtx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *, CUgreenCtx))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx)(__pyx_v_pContext, __pyx_v_hCtx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6725, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6726
 *             raise RuntimeError('Function "cuCtxFromGreenCtx" not found')
 *     err = (<CUresult (*)(CUcontext*, CUgreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxFromGreenCtx)(pContext, hCtx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6719
 *     return err
 * 
 * cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxFromGreenCtx
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxFromGreenCtx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6728
 *     return err
 * 
 * cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDevResource
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetDevResource(CUdevice __pyx_v_device, CUdevResource *__pyx_v_resource, CUdevResourceType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDeviceGetDevResource", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6730
 * cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDeviceGetDevResource
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDeviceGetDevResource == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6730, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6731
 *     global __cuDeviceGetDevResource
 *     cuPythonInit()
 *     if __cuDeviceGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6732
 *     cuPythonInit()
 *     if __cuDeviceGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
 *     err = (<CUresult (*)(CUdevice, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDevResource)(device, resource, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6733
 *     if __cuDeviceGetDevResource == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDevResource)(device, resource, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDeviceGetDevResource};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6733, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6733, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6732
 *     cuPythonInit()
 *     if __cuDeviceGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
 *     err = (<CUresult (*)(CUdevice, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDevResource)(device, resource, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6731
 *     global __cuDeviceGetDevResource
 *     cuPythonInit()
 *     if __cuDeviceGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6734
 *         with gil:
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
 *     err = (<CUresult (*)(CUdevice, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDevResource)(device, resource, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice, CUdevResource *, CUdevResourceType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource)(__pyx_v_device, __pyx_v_resource, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6734, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6735
 *             raise RuntimeError('Function "cuDeviceGetDevResource" not found')
 *     err = (<CUresult (*)(CUdevice, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDeviceGetDevResource)(device, resource, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6728
 *     return err
 * 
 * cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDevResource
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDeviceGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6737
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevResource
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevResource(CUcontext __pyx_v_hCtx, CUdevResource *__pyx_v_resource, CUdevResourceType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCtxGetDevResource", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6739
 * cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCtxGetDevResource
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCtxGetDevResource == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6739, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6740
 *     global __cuCtxGetDevResource
 *     cuPythonInit()
 *     if __cuCtxGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6741
 *     cuPythonInit()
 *     if __cuCtxGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUcontext, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevResource)(hCtx, resource, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6742
 *     if __cuCtxGetDevResource == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevResource)(hCtx, resource, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCtxGetDevResource_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6742, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6742, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6741
 *     cuPythonInit()
 *     if __cuCtxGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUcontext, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevResource)(hCtx, resource, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6740
 *     global __cuCtxGetDevResource
 *     cuPythonInit()
 *     if __cuCtxGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6743
 *         with gil:
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUcontext, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevResource)(hCtx, resource, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext, CUdevResource *, CUdevResourceType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource)(__pyx_v_hCtx, __pyx_v_resource, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6743, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6744
 *             raise RuntimeError('Function "cuCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUcontext, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCtxGetDevResource)(hCtx, resource, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6737
 *     return err
 * 
 * cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevResource
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCtxGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6746
 *     return err
 * 
 * cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetDevResource
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxGetDevResource(CUgreenCtx __pyx_v_hCtx, CUdevResource *__pyx_v_resource, CUdevResourceType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxGetDevResource", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6748
 * cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGreenCtxGetDevResource
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGreenCtxGetDevResource == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6748, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6749
 *     global __cuGreenCtxGetDevResource
 *     cuPythonInit()
 *     if __cuGreenCtxGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6750
 *     cuPythonInit()
 *     if __cuGreenCtxGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetDevResource)(hCtx, resource, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6751
 *     if __cuGreenCtxGetDevResource == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetDevResource)(hCtx, resource, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxGetDevResourc};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6751, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6751, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6750
 *     cuPythonInit()
 *     if __cuGreenCtxGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetDevResource)(hCtx, resource, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6749
 *     global __cuGreenCtxGetDevResource
 *     cuPythonInit()
 *     if __cuGreenCtxGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6752
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetDevResource)(hCtx, resource, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx, CUdevResource *, CUdevResourceType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource)(__pyx_v_hCtx, __pyx_v_resource, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6752, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6753
 *             raise RuntimeError('Function "cuGreenCtxGetDevResource" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetDevResource)(hCtx, resource, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6746
 *     return err
 * 
 * cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetDevResource
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6755
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevSmResourceSplitByCount(CUdevResource *__pyx_v_result, unsigned int *__pyx_v_nbGroups, CUdevResource const *__pyx_v_input, CUdevResource *__pyx_v_remainder, unsigned int __pyx_v_flags, unsigned int __pyx_v_minCount) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevSmResourceSplitByCount", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6757
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6757, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6758
 *     global __cuDevSmResourceSplitByCount
 *     cuPythonInit()
 *     if __cuDevSmResourceSplitByCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6759
 *     cuPythonInit()
 *     if __cuDevSmResourceSplitByCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int*, const CUdevResource*, CUdevResource*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6760
 *     if __cuDevSmResourceSplitByCount == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevResource*, unsigned int*, const CUdevResource*, CUdevResource*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevSmResourceSplitByC};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6760, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6760, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6759
 *     cuPythonInit()
 *     if __cuDevSmResourceSplitByCount == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int*, const CUdevResource*, CUdevResource*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6758
 *     global __cuDevSmResourceSplitByCount
 *     cuPythonInit()
 *     if __cuDevSmResourceSplitByCount == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6761
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int*, const CUdevResource*, CUdevResource*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevResource *, unsigned int *, CUdevResource const *, CUdevResource *, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount)(__pyx_v_result, __pyx_v_nbGroups, __pyx_v_input, __pyx_v_remainder, __pyx_v_flags, __pyx_v_minCount); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6761, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6762
 *             raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int*, const CUdevResource*, CUdevResource*, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * 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:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6755
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevSmResourceSplitByCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6764
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevSmResourceSplit(CUdevResource *__pyx_v_result, unsigned int __pyx_v_nbGroups, CUdevResource const *__pyx_v_input, CUdevResource *__pyx_v_remainder, unsigned int __pyx_v_flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS *__pyx_v_groupParams) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevSmResourceSplit", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6766
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6766, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6767
 *     global __cuDevSmResourceSplit
 *     cuPythonInit()
 *     if __cuDevSmResourceSplit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6768
 *     cuPythonInit()
 *     if __cuDevSmResourceSplit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int, const CUdevResource*, CUdevResource*, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6769
 *     if __cuDevSmResourceSplit == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevResource*, unsigned int, const CUdevResource*, CUdevResource*, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevSmResourceSplit_no};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6769, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6769, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6768
 *     cuPythonInit()
 *     if __cuDevSmResourceSplit == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int, const CUdevResource*, CUdevResource*, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6767
 *     global __cuDevSmResourceSplit
 *     cuPythonInit()
 *     if __cuDevSmResourceSplit == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6770
 *         with gil:
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int, const CUdevResource*, CUdevResource*, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevResource *, unsigned int, CUdevResource const *, CUdevResource *, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit)(__pyx_v_result, __pyx_v_nbGroups, __pyx_v_input, __pyx_v_remainder, __pyx_v_flags, __pyx_v_groupParams); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6770, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6771
 *             raise RuntimeError('Function "cuDevSmResourceSplit" not found')
 *     err = (<CUresult (*)(CUdevResource*, unsigned int, const CUdevResource*, CUdevResource*, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6764
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevSmResourceSplit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6773
 *     return err
 * 
 * cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevResourceGenerateDesc
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevResourceGenerateDesc(CUdevResourceDesc *__pyx_v_phDesc, CUdevResource *__pyx_v_resources, unsigned int __pyx_v_nbResources) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuDevResourceGenerateDesc", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6775
 * cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuDevResourceGenerateDesc
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuDevResourceGenerateDesc == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6775, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6776
 *     global __cuDevResourceGenerateDesc
 *     cuPythonInit()
 *     if __cuDevResourceGenerateDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6777
 *     cuPythonInit()
 *     if __cuDevResourceGenerateDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
 *     err = (<CUresult (*)(CUdevResourceDesc*, CUdevResource*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevResourceGenerateDesc)(phDesc, resources, nbResources)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6778
 *     if __cuDevResourceGenerateDesc == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevResourceDesc*, CUdevResource*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevResourceGenerateDesc)(phDesc, resources, nbResources)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuDevResourceGenerateDe};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6778, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6778, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6777
 *     cuPythonInit()
 *     if __cuDevResourceGenerateDesc == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
 *     err = (<CUresult (*)(CUdevResourceDesc*, CUdevResource*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevResourceGenerateDesc)(phDesc, resources, nbResources)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6776
 *     global __cuDevResourceGenerateDesc
 *     cuPythonInit()
 *     if __cuDevResourceGenerateDesc == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6779
 *         with gil:
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
 *     err = (<CUresult (*)(CUdevResourceDesc*, CUdevResource*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevResourceGenerateDesc)(phDesc, resources, nbResources)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevResourceDesc *, CUdevResource *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc)(__pyx_v_phDesc, __pyx_v_resources, __pyx_v_nbResources); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6779, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6780
 *             raise RuntimeError('Function "cuDevResourceGenerateDesc" not found')
 *     err = (<CUresult (*)(CUdevResourceDesc*, CUdevResource*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuDevResourceGenerateDesc)(phDesc, resources, nbResources)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6773
 *     return err
 * 
 * cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuDevResourceGenerateDesc
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuDevResourceGenerateDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6782
 *     return err
 * 
 * cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxRecordEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxRecordEvent(CUgreenCtx __pyx_v_hCtx, CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxRecordEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6784
 * cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGreenCtxRecordEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGreenCtxRecordEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6784, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6785
 *     global __cuGreenCtxRecordEvent
 *     cuPythonInit()
 *     if __cuGreenCtxRecordEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6786
 *     cuPythonInit()
 *     if __cuGreenCtxRecordEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxRecordEvent)(hCtx, hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6787
 *     if __cuGreenCtxRecordEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxRecordEvent)(hCtx, hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxRecordEvent_n};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6787, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6787, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6786
 *     cuPythonInit()
 *     if __cuGreenCtxRecordEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxRecordEvent)(hCtx, hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6785
 *     global __cuGreenCtxRecordEvent
 *     cuPythonInit()
 *     if __cuGreenCtxRecordEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6788
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxRecordEvent)(hCtx, hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent)(__pyx_v_hCtx, __pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6788, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6789
 *             raise RuntimeError('Function "cuGreenCtxRecordEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxRecordEvent)(hCtx, hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6782
 *     return err
 * 
 * cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxRecordEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxRecordEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6791
 *     return err
 * 
 * cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxWaitEvent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxWaitEvent(CUgreenCtx __pyx_v_hCtx, CUevent __pyx_v_hEvent) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxWaitEvent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6793
 * cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGreenCtxWaitEvent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGreenCtxWaitEvent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6793, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6794
 *     global __cuGreenCtxWaitEvent
 *     cuPythonInit()
 *     if __cuGreenCtxWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6795
 *     cuPythonInit()
 *     if __cuGreenCtxWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxWaitEvent)(hCtx, hEvent)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6796
 *     if __cuGreenCtxWaitEvent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxWaitEvent)(hCtx, hEvent)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxWaitEvent_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6796, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6796, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6795
 *     cuPythonInit()
 *     if __cuGreenCtxWaitEvent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxWaitEvent)(hCtx, hEvent)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6794
 *     global __cuGreenCtxWaitEvent
 *     cuPythonInit()
 *     if __cuGreenCtxWaitEvent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6797
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxWaitEvent)(hCtx, hEvent)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx, CUevent))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent)(__pyx_v_hCtx, __pyx_v_hEvent); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6797, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6798
 *             raise RuntimeError('Function "cuGreenCtxWaitEvent" not found')
 *     err = (<CUresult (*)(CUgreenCtx, CUevent) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxWaitEvent)(hCtx, hEvent)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6791
 *     return err
 * 
 * cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxWaitEvent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6800
 *     return err
 * 
 * cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetGreenCtx
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetGreenCtx(CUstream __pyx_v_hStream, CUgreenCtx *__pyx_v_phCtx) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetGreenCtx", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6802
 * cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetGreenCtx
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetGreenCtx == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6802, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6803
 *     global __cuStreamGetGreenCtx
 *     cuPythonInit()
 *     if __cuStreamGetGreenCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6804
 *     cuPythonInit()
 *     if __cuStreamGetGreenCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetGreenCtx)(hStream, phCtx)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6805
 *     if __cuStreamGetGreenCtx == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetGreenCtx)(hStream, phCtx)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetGreenCtx_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6805, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6805, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6804
 *     cuPythonInit()
 *     if __cuStreamGetGreenCtx == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetGreenCtx)(hStream, phCtx)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6803
 *     global __cuStreamGetGreenCtx
 *     cuPythonInit()
 *     if __cuStreamGetGreenCtx == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6806
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetGreenCtx)(hStream, phCtx)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUgreenCtx *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx)(__pyx_v_hStream, __pyx_v_phCtx); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6806, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6807
 *             raise RuntimeError('Function "cuStreamGetGreenCtx" not found')
 *     err = (<CUresult (*)(CUstream, CUgreenCtx*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetGreenCtx)(hStream, phCtx)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6800
 *     return err
 * 
 * cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetGreenCtx
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetGreenCtx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6809
 *     return err
 * 
 * cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxStreamCreate
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxStreamCreate(CUstream *__pyx_v_phStream, CUgreenCtx __pyx_v_greenCtx, unsigned int __pyx_v_flags, int __pyx_v_priority) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxStreamCreate", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6811
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6811, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6812
 *     global __cuGreenCtxStreamCreate
 *     cuPythonInit()
 *     if __cuGreenCtxStreamCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6813
 *     cuPythonInit()
 *     if __cuGreenCtxStreamCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, CUgreenCtx, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6814
 *     if __cuGreenCtxStreamCreate == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream*, CUgreenCtx, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxStreamCreate};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6814, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6814, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6813
 *     cuPythonInit()
 *     if __cuGreenCtxStreamCreate == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, CUgreenCtx, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6812
 *     global __cuGreenCtxStreamCreate
 *     cuPythonInit()
 *     if __cuGreenCtxStreamCreate == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6815
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, CUgreenCtx, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream *, CUgreenCtx, unsigned int, int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate)(__pyx_v_phStream, __pyx_v_greenCtx, __pyx_v_flags, __pyx_v_priority); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6815, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6816
 *             raise RuntimeError('Function "cuGreenCtxStreamCreate" not found')
 *     err = (<CUresult (*)(CUstream*, CUgreenCtx, unsigned int, int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6809
 *     return err
 * 
 * cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxStreamCreate
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6818
 *     return err
 * 
 * cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxGetId(CUgreenCtx __pyx_v_greenCtx, unsigned PY_LONG_LONG *__pyx_v_greenCtxId) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGreenCtxGetId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6820
 * cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGreenCtxGetId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGreenCtxGetId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6820, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6821
 *     global __cuGreenCtxGetId
 *     cuPythonInit()
 *     if __cuGreenCtxGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6822
 *     cuPythonInit()
 *     if __cuGreenCtxGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
 *     err = (<CUresult (*)(CUgreenCtx, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetId)(greenCtx, greenCtxId)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6823
 *     if __cuGreenCtxGetId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgreenCtx, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetId)(greenCtx, greenCtxId)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGreenCtxGetId_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6823, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6823, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6822
 *     cuPythonInit()
 *     if __cuGreenCtxGetId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
 *     err = (<CUresult (*)(CUgreenCtx, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetId)(greenCtx, greenCtxId)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6821
 *     global __cuGreenCtxGetId
 *     cuPythonInit()
 *     if __cuGreenCtxGetId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6824
 *         with gil:
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
 *     err = (<CUresult (*)(CUgreenCtx, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetId)(greenCtx, greenCtxId)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgreenCtx, unsigned PY_LONG_LONG *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId)(__pyx_v_greenCtx, __pyx_v_greenCtxId); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6824, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6825
 *             raise RuntimeError('Function "cuGreenCtxGetId" not found')
 *     err = (<CUresult (*)(CUgreenCtx, unsigned long long*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGreenCtxGetId)(greenCtx, greenCtxId)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6818
 *     return err
 * 
 * cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGreenCtxGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6827
 *     return err
 * 
 * cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevResource
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetDevResource(CUstream __pyx_v_hStream, CUdevResource *__pyx_v_resource, CUdevResourceType __pyx_v_typename) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuStreamGetDevResource", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6829
 * cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuStreamGetDevResource
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuStreamGetDevResource == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6829, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6830
 *     global __cuStreamGetDevResource
 *     cuPythonInit()
 *     if __cuStreamGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6831
 *     cuPythonInit()
 *     if __cuStreamGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
 *     err = (<CUresult (*)(CUstream, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevResource)(hStream, resource, typename)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6832
 *     if __cuStreamGetDevResource == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUstream, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevResource)(hStream, resource, typename)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuStreamGetDevResource};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6832, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6832, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6831
 *     cuPythonInit()
 *     if __cuStreamGetDevResource == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
 *     err = (<CUresult (*)(CUstream, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevResource)(hStream, resource, typename)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6830
 *     global __cuStreamGetDevResource
 *     cuPythonInit()
 *     if __cuStreamGetDevResource == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6833
 *         with gil:
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
 *     err = (<CUresult (*)(CUstream, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevResource)(hStream, resource, typename)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUstream, CUdevResource *, CUdevResourceType))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource)(__pyx_v_hStream, __pyx_v_resource, __pyx_v_typename); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6833, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6834
 *             raise RuntimeError('Function "cuStreamGetDevResource" not found')
 *     err = (<CUresult (*)(CUstream, CUdevResource*, CUdevResourceType) except ?CUDA_ERROR_NOT_FOUND nogil> __cuStreamGetDevResource)(hStream, resource, typename)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6827
 *     return err
 * 
 * cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevResource
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuStreamGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6836
 *     return err
 * 
 * cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsRegisterCallback
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsRegisterCallback(CUlogsCallback __pyx_v_callbackFunc, void *__pyx_v_userData, CUlogsCallbackHandle *__pyx_v_callback_out) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLogsRegisterCallback", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6838
 * cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLogsRegisterCallback
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLogsRegisterCallback == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6838, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6839
 *     global __cuLogsRegisterCallback
 *     cuPythonInit()
 *     if __cuLogsRegisterCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6840
 *     cuPythonInit()
 *     if __cuLogsRegisterCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallback, void*, CUlogsCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsRegisterCallback)(callbackFunc, userData, callback_out)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6841
 *     if __cuLogsRegisterCallback == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlogsCallback, void*, CUlogsCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsRegisterCallback)(callbackFunc, userData, callback_out)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLogsRegisterCallback};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6841, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6841, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6840
 *     cuPythonInit()
 *     if __cuLogsRegisterCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallback, void*, CUlogsCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsRegisterCallback)(callbackFunc, userData, callback_out)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6839
 *     global __cuLogsRegisterCallback
 *     cuPythonInit()
 *     if __cuLogsRegisterCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6842
 *         with gil:
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallback, void*, CUlogsCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsRegisterCallback)(callbackFunc, userData, callback_out)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlogsCallback, void *, CUlogsCallbackHandle *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback)(__pyx_v_callbackFunc, __pyx_v_userData, __pyx_v_callback_out); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6842, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6843
 *             raise RuntimeError('Function "cuLogsRegisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallback, void*, CUlogsCallbackHandle*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsRegisterCallback)(callbackFunc, userData, callback_out)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6836
 *     return err
 * 
 * cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsRegisterCallback
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLogsRegisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6845
 *     return err
 * 
 * cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsUnregisterCallback
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsUnregisterCallback(CUlogsCallbackHandle __pyx_v_callback) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLogsUnregisterCallback", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6847
 * cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLogsUnregisterCallback
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLogsUnregisterCallback == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6847, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6848
 *     global __cuLogsUnregisterCallback
 *     cuPythonInit()
 *     if __cuLogsUnregisterCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6849
 *     cuPythonInit()
 *     if __cuLogsUnregisterCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsUnregisterCallback)(callback)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6850
 *     if __cuLogsUnregisterCallback == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlogsCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsUnregisterCallback)(callback)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLogsUnregisterCallbac};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6850, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6850, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6849
 *     cuPythonInit()
 *     if __cuLogsUnregisterCallback == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsUnregisterCallback)(callback)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6848
 *     global __cuLogsUnregisterCallback
 *     cuPythonInit()
 *     if __cuLogsUnregisterCallback == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6851
 *         with gil:
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsUnregisterCallback)(callback)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlogsCallbackHandle))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback)(__pyx_v_callback); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6851, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6852
 *             raise RuntimeError('Function "cuLogsUnregisterCallback" not found')
 *     err = (<CUresult (*)(CUlogsCallbackHandle) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsUnregisterCallback)(callback)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6845
 *     return err
 * 
 * cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsUnregisterCallback
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLogsUnregisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6854
 *     return err
 * 
 * cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsCurrent
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsCurrent(CUlogIterator *__pyx_v_iterator_out, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLogsCurrent", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6856
 * cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuLogsCurrent
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuLogsCurrent == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6856, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6857
 *     global __cuLogsCurrent
 *     cuPythonInit()
 *     if __cuLogsCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6858
 *     cuPythonInit()
 *     if __cuLogsCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
 *     err = (<CUresult (*)(CUlogIterator*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsCurrent)(iterator_out, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6859
 *     if __cuLogsCurrent == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLogsCurrent" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlogIterator*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsCurrent)(iterator_out, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLogsCurrent_not_found};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6859, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6859, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6858
 *     cuPythonInit()
 *     if __cuLogsCurrent == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
 *     err = (<CUresult (*)(CUlogIterator*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsCurrent)(iterator_out, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6857
 *     global __cuLogsCurrent
 *     cuPythonInit()
 *     if __cuLogsCurrent == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6860
 *         with gil:
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
 *     err = (<CUresult (*)(CUlogIterator*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsCurrent)(iterator_out, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlogIterator *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent)(__pyx_v_iterator_out, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6860, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6861
 *             raise RuntimeError('Function "cuLogsCurrent" not found')
 *     err = (<CUresult (*)(CUlogIterator*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsCurrent)(iterator_out, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6854
 *     return err
 * 
 * cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsCurrent
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLogsCurrent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6863
 *     return err
 * 
 * cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToFile
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsDumpToFile(CUlogIterator *__pyx_v_iterator, char const *__pyx_v_pathToFile, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLogsDumpToFile", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6865
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6865, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6866
 *     global __cuLogsDumpToFile
 *     cuPythonInit()
 *     if __cuLogsDumpToFile == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6867
 *     cuPythonInit()
 *     if __cuLogsDumpToFile == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
 *     err = (<CUresult (*)(CUlogIterator*, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToFile)(iterator, pathToFile, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6868
 *     if __cuLogsDumpToFile == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlogIterator*, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToFile)(iterator, pathToFile, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLogsDumpToFile_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6868, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6868, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6867
 *     cuPythonInit()
 *     if __cuLogsDumpToFile == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
 *     err = (<CUresult (*)(CUlogIterator*, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToFile)(iterator, pathToFile, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6866
 *     global __cuLogsDumpToFile
 *     cuPythonInit()
 *     if __cuLogsDumpToFile == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6869
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
 *     err = (<CUresult (*)(CUlogIterator*, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToFile)(iterator, pathToFile, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlogIterator *, char const *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile)(__pyx_v_iterator, __pyx_v_pathToFile, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6869, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6870
 *             raise RuntimeError('Function "cuLogsDumpToFile" not found')
 *     err = (<CUresult (*)(CUlogIterator*, const char*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToFile)(iterator, pathToFile, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6863
 *     return err
 * 
 * cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToFile
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLogsDumpToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6872
 *     return err
 * 
 * cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToMemory
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsDumpToMemory(CUlogIterator *__pyx_v_iterator, char *__pyx_v_buffer, size_t *__pyx_v_size, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuLogsDumpToMemory", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6874
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6874, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6875
 *     global __cuLogsDumpToMemory
 *     cuPythonInit()
 *     if __cuLogsDumpToMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6876
 *     cuPythonInit()
 *     if __cuLogsDumpToMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
 *     err = (<CUresult (*)(CUlogIterator*, char*, size_t*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToMemory)(iterator, buffer, size, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6877
 *     if __cuLogsDumpToMemory == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUlogIterator*, char*, size_t*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToMemory)(iterator, buffer, size, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuLogsDumpToMemory_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6877, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6877, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6876
 *     cuPythonInit()
 *     if __cuLogsDumpToMemory == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
 *     err = (<CUresult (*)(CUlogIterator*, char*, size_t*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToMemory)(iterator, buffer, size, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6875
 *     global __cuLogsDumpToMemory
 *     cuPythonInit()
 *     if __cuLogsDumpToMemory == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6878
 *         with gil:
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
 *     err = (<CUresult (*)(CUlogIterator*, char*, size_t*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToMemory)(iterator, buffer, size, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUlogIterator *, char *, size_t *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory)(__pyx_v_iterator, __pyx_v_buffer, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6878, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6879
 *             raise RuntimeError('Function "cuLogsDumpToMemory" not found')
 *     err = (<CUresult (*)(CUlogIterator*, char*, size_t*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuLogsDumpToMemory)(iterator, buffer, size, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6872
 *     return err
 * 
 * cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToMemory
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuLogsDumpToMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6881
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessGetRestoreThreadId(int __pyx_v_pid, int *__pyx_v_tid) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessGetRestoreThreadId", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6883
 * cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6883, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6884
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6885
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
 *     err = (<CUresult (*)(int, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetRestoreThreadId)(pid, tid)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6886
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetRestoreThreadId)(pid, tid)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessGetR};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6886, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6886, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6885
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
 *     err = (<CUresult (*)(int, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetRestoreThreadId)(pid, tid)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6884
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetRestoreThreadId == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6887
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
 *     err = (<CUresult (*)(int, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetRestoreThreadId)(pid, tid)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, int *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId)(__pyx_v_pid, __pyx_v_tid); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6887, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6888
 *             raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found')
 *     err = (<CUresult (*)(int, int*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetRestoreThreadId)(pid, tid)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6881
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessGetRestoreThreadId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6890
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetState
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessGetState(int __pyx_v_pid, CUprocessState *__pyx_v_state) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessGetState", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6892
 * cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessGetState
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessGetState == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6892, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6893
 *     global __cuCheckpointProcessGetState
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetState == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6894
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetState == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
 *     err = (<CUresult (*)(int, CUprocessState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetState)(pid, state)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6895
 *     if __cuCheckpointProcessGetState == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, CUprocessState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetState)(pid, state)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessGetS};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6895, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6895, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6894
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetState == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
 *     err = (<CUresult (*)(int, CUprocessState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetState)(pid, state)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6893
 *     global __cuCheckpointProcessGetState
 *     cuPythonInit()
 *     if __cuCheckpointProcessGetState == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6896
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
 *     err = (<CUresult (*)(int, CUprocessState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetState)(pid, state)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, CUprocessState *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState)(__pyx_v_pid, __pyx_v_state); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6896, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6897
 *             raise RuntimeError('Function "cuCheckpointProcessGetState" not found')
 *     err = (<CUresult (*)(int, CUprocessState*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessGetState)(pid, state)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6890
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetState
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessGetState", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6899
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessLock
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessLock(int __pyx_v_pid, CUcheckpointLockArgs *__pyx_v_args) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessLock", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6901
 * cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessLock
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessLock == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6901, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6902
 *     global __cuCheckpointProcessLock
 *     cuPythonInit()
 *     if __cuCheckpointProcessLock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6903
 *     cuPythonInit()
 *     if __cuCheckpointProcessLock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointLockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessLock)(pid, args)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6904
 *     if __cuCheckpointProcessLock == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, CUcheckpointLockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessLock)(pid, args)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessLock};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6904, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6904, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6903
 *     cuPythonInit()
 *     if __cuCheckpointProcessLock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointLockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessLock)(pid, args)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6902
 *     global __cuCheckpointProcessLock
 *     cuPythonInit()
 *     if __cuCheckpointProcessLock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6905
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointLockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessLock)(pid, args)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, CUcheckpointLockArgs *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock)(__pyx_v_pid, __pyx_v_args); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6905, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6906
 *             raise RuntimeError('Function "cuCheckpointProcessLock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointLockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessLock)(pid, args)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6899
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessLock
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessLock", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6908
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessCheckpoint
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessCheckpoint(int __pyx_v_pid, CUcheckpointCheckpointArgs *__pyx_v_args) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessCheckpoint", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6910
 * cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessCheckpoint
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessCheckpoint == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6910, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6911
 *     global __cuCheckpointProcessCheckpoint
 *     cuPythonInit()
 *     if __cuCheckpointProcessCheckpoint == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6912
 *     cuPythonInit()
 *     if __cuCheckpointProcessCheckpoint == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
 *     err = (<CUresult (*)(int, CUcheckpointCheckpointArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessCheckpoint)(pid, args)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6913
 *     if __cuCheckpointProcessCheckpoint == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, CUcheckpointCheckpointArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessCheckpoint)(pid, args)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessChec};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6913, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6913, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6912
 *     cuPythonInit()
 *     if __cuCheckpointProcessCheckpoint == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
 *     err = (<CUresult (*)(int, CUcheckpointCheckpointArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessCheckpoint)(pid, args)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6911
 *     global __cuCheckpointProcessCheckpoint
 *     cuPythonInit()
 *     if __cuCheckpointProcessCheckpoint == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6914
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
 *     err = (<CUresult (*)(int, CUcheckpointCheckpointArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessCheckpoint)(pid, args)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, CUcheckpointCheckpointArgs *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint)(__pyx_v_pid, __pyx_v_args); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6914, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6915
 *             raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found')
 *     err = (<CUresult (*)(int, CUcheckpointCheckpointArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessCheckpoint)(pid, args)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6908
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessCheckpoint
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessCheckpoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6917
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessRestore
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessRestore(int __pyx_v_pid, CUcheckpointRestoreArgs *__pyx_v_args) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessRestore", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6919
 * cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessRestore
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessRestore == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6919, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6920
 *     global __cuCheckpointProcessRestore
 *     cuPythonInit()
 *     if __cuCheckpointProcessRestore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6921
 *     cuPythonInit()
 *     if __cuCheckpointProcessRestore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
 *     err = (<CUresult (*)(int, CUcheckpointRestoreArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessRestore)(pid, args)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6922
 *     if __cuCheckpointProcessRestore == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, CUcheckpointRestoreArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessRestore)(pid, args)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessRest};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6922, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6922, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6921
 *     cuPythonInit()
 *     if __cuCheckpointProcessRestore == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
 *     err = (<CUresult (*)(int, CUcheckpointRestoreArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessRestore)(pid, args)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6920
 *     global __cuCheckpointProcessRestore
 *     cuPythonInit()
 *     if __cuCheckpointProcessRestore == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6923
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
 *     err = (<CUresult (*)(int, CUcheckpointRestoreArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessRestore)(pid, args)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, CUcheckpointRestoreArgs *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore)(__pyx_v_pid, __pyx_v_args); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6923, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6924
 *             raise RuntimeError('Function "cuCheckpointProcessRestore" not found')
 *     err = (<CUresult (*)(int, CUcheckpointRestoreArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessRestore)(pid, args)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6917
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessRestore
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessRestore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6926
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessUnlock
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessUnlock(int __pyx_v_pid, CUcheckpointUnlockArgs *__pyx_v_args) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuCheckpointProcessUnlock", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6928
 * cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuCheckpointProcessUnlock
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuCheckpointProcessUnlock == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6928, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6929
 *     global __cuCheckpointProcessUnlock
 *     cuPythonInit()
 *     if __cuCheckpointProcessUnlock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6930
 *     cuPythonInit()
 *     if __cuCheckpointProcessUnlock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointUnlockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessUnlock)(pid, args)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6931
 *     if __cuCheckpointProcessUnlock == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(int, CUcheckpointUnlockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessUnlock)(pid, args)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuCheckpointProcessUnlo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6931, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6931, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6930
 *     cuPythonInit()
 *     if __cuCheckpointProcessUnlock == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointUnlockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessUnlock)(pid, args)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6929
 *     global __cuCheckpointProcessUnlock
 *     cuPythonInit()
 *     if __cuCheckpointProcessUnlock == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6932
 *         with gil:
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointUnlockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessUnlock)(pid, args)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(int, CUcheckpointUnlockArgs *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock)(__pyx_v_pid, __pyx_v_args); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6932, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6933
 *             raise RuntimeError('Function "cuCheckpointProcessUnlock" not found')
 *     err = (<CUresult (*)(int, CUcheckpointUnlockArgs*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuCheckpointProcessUnlock)(pid, args)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6926
 *     return err
 * 
 * cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessUnlock
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuCheckpointProcessUnlock", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6935
 *     return err
 * 
 * cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuProfilerStart
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuProfilerStart(void) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuProfilerStart", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6937
 * cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuProfilerStart
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuProfilerStart == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6937, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6938
 *     global __cuProfilerStart
 *     cuPythonInit()
 *     if __cuProfilerStart == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStart" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6939
 *     cuPythonInit()
 *     if __cuProfilerStart == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuProfilerStart" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStart)()
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6940
 *     if __cuProfilerStart == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStart" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStart)()
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuProfilerStart_not_fou};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6940, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6940, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6939
 *     cuPythonInit()
 *     if __cuProfilerStart == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuProfilerStart" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStart)()
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6938
 *     global __cuProfilerStart
 *     cuPythonInit()
 *     if __cuProfilerStart == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStart" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6941
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStart" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStart)()             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart)(); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6941, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6942
 *             raise RuntimeError('Function "cuProfilerStart" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStart)()
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6935
 *     return err
 * 
 * cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuProfilerStart
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuProfilerStart", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6944
 *     return err
 * 
 * cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuProfilerStop
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuProfilerStop(void) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuProfilerStop", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6946
 * cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuProfilerStop
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuProfilerStop == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6946, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6947
 *     global __cuProfilerStop
 *     cuPythonInit()
 *     if __cuProfilerStop == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStop" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6948
 *     cuPythonInit()
 *     if __cuProfilerStop == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuProfilerStop" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStop)()
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6949
 *     if __cuProfilerStop == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStop" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStop)()
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuProfilerStop_not_foun};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6949, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6949, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6948
 *     cuPythonInit()
 *     if __cuProfilerStop == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuProfilerStop" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStop)()
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6947
 *     global __cuProfilerStop
 *     cuPythonInit()
 *     if __cuProfilerStop == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStop" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6950
 *         with gil:
 *             raise RuntimeError('Function "cuProfilerStop" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStop)()             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(void))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop)(); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6950, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6951
 *             raise RuntimeError('Function "cuProfilerStop" not found')
 *     err = (<CUresult (*)() except ?CUDA_ERROR_NOT_FOUND nogil> __cuProfilerStop)()
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6944
 *     return err
 * 
 * cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuProfilerStop
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuProfilerStop", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6953
 *     return err
 * 
 * cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsEGLRegisterImage
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsEGLRegisterImage(CUgraphicsResource *__pyx_v_pCudaResource, __pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR __pyx_v_image, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsEGLRegisterImage", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6955
 * cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsEGLRegisterImage
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsEGLRegisterImage == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6955, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6956
 *     global __cuGraphicsEGLRegisterImage
 *     cuPythonInit()
 *     if __cuGraphicsEGLRegisterImage == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6957
 *     cuPythonInit()
 *     if __cuGraphicsEGLRegisterImage == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, EGLImageKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6958
 *     if __cuGraphicsEGLRegisterImage == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource*, EGLImageKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsEGLRegisterIm};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6958, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6958, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6957
 *     cuPythonInit()
 *     if __cuGraphicsEGLRegisterImage == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, EGLImageKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6956
 *     global __cuGraphicsEGLRegisterImage
 *     cuPythonInit()
 *     if __cuGraphicsEGLRegisterImage == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6959
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, EGLImageKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage)(__pyx_v_pCudaResource, __pyx_v_image, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6959, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6960
 *             raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, EGLImageKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6953
 *     return err
 * 
 * cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsEGLRegisterImage
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsEGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6962
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnect
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerConnect(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR __pyx_v_stream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamConsumerConnect", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6964
 * cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamConsumerConnect
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamConsumerConnect == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6964, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6965
 *     global __cuEGLStreamConsumerConnect
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6966
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnect)(conn, stream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6967
 *     if __cuEGLStreamConsumerConnect == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnect)(conn, stream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamConsumerConn};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6967, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6967, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6966
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnect)(conn, stream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6965
 *     global __cuEGLStreamConsumerConnect
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6968
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnect)(conn, stream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect)(__pyx_v_conn, __pyx_v_stream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6968, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6969
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnect)(conn, stream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6962
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnect
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamConsumerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6971
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerConnectWithFlags(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR __pyx_v_stream, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamConsumerConnectWithFlags", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6973
 * cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6973, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6974
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6975
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6976
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamConsumerConn_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6976, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6976, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6975
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6974
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerConnectWithFlags == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6977
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags)(__pyx_v_conn, __pyx_v_stream, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6977, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6978
 *             raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6971
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamConsumerConnectWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6980
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerDisconnect
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerDisconnect(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamConsumerDisconnect", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6982
 * cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamConsumerDisconnect
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamConsumerDisconnect == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6982, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6983
 *     global __cuEGLStreamConsumerDisconnect
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerDisconnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6984
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerDisconnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerDisconnect)(conn)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6985
 *     if __cuEGLStreamConsumerDisconnect == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerDisconnect)(conn)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamConsumerDisc};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6985, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6985, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6984
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerDisconnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerDisconnect)(conn)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6983
 *     global __cuEGLStreamConsumerDisconnect
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerDisconnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6986
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerDisconnect)(conn)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect)(__pyx_v_conn); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6986, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6987
 *             raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerDisconnect)(conn)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6980
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerDisconnect
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamConsumerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6989
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerAcquireFrame
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerAcquireFrame(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, CUgraphicsResource *__pyx_v_pCudaResource, CUstream *__pyx_v_pStream, unsigned int __pyx_v_timeout) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamConsumerAcquireFrame", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":6991
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 6991, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":6992
 *     global __cuEGLStreamConsumerAcquireFrame
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerAcquireFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":6993
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerAcquireFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource*, CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":6994
 *     if __cuEGLStreamConsumerAcquireFrame == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource*, CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamConsumerAcqu};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6994, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 6994, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":6993
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerAcquireFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource*, CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":6992
 *     global __cuEGLStreamConsumerAcquireFrame
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerAcquireFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":6995
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource*, CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, CUgraphicsResource *, CUstream *, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame)(__pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream, __pyx_v_timeout); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 6995, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":6996
 *             raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource*, CUstream*, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6989
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerAcquireFrame
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamConsumerAcquireFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":6998
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerReleaseFrame
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerReleaseFrame(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, CUgraphicsResource __pyx_v_pCudaResource, CUstream *__pyx_v_pStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamConsumerReleaseFrame", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7000
 * cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamConsumerReleaseFrame
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7000, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7001
 *     global __cuEGLStreamConsumerReleaseFrame
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7002
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7003
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamConsumerRele};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7003, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7003, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7002
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7001
 *     global __cuEGLStreamConsumerReleaseFrame
 *     cuPythonInit()
 *     if __cuEGLStreamConsumerReleaseFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7004
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, CUgraphicsResource, CUstream *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame)(__pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7004, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7005
 *             raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUgraphicsResource, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":6998
 *     return err
 * 
 * cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerReleaseFrame
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamConsumerReleaseFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7007
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerConnect
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerConnect(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR __pyx_v_stream, __pyx_t_4cuda_8bindings_8cydriver_EGLint __pyx_v_width, __pyx_t_4cuda_8bindings_8cydriver_EGLint __pyx_v_height) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamProducerConnect", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7009
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7009, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7010
 *     global __cuEGLStreamProducerConnect
 *     cuPythonInit()
 *     if __cuEGLStreamProducerConnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7011
 *     cuPythonInit()
 *     if __cuEGLStreamProducerConnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, EGLint, EGLint) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerConnect)(conn, stream, width, height)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7012
 *     if __cuEGLStreamProducerConnect == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, EGLint, EGLint) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerConnect)(conn, stream, width, height)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamProducerConn};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7012, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7012, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7011
 *     cuPythonInit()
 *     if __cuEGLStreamProducerConnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, EGLint, EGLint) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerConnect)(conn, stream, width, height)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7010
 *     global __cuEGLStreamProducerConnect
 *     cuPythonInit()
 *     if __cuEGLStreamProducerConnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7013
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, EGLint, EGLint) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerConnect)(conn, stream, width, height)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR, __pyx_t_4cuda_8bindings_8cydriver_EGLint, __pyx_t_4cuda_8bindings_8cydriver_EGLint))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect)(__pyx_v_conn, __pyx_v_stream, __pyx_v_width, __pyx_v_height); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7013, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7014
 *             raise RuntimeError('Function "cuEGLStreamProducerConnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, EGLStreamKHR, EGLint, EGLint) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerConnect)(conn, stream, width, height)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7007
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerConnect
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamProducerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7016
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerDisconnect
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerDisconnect(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamProducerDisconnect", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7018
 * cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamProducerDisconnect
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamProducerDisconnect == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7018, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7019
 *     global __cuEGLStreamProducerDisconnect
 *     cuPythonInit()
 *     if __cuEGLStreamProducerDisconnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7020
 *     cuPythonInit()
 *     if __cuEGLStreamProducerDisconnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerDisconnect)(conn)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7021
 *     if __cuEGLStreamProducerDisconnect == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerDisconnect)(conn)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamProducerDisc};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7021, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7021, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7020
 *     cuPythonInit()
 *     if __cuEGLStreamProducerDisconnect == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerDisconnect)(conn)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7019
 *     global __cuEGLStreamProducerDisconnect
 *     cuPythonInit()
 *     if __cuEGLStreamProducerDisconnect == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7022
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerDisconnect)(conn)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect)(__pyx_v_conn); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7022, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7023
 *             raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerDisconnect)(conn)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7016
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerDisconnect
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamProducerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7025
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerPresentFrame
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerPresentFrame(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame __pyx_v_eglframe, CUstream *__pyx_v_pStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamProducerPresentFrame", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7027
 * cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamProducerPresentFrame
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamProducerPresentFrame == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7027, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7028
 *     global __cuEGLStreamProducerPresentFrame
 *     cuPythonInit()
 *     if __cuEGLStreamProducerPresentFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7029
 *     cuPythonInit()
 *     if __cuEGLStreamProducerPresentFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7030
 *     if __cuEGLStreamProducerPresentFrame == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamProducerPres};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7030, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7030, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7029
 *     cuPythonInit()
 *     if __cuEGLStreamProducerPresentFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7028
 *     global __cuEGLStreamProducerPresentFrame
 *     cuPythonInit()
 *     if __cuEGLStreamProducerPresentFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7031
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame, CUstream *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame)(__pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7031, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7032
 *             raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7025
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerPresentFrame
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamProducerPresentFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7034
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerReturnFrame
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerReturnFrame(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *__pyx_v_conn, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *__pyx_v_eglframe, CUstream *__pyx_v_pStream) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEGLStreamProducerReturnFrame", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7036
 * cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEGLStreamProducerReturnFrame
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEGLStreamProducerReturnFrame == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7036, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7037
 *     global __cuEGLStreamProducerReturnFrame
 *     cuPythonInit()
 *     if __cuEGLStreamProducerReturnFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7038
 *     cuPythonInit()
 *     if __cuEGLStreamProducerReturnFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame*, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7039
 *     if __cuEGLStreamProducerReturnFrame == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame*, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEGLStreamProducerRetu};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7039, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7039, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7038
 *     cuPythonInit()
 *     if __cuEGLStreamProducerReturnFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame*, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7037
 *     global __cuEGLStreamProducerReturnFrame
 *     cuPythonInit()
 *     if __cuEGLStreamProducerReturnFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7040
 *         with gil:
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame*, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *, CUstream *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame)(__pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7040, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7041
 *             raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found')
 *     err = (<CUresult (*)(CUeglStreamConnection*, CUeglFrame*, CUstream*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7034
 *     return err
 * 
 * cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerReturnFrame
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEGLStreamProducerReturnFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7043
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedEglFrame(__pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *__pyx_v_eglFrame, CUgraphicsResource __pyx_v_resource, unsigned int __pyx_v_index, unsigned int __pyx_v_mipLevel) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsResourceGetMappedEglFrame", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7045
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7045, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7046
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedEglFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7047
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedEglFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
 *     err = (<CUresult (*)(CUeglFrame*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7048
 *     if __cuGraphicsResourceGetMappedEglFrame == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUeglFrame*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsResourceGetMa_3};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7048, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7048, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7047
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedEglFrame == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
 *     err = (<CUresult (*)(CUeglFrame*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7046
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     cuPythonInit()
 *     if __cuGraphicsResourceGetMappedEglFrame == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7049
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
 *     err = (<CUresult (*)(CUeglFrame*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(__pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *, CUgraphicsResource, unsigned int, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame)(__pyx_v_eglFrame, __pyx_v_resource, __pyx_v_index, __pyx_v_mipLevel); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7049, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7050
 *             raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found')
 *     err = (<CUresult (*)(CUeglFrame*, CUgraphicsResource, unsigned int, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7043
 *     return err
 * 
 * cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsResourceGetMappedEglFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7052
 *     return err
 * 
 * cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventCreateFromEGLSync
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventCreateFromEGLSync(CUevent *__pyx_v_phEvent, __pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR __pyx_v_eglSync, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuEventCreateFromEGLSync", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7054
 * cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuEventCreateFromEGLSync
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuEventCreateFromEGLSync == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7054, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7055
 *     global __cuEventCreateFromEGLSync
 *     cuPythonInit()
 *     if __cuEventCreateFromEGLSync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7056
 *     cuPythonInit()
 *     if __cuEventCreateFromEGLSync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
 *     err = (<CUresult (*)(CUevent*, EGLSyncKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreateFromEGLSync)(phEvent, eglSync, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7057
 *     if __cuEventCreateFromEGLSync == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUevent*, EGLSyncKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreateFromEGLSync)(phEvent, eglSync, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuEventCreateFromEGLSyn};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7057, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7057, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7056
 *     cuPythonInit()
 *     if __cuEventCreateFromEGLSync == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
 *     err = (<CUresult (*)(CUevent*, EGLSyncKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreateFromEGLSync)(phEvent, eglSync, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7055
 *     global __cuEventCreateFromEGLSync
 *     cuPythonInit()
 *     if __cuEventCreateFromEGLSync == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7058
 *         with gil:
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
 *     err = (<CUresult (*)(CUevent*, EGLSyncKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreateFromEGLSync)(phEvent, eglSync, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUevent *, __pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync)(__pyx_v_phEvent, __pyx_v_eglSync, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7058, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7059
 *             raise RuntimeError('Function "cuEventCreateFromEGLSync" not found')
 *     err = (<CUresult (*)(CUevent*, EGLSyncKHR, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuEventCreateFromEGLSync)(phEvent, eglSync, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7052
 *     return err
 * 
 * cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuEventCreateFromEGLSync
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuEventCreateFromEGLSync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7061
 *     return err
 * 
 * cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterBuffer
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsGLRegisterBuffer(CUgraphicsResource *__pyx_v_pCudaResource, __pyx_t_4cuda_8bindings_8cydriver_GLuint __pyx_v_buffer, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsGLRegisterBuffer", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7063
 * cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsGLRegisterBuffer
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsGLRegisterBuffer == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7063, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7064
 *     global __cuGraphicsGLRegisterBuffer
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterBuffer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7065
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterBuffer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7066
 *     if __cuGraphicsGLRegisterBuffer == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsGLRegisterBuf};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7066, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7066, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7065
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterBuffer == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7064
 *     global __cuGraphicsGLRegisterBuffer
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterBuffer == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7067
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_GLuint, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer)(__pyx_v_pCudaResource, __pyx_v_buffer, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7067, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7068
 *             raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7061
 *     return err
 * 
 * cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterBuffer
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsGLRegisterBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7070
 *     return err
 * 
 * cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterImage
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsGLRegisterImage(CUgraphicsResource *__pyx_v_pCudaResource, __pyx_t_4cuda_8bindings_8cydriver_GLuint __pyx_v_image, __pyx_t_4cuda_8bindings_8cydriver_GLenum __pyx_v_target, unsigned int __pyx_v_Flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsGLRegisterImage", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7072
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7072, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7073
 *     global __cuGraphicsGLRegisterImage
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterImage == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7074
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterImage == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, GLenum, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7075
 *     if __cuGraphicsGLRegisterImage == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, GLenum, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsGLRegisterIma};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7075, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7075, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7074
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterImage == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, GLenum, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7073
 *     global __cuGraphicsGLRegisterImage
 *     cuPythonInit()
 *     if __cuGraphicsGLRegisterImage == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7076
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, GLenum, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_GLuint, __pyx_t_4cuda_8bindings_8cydriver_GLenum, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage)(__pyx_v_pCudaResource, __pyx_v_image, __pyx_v_target, __pyx_v_Flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7076, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7077
 *             raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, GLuint, GLenum, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7070
 *     return err
 * 
 * cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterImage
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7079
 *     return err
 * 
 * cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGLGetDevices_v2
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGLGetDevices_v2(unsigned int *__pyx_v_pCudaDeviceCount, CUdevice *__pyx_v_pCudaDevices, unsigned int __pyx_v_cudaDeviceCount, __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList __pyx_v_deviceList) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGLGetDevices_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7081
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7081, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7082
 *     global __cuGLGetDevices_v2
 *     cuPythonInit()
 *     if __cuGLGetDevices_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7083
 *     cuPythonInit()
 *     if __cuGLGetDevices_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
 *     err = (<CUresult (*)(unsigned int*, CUdevice*, unsigned int, CUGLDeviceList) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7084
 *     if __cuGLGetDevices_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(unsigned int*, CUdevice*, unsigned int, CUGLDeviceList) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGLGetDevices_v2_not_f};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7084, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7084, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7083
 *     cuPythonInit()
 *     if __cuGLGetDevices_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
 *     err = (<CUresult (*)(unsigned int*, CUdevice*, unsigned int, CUGLDeviceList) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7082
 *     global __cuGLGetDevices_v2
 *     cuPythonInit()
 *     if __cuGLGetDevices_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7085
 *         with gil:
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
 *     err = (<CUresult (*)(unsigned int*, CUdevice*, unsigned int, CUGLDeviceList) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(unsigned int *, CUdevice *, unsigned int, __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2)(__pyx_v_pCudaDeviceCount, __pyx_v_pCudaDevices, __pyx_v_cudaDeviceCount, __pyx_v_deviceList); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7085, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7086
 *             raise RuntimeError('Function "cuGLGetDevices_v2" not found')
 *     err = (<CUresult (*)(unsigned int*, CUdevice*, unsigned int, CUGLDeviceList) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7079
 *     return err
 * 
 * cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGLGetDevices_v2
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGLGetDevices_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7088
 *     return err
 * 
 * cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuVDPAUGetDevice
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuVDPAUGetDevice(CUdevice *__pyx_v_pDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice __pyx_v_vdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *__pyx_v_vdpGetProcAddress) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuVDPAUGetDevice", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7090
 * cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuVDPAUGetDevice
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuVDPAUGetDevice == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7090, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7091
 *     global __cuVDPAUGetDevice
 *     cuPythonInit()
 *     if __cuVDPAUGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7092
 *     cuPythonInit()
 *     if __cuVDPAUGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7093
 *     if __cuVDPAUGetDevice == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUdevice*, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuVDPAUGetDevice_not_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7093, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7093, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7092
 *     cuPythonInit()
 *     if __cuVDPAUGetDevice == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7091
 *     global __cuVDPAUGetDevice
 *     cuPythonInit()
 *     if __cuVDPAUGetDevice == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7094
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUdevice *, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice)(__pyx_v_pDevice, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7094, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7095
 *             raise RuntimeError('Function "cuVDPAUGetDevice" not found')
 *     err = (<CUresult (*)(CUdevice*, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7088
 *     return err
 * 
 * cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuVDPAUGetDevice
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuVDPAUGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7097
 *     return err
 * 
 * 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()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuVDPAUCtxCreate_v2(CUcontext *__pyx_v_pCtx, unsigned int __pyx_v_flags, CUdevice __pyx_v_device, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice __pyx_v_vdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *__pyx_v_vdpGetProcAddress) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuVDPAUCtxCreate_v2", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7099
 * 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:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7099, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7100
 *     global __cuVDPAUCtxCreate_v2
 *     cuPythonInit()
 *     if __cuVDPAUCtxCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7101
 *     cuPythonInit()
 *     if __cuVDPAUCtxCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int, CUdevice, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7102
 *     if __cuVDPAUCtxCreate_v2 == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUcontext*, unsigned int, CUdevice, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuVDPAUCtxCreate_v2_not};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7102, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7102, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7101
 *     cuPythonInit()
 *     if __cuVDPAUCtxCreate_v2 == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int, CUdevice, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7100
 *     global __cuVDPAUCtxCreate_v2
 *     cuPythonInit()
 *     if __cuVDPAUCtxCreate_v2 == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7103
 *         with gil:
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int, CUdevice, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUcontext *, unsigned int, CUdevice, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2)(__pyx_v_pCtx, __pyx_v_flags, __pyx_v_device, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7103, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7104
 *             raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found')
 *     err = (<CUresult (*)(CUcontext*, unsigned int, CUdevice, VdpDevice, VdpGetProcAddress*) except ?CUDA_ERROR_NOT_FOUND nogil> __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7097
 *     return err
 * 
 * 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()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuVDPAUCtxCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7106
 *     return err
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource *__pyx_v_pCudaResource, __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface __pyx_v_vdpSurface, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsVDPAURegisterVideoSurface", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7108
 * cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7108, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7109
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7110
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpVideoSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7111
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpVideoSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsVDPAURegister};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7111, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7111, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7110
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpVideoSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7109
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterVideoSurface == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7112
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpVideoSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface)(__pyx_v_pCudaResource, __pyx_v_vdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7112, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7113
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpVideoSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7106
 *     return err
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsVDPAURegisterVideoSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7115
 *     return err
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     cuPythonInit()
*/

static CUresult __pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource *__pyx_v_pCudaResource, __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface __pyx_v_vdpSurface, unsigned int __pyx_v_flags) {
  CUresult __pyx_v_err;
  CUresult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  CUresult __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("_cuGraphicsVDPAURegisterOutputSurface", 1);

  /* "cuda/bindings/_bindings/cydriver.pyx":7117
 * cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:
 *         with gil:
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 7117, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7118
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
*/
  __pyx_t_2 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7119
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpOutputSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags)
*/
    {
        PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
        /*try:*/ {

          /* "cuda/bindings/_bindings/cydriver.pyx":7120
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')             # <<<<<<<<<<<<<<
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpOutputSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags)
 *     return err
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Function_cuGraphicsVDPAURegister_2};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7120, __pyx_L5_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 7120, __pyx_L5_error)
        }

        /* "cuda/bindings/_bindings/cydriver.pyx":7119
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:
 *         with gil:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpOutputSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags)
*/
        /*finally:*/ {
          __pyx_L5_error: {
            __Pyx_PyGILState_Release(__pyx_gilstate_save);
            goto __pyx_L1_error;
          }
        }
    }

    /* "cuda/bindings/_bindings/cydriver.pyx":7118
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     cuPythonInit()
 *     if __cuGraphicsVDPAURegisterOutputSurface == NULL:             # <<<<<<<<<<<<<<
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7121
 *         with gil:
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpOutputSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags)             # <<<<<<<<<<<<<<
 *     return err
 * 
*/
  __pyx_t_6 = ((CUresult (*)(CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface, unsigned int))__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface)(__pyx_v_pCudaResource, __pyx_v_vdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError_enum)CUDA_ERROR_NOT_FOUND) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 7121, __pyx_L1_error)
  __pyx_v_err = __pyx_t_6;

  /* "cuda/bindings/_bindings/cydriver.pyx":7122
 *             raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found')
 *     err = (<CUresult (*)(CUgraphicsResource*, VdpOutputSurface, unsigned int) except ?CUDA_ERROR_NOT_FOUND nogil> __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags)
 *     return err             # <<<<<<<<<<<<<<
 * 
 * cdef dict func_ptrs = None
*/
  __pyx_r = __pyx_v_err;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7115
 *     return err
 * 
 * cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     cuPythonInit()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._cuGraphicsVDPAURegisterOutputSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = CUDA_ERROR_NOT_FOUND;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":7126
 * cdef dict func_ptrs = None
 * 
 * cpdef dict _inspect_function_pointers():             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is not None:
*/

static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(CYTHON_UNUSED int __pyx_skip_dispatch) {
  PyObject *__pyx_v_data = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_inspect_function_pointers", 0);

  /* "cuda/bindings/_bindings/cydriver.pyx":7128
 * cpdef dict _inspect_function_pointers():
 *     global func_ptrs
 *     if func_ptrs is not None:             # <<<<<<<<<<<<<<
 *         return func_ptrs
 * 
*/
  __pyx_t_1 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs != ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "cuda/bindings/_bindings/cydriver.pyx":7129
 *     global func_ptrs
 *     if func_ptrs is not None:
 *         return func_ptrs             # <<<<<<<<<<<<<<
 * 
 *     cuPythonInit()
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs);
    __pyx_r = __pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs;
    goto __pyx_L0;

    /* "cuda/bindings/_bindings/cydriver.pyx":7128
 * cpdef dict _inspect_function_pointers():
 *     global func_ptrs
 *     if func_ptrs is not None:             # <<<<<<<<<<<<<<
 *         return func_ptrs
 * 
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":7131
 *         return func_ptrs
 * 
 *     cuPythonInit()             # <<<<<<<<<<<<<<
 *     cdef dict data = {}
 * 
*/
  __pyx_t_2 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver_cuPythonInit(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 7131, __pyx_L1_error)

  /* "cuda/bindings/_bindings/cydriver.pyx":7132
 * 
 *     cuPythonInit()
 *     cdef dict data = {}             # <<<<<<<<<<<<<<
 * 
 *     global __cuGetErrorString
*/
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_data = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7135
 * 
 *     global __cuGetErrorString
 *     data["__cuGetErrorString"] = <intptr_t>__cuGetErrorString             # <<<<<<<<<<<<<<
 *     global __cuGetErrorName
 *     data["__cuGetErrorName"] = <intptr_t>__cuGetErrorName
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGetErrorString_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7137
 *     data["__cuGetErrorString"] = <intptr_t>__cuGetErrorString
 *     global __cuGetErrorName
 *     data["__cuGetErrorName"] = <intptr_t>__cuGetErrorName             # <<<<<<<<<<<<<<
 *     global __cuInit
 *     data["__cuInit"] = <intptr_t>__cuInit
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGetErrorName_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7139
 *     data["__cuGetErrorName"] = <intptr_t>__cuGetErrorName
 *     global __cuInit
 *     data["__cuInit"] = <intptr_t>__cuInit             # <<<<<<<<<<<<<<
 *     global __cuDriverGetVersion
 *     data["__cuDriverGetVersion"] = <intptr_t>__cuDriverGetVersion
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuInit_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7141
 *     data["__cuInit"] = <intptr_t>__cuInit
 *     global __cuDriverGetVersion
 *     data["__cuDriverGetVersion"] = <intptr_t>__cuDriverGetVersion             # <<<<<<<<<<<<<<
 *     global __cuDeviceGet
 *     data["__cuDeviceGet"] = <intptr_t>__cuDeviceGet
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDriverGetVersion_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7143
 *     data["__cuDriverGetVersion"] = <intptr_t>__cuDriverGetVersion
 *     global __cuDeviceGet
 *     data["__cuDeviceGet"] = <intptr_t>__cuDeviceGet             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetCount
 *     data["__cuDeviceGetCount"] = <intptr_t>__cuDeviceGetCount
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGet_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7145
 *     data["__cuDeviceGet"] = <intptr_t>__cuDeviceGet
 *     global __cuDeviceGetCount
 *     data["__cuDeviceGetCount"] = <intptr_t>__cuDeviceGetCount             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetName
 *     data["__cuDeviceGetName"] = <intptr_t>__cuDeviceGetName
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetCount_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7147
 *     data["__cuDeviceGetCount"] = <intptr_t>__cuDeviceGetCount
 *     global __cuDeviceGetName
 *     data["__cuDeviceGetName"] = <intptr_t>__cuDeviceGetName             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetUuid_v2
 *     data["__cuDeviceGetUuid_v2"] = <intptr_t>__cuDeviceGetUuid_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetName_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7149
 *     data["__cuDeviceGetName"] = <intptr_t>__cuDeviceGetName
 *     global __cuDeviceGetUuid_v2
 *     data["__cuDeviceGetUuid_v2"] = <intptr_t>__cuDeviceGetUuid_v2             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetLuid
 *     data["__cuDeviceGetLuid"] = <intptr_t>__cuDeviceGetLuid
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetUuid_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7151
 *     data["__cuDeviceGetUuid_v2"] = <intptr_t>__cuDeviceGetUuid_v2
 *     global __cuDeviceGetLuid
 *     data["__cuDeviceGetLuid"] = <intptr_t>__cuDeviceGetLuid             # <<<<<<<<<<<<<<
 *     global __cuDeviceTotalMem_v2
 *     data["__cuDeviceTotalMem_v2"] = <intptr_t>__cuDeviceTotalMem_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetLuid_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7153
 *     data["__cuDeviceGetLuid"] = <intptr_t>__cuDeviceGetLuid
 *     global __cuDeviceTotalMem_v2
 *     data["__cuDeviceTotalMem_v2"] = <intptr_t>__cuDeviceTotalMem_v2             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     data["__cuDeviceGetTexture1DLinearMaxWidth"] = <intptr_t>__cuDeviceGetTexture1DLinearMaxWidth
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceTotalMem_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7155
 *     data["__cuDeviceTotalMem_v2"] = <intptr_t>__cuDeviceTotalMem_v2
 *     global __cuDeviceGetTexture1DLinearMaxWidth
 *     data["__cuDeviceGetTexture1DLinearMaxWidth"] = <intptr_t>__cuDeviceGetTexture1DLinearMaxWidth             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetAttribute
 *     data["__cuDeviceGetAttribute"] = <intptr_t>__cuDeviceGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetTexture1DLinearMaxW, __pyx_t_3) < 0))) __PYX_ERR(0, 7155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7157
 *     data["__cuDeviceGetTexture1DLinearMaxWidth"] = <intptr_t>__cuDeviceGetTexture1DLinearMaxWidth
 *     global __cuDeviceGetAttribute
 *     data["__cuDeviceGetAttribute"] = <intptr_t>__cuDeviceGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetHostAtomicCapabilities
 *     data["__cuDeviceGetHostAtomicCapabilities"] = <intptr_t>__cuDeviceGetHostAtomicCapabilities
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7159
 *     data["__cuDeviceGetAttribute"] = <intptr_t>__cuDeviceGetAttribute
 *     global __cuDeviceGetHostAtomicCapabilities
 *     data["__cuDeviceGetHostAtomicCapabilities"] = <intptr_t>__cuDeviceGetHostAtomicCapabilities             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetNvSciSyncAttributes
 *     data["__cuDeviceGetNvSciSyncAttributes"] = <intptr_t>__cuDeviceGetNvSciSyncAttributes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetHostAtomicCapabilit, __pyx_t_3) < 0))) __PYX_ERR(0, 7159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7161
 *     data["__cuDeviceGetHostAtomicCapabilities"] = <intptr_t>__cuDeviceGetHostAtomicCapabilities
 *     global __cuDeviceGetNvSciSyncAttributes
 *     data["__cuDeviceGetNvSciSyncAttributes"] = <intptr_t>__cuDeviceGetNvSciSyncAttributes             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetMemPool
 *     data["__cuDeviceSetMemPool"] = <intptr_t>__cuDeviceSetMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetNvSciSyncAttributes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7163
 *     data["__cuDeviceGetNvSciSyncAttributes"] = <intptr_t>__cuDeviceGetNvSciSyncAttributes
 *     global __cuDeviceSetMemPool
 *     data["__cuDeviceSetMemPool"] = <intptr_t>__cuDeviceSetMemPool             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetMemPool
 *     data["__cuDeviceGetMemPool"] = <intptr_t>__cuDeviceGetMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceSetMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7165
 *     data["__cuDeviceSetMemPool"] = <intptr_t>__cuDeviceSetMemPool
 *     global __cuDeviceGetMemPool
 *     data["__cuDeviceGetMemPool"] = <intptr_t>__cuDeviceGetMemPool             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDefaultMemPool
 *     data["__cuDeviceGetDefaultMemPool"] = <intptr_t>__cuDeviceGetDefaultMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7167
 *     data["__cuDeviceGetMemPool"] = <intptr_t>__cuDeviceGetMemPool
 *     global __cuDeviceGetDefaultMemPool
 *     data["__cuDeviceGetDefaultMemPool"] = <intptr_t>__cuDeviceGetDefaultMemPool             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetExecAffinitySupport
 *     data["__cuDeviceGetExecAffinitySupport"] = <intptr_t>__cuDeviceGetExecAffinitySupport
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetDefaultMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7169
 *     data["__cuDeviceGetDefaultMemPool"] = <intptr_t>__cuDeviceGetDefaultMemPool
 *     global __cuDeviceGetExecAffinitySupport
 *     data["__cuDeviceGetExecAffinitySupport"] = <intptr_t>__cuDeviceGetExecAffinitySupport             # <<<<<<<<<<<<<<
 *     global __cuFlushGPUDirectRDMAWrites
 *     data["__cuFlushGPUDirectRDMAWrites"] = <intptr_t>__cuFlushGPUDirectRDMAWrites
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetExecAffinitySupport_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7171
 *     data["__cuDeviceGetExecAffinitySupport"] = <intptr_t>__cuDeviceGetExecAffinitySupport
 *     global __cuFlushGPUDirectRDMAWrites
 *     data["__cuFlushGPUDirectRDMAWrites"] = <intptr_t>__cuFlushGPUDirectRDMAWrites             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetProperties
 *     data["__cuDeviceGetProperties"] = <intptr_t>__cuDeviceGetProperties
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFlushGPUDirectRDMAWrites_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7173
 *     data["__cuFlushGPUDirectRDMAWrites"] = <intptr_t>__cuFlushGPUDirectRDMAWrites
 *     global __cuDeviceGetProperties
 *     data["__cuDeviceGetProperties"] = <intptr_t>__cuDeviceGetProperties             # <<<<<<<<<<<<<<
 *     global __cuDeviceComputeCapability
 *     data["__cuDeviceComputeCapability"] = <intptr_t>__cuDeviceComputeCapability
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetProperties_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7175
 *     data["__cuDeviceGetProperties"] = <intptr_t>__cuDeviceGetProperties
 *     global __cuDeviceComputeCapability
 *     data["__cuDeviceComputeCapability"] = <intptr_t>__cuDeviceComputeCapability             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRetain
 *     data["__cuDevicePrimaryCtxRetain"] = <intptr_t>__cuDevicePrimaryCtxRetain
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceComputeCapability_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7177
 *     data["__cuDeviceComputeCapability"] = <intptr_t>__cuDeviceComputeCapability
 *     global __cuDevicePrimaryCtxRetain
 *     data["__cuDevicePrimaryCtxRetain"] = <intptr_t>__cuDevicePrimaryCtxRetain             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxRelease_v2
 *     data["__cuDevicePrimaryCtxRelease_v2"] = <intptr_t>__cuDevicePrimaryCtxRelease_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevicePrimaryCtxRetain_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7179
 *     data["__cuDevicePrimaryCtxRetain"] = <intptr_t>__cuDevicePrimaryCtxRetain
 *     global __cuDevicePrimaryCtxRelease_v2
 *     data["__cuDevicePrimaryCtxRelease_v2"] = <intptr_t>__cuDevicePrimaryCtxRelease_v2             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     data["__cuDevicePrimaryCtxSetFlags_v2"] = <intptr_t>__cuDevicePrimaryCtxSetFlags_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevicePrimaryCtxRelease_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7179, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7181
 *     data["__cuDevicePrimaryCtxRelease_v2"] = <intptr_t>__cuDevicePrimaryCtxRelease_v2
 *     global __cuDevicePrimaryCtxSetFlags_v2
 *     data["__cuDevicePrimaryCtxSetFlags_v2"] = <intptr_t>__cuDevicePrimaryCtxSetFlags_v2             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxGetState
 *     data["__cuDevicePrimaryCtxGetState"] = <intptr_t>__cuDevicePrimaryCtxGetState
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevicePrimaryCtxSetFlags_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7181, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7183
 *     data["__cuDevicePrimaryCtxSetFlags_v2"] = <intptr_t>__cuDevicePrimaryCtxSetFlags_v2
 *     global __cuDevicePrimaryCtxGetState
 *     data["__cuDevicePrimaryCtxGetState"] = <intptr_t>__cuDevicePrimaryCtxGetState             # <<<<<<<<<<<<<<
 *     global __cuDevicePrimaryCtxReset_v2
 *     data["__cuDevicePrimaryCtxReset_v2"] = <intptr_t>__cuDevicePrimaryCtxReset_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevicePrimaryCtxGetState_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7185
 *     data["__cuDevicePrimaryCtxGetState"] = <intptr_t>__cuDevicePrimaryCtxGetState
 *     global __cuDevicePrimaryCtxReset_v2
 *     data["__cuDevicePrimaryCtxReset_v2"] = <intptr_t>__cuDevicePrimaryCtxReset_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxCreate_v4
 *     data["__cuCtxCreate_v4"] = <intptr_t>__cuCtxCreate_v4
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7185, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevicePrimaryCtxReset_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7185, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7187
 *     data["__cuDevicePrimaryCtxReset_v2"] = <intptr_t>__cuDevicePrimaryCtxReset_v2
 *     global __cuCtxCreate_v4
 *     data["__cuCtxCreate_v4"] = <intptr_t>__cuCtxCreate_v4             # <<<<<<<<<<<<<<
 *     global __cuCtxDestroy_v2
 *     data["__cuCtxDestroy_v2"] = <intptr_t>__cuCtxDestroy_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxCreate_v4_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7187, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7189
 *     data["__cuCtxCreate_v4"] = <intptr_t>__cuCtxCreate_v4
 *     global __cuCtxDestroy_v2
 *     data["__cuCtxDestroy_v2"] = <intptr_t>__cuCtxDestroy_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxPushCurrent_v2
 *     data["__cuCtxPushCurrent_v2"] = <intptr_t>__cuCtxPushCurrent_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxDestroy_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7189, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7191
 *     data["__cuCtxDestroy_v2"] = <intptr_t>__cuCtxDestroy_v2
 *     global __cuCtxPushCurrent_v2
 *     data["__cuCtxPushCurrent_v2"] = <intptr_t>__cuCtxPushCurrent_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxPopCurrent_v2
 *     data["__cuCtxPopCurrent_v2"] = <intptr_t>__cuCtxPopCurrent_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxPushCurrent_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7193
 *     data["__cuCtxPushCurrent_v2"] = <intptr_t>__cuCtxPushCurrent_v2
 *     global __cuCtxPopCurrent_v2
 *     data["__cuCtxPopCurrent_v2"] = <intptr_t>__cuCtxPopCurrent_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCurrent
 *     data["__cuCtxSetCurrent"] = <intptr_t>__cuCtxSetCurrent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxPopCurrent_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7195
 *     data["__cuCtxPopCurrent_v2"] = <intptr_t>__cuCtxPopCurrent_v2
 *     global __cuCtxSetCurrent
 *     data["__cuCtxSetCurrent"] = <intptr_t>__cuCtxSetCurrent             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCurrent
 *     data["__cuCtxGetCurrent"] = <intptr_t>__cuCtxGetCurrent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSetCurrent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7195, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7197
 *     data["__cuCtxSetCurrent"] = <intptr_t>__cuCtxSetCurrent
 *     global __cuCtxGetCurrent
 *     data["__cuCtxGetCurrent"] = <intptr_t>__cuCtxGetCurrent             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice
 *     data["__cuCtxGetDevice"] = <intptr_t>__cuCtxGetDevice
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetCurrent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7199
 *     data["__cuCtxGetCurrent"] = <intptr_t>__cuCtxGetCurrent
 *     global __cuCtxGetDevice
 *     data["__cuCtxGetDevice"] = <intptr_t>__cuCtxGetDevice             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevice_v2
 *     data["__cuCtxGetDevice_v2"] = <intptr_t>__cuCtxGetDevice_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetDevice_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7201
 *     data["__cuCtxGetDevice"] = <intptr_t>__cuCtxGetDevice
 *     global __cuCtxGetDevice_v2
 *     data["__cuCtxGetDevice_v2"] = <intptr_t>__cuCtxGetDevice_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxGetFlags
 *     data["__cuCtxGetFlags"] = <intptr_t>__cuCtxGetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetDevice_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7203
 *     data["__cuCtxGetDevice_v2"] = <intptr_t>__cuCtxGetDevice_v2
 *     global __cuCtxGetFlags
 *     data["__cuCtxGetFlags"] = <intptr_t>__cuCtxGetFlags             # <<<<<<<<<<<<<<
 *     global __cuCtxSetFlags
 *     data["__cuCtxSetFlags"] = <intptr_t>__cuCtxSetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7205
 *     data["__cuCtxGetFlags"] = <intptr_t>__cuCtxGetFlags
 *     global __cuCtxSetFlags
 *     data["__cuCtxSetFlags"] = <intptr_t>__cuCtxSetFlags             # <<<<<<<<<<<<<<
 *     global __cuCtxGetId
 *     data["__cuCtxGetId"] = <intptr_t>__cuCtxGetId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7207
 *     data["__cuCtxSetFlags"] = <intptr_t>__cuCtxSetFlags
 *     global __cuCtxGetId
 *     data["__cuCtxGetId"] = <intptr_t>__cuCtxGetId             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize
 *     data["__cuCtxSynchronize"] = <intptr_t>__cuCtxSynchronize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7209
 *     data["__cuCtxGetId"] = <intptr_t>__cuCtxGetId
 *     global __cuCtxSynchronize
 *     data["__cuCtxSynchronize"] = <intptr_t>__cuCtxSynchronize             # <<<<<<<<<<<<<<
 *     global __cuCtxSynchronize_v2
 *     data["__cuCtxSynchronize_v2"] = <intptr_t>__cuCtxSynchronize_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSynchronize_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7209, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7211
 *     data["__cuCtxSynchronize"] = <intptr_t>__cuCtxSynchronize
 *     global __cuCtxSynchronize_v2
 *     data["__cuCtxSynchronize_v2"] = <intptr_t>__cuCtxSynchronize_v2             # <<<<<<<<<<<<<<
 *     global __cuCtxSetLimit
 *     data["__cuCtxSetLimit"] = <intptr_t>__cuCtxSetLimit
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSynchronize_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7213
 *     data["__cuCtxSynchronize_v2"] = <intptr_t>__cuCtxSynchronize_v2
 *     global __cuCtxSetLimit
 *     data["__cuCtxSetLimit"] = <intptr_t>__cuCtxSetLimit             # <<<<<<<<<<<<<<
 *     global __cuCtxGetLimit
 *     data["__cuCtxGetLimit"] = <intptr_t>__cuCtxGetLimit
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSetLimit_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7213, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7215
 *     data["__cuCtxSetLimit"] = <intptr_t>__cuCtxSetLimit
 *     global __cuCtxGetLimit
 *     data["__cuCtxGetLimit"] = <intptr_t>__cuCtxGetLimit             # <<<<<<<<<<<<<<
 *     global __cuCtxGetCacheConfig
 *     data["__cuCtxGetCacheConfig"] = <intptr_t>__cuCtxGetCacheConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetLimit_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7215, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7217
 *     data["__cuCtxGetLimit"] = <intptr_t>__cuCtxGetLimit
 *     global __cuCtxGetCacheConfig
 *     data["__cuCtxGetCacheConfig"] = <intptr_t>__cuCtxGetCacheConfig             # <<<<<<<<<<<<<<
 *     global __cuCtxSetCacheConfig
 *     data["__cuCtxSetCacheConfig"] = <intptr_t>__cuCtxSetCacheConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetCacheConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7219
 *     data["__cuCtxGetCacheConfig"] = <intptr_t>__cuCtxGetCacheConfig
 *     global __cuCtxSetCacheConfig
 *     data["__cuCtxSetCacheConfig"] = <intptr_t>__cuCtxSetCacheConfig             # <<<<<<<<<<<<<<
 *     global __cuCtxGetApiVersion
 *     data["__cuCtxGetApiVersion"] = <intptr_t>__cuCtxGetApiVersion
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSetCacheConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7221
 *     data["__cuCtxSetCacheConfig"] = <intptr_t>__cuCtxSetCacheConfig
 *     global __cuCtxGetApiVersion
 *     data["__cuCtxGetApiVersion"] = <intptr_t>__cuCtxGetApiVersion             # <<<<<<<<<<<<<<
 *     global __cuCtxGetStreamPriorityRange
 *     data["__cuCtxGetStreamPriorityRange"] = <intptr_t>__cuCtxGetStreamPriorityRange
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetApiVersion_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7223
 *     data["__cuCtxGetApiVersion"] = <intptr_t>__cuCtxGetApiVersion
 *     global __cuCtxGetStreamPriorityRange
 *     data["__cuCtxGetStreamPriorityRange"] = <intptr_t>__cuCtxGetStreamPriorityRange             # <<<<<<<<<<<<<<
 *     global __cuCtxResetPersistingL2Cache
 *     data["__cuCtxResetPersistingL2Cache"] = <intptr_t>__cuCtxResetPersistingL2Cache
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetStreamPriorityRange_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7225
 *     data["__cuCtxGetStreamPriorityRange"] = <intptr_t>__cuCtxGetStreamPriorityRange
 *     global __cuCtxResetPersistingL2Cache
 *     data["__cuCtxResetPersistingL2Cache"] = <intptr_t>__cuCtxResetPersistingL2Cache             # <<<<<<<<<<<<<<
 *     global __cuCtxGetExecAffinity
 *     data["__cuCtxGetExecAffinity"] = <intptr_t>__cuCtxGetExecAffinity
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxResetPersistingL2Cache_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7227
 *     data["__cuCtxResetPersistingL2Cache"] = <intptr_t>__cuCtxResetPersistingL2Cache
 *     global __cuCtxGetExecAffinity
 *     data["__cuCtxGetExecAffinity"] = <intptr_t>__cuCtxGetExecAffinity             # <<<<<<<<<<<<<<
 *     global __cuCtxRecordEvent
 *     data["__cuCtxRecordEvent"] = <intptr_t>__cuCtxRecordEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetExecAffinity_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7229
 *     data["__cuCtxGetExecAffinity"] = <intptr_t>__cuCtxGetExecAffinity
 *     global __cuCtxRecordEvent
 *     data["__cuCtxRecordEvent"] = <intptr_t>__cuCtxRecordEvent             # <<<<<<<<<<<<<<
 *     global __cuCtxWaitEvent
 *     data["__cuCtxWaitEvent"] = <intptr_t>__cuCtxWaitEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxRecordEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7231
 *     data["__cuCtxRecordEvent"] = <intptr_t>__cuCtxRecordEvent
 *     global __cuCtxWaitEvent
 *     data["__cuCtxWaitEvent"] = <intptr_t>__cuCtxWaitEvent             # <<<<<<<<<<<<<<
 *     global __cuCtxAttach
 *     data["__cuCtxAttach"] = <intptr_t>__cuCtxAttach
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxWaitEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7233
 *     data["__cuCtxWaitEvent"] = <intptr_t>__cuCtxWaitEvent
 *     global __cuCtxAttach
 *     data["__cuCtxAttach"] = <intptr_t>__cuCtxAttach             # <<<<<<<<<<<<<<
 *     global __cuCtxDetach
 *     data["__cuCtxDetach"] = <intptr_t>__cuCtxDetach
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxAttach_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7235
 *     data["__cuCtxAttach"] = <intptr_t>__cuCtxAttach
 *     global __cuCtxDetach
 *     data["__cuCtxDetach"] = <intptr_t>__cuCtxDetach             # <<<<<<<<<<<<<<
 *     global __cuCtxGetSharedMemConfig
 *     data["__cuCtxGetSharedMemConfig"] = <intptr_t>__cuCtxGetSharedMemConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxDetach_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7237
 *     data["__cuCtxDetach"] = <intptr_t>__cuCtxDetach
 *     global __cuCtxGetSharedMemConfig
 *     data["__cuCtxGetSharedMemConfig"] = <intptr_t>__cuCtxGetSharedMemConfig             # <<<<<<<<<<<<<<
 *     global __cuCtxSetSharedMemConfig
 *     data["__cuCtxSetSharedMemConfig"] = <intptr_t>__cuCtxSetSharedMemConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetSharedMemConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7237, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7239
 *     data["__cuCtxGetSharedMemConfig"] = <intptr_t>__cuCtxGetSharedMemConfig
 *     global __cuCtxSetSharedMemConfig
 *     data["__cuCtxSetSharedMemConfig"] = <intptr_t>__cuCtxSetSharedMemConfig             # <<<<<<<<<<<<<<
 *     global __cuModuleLoad
 *     data["__cuModuleLoad"] = <intptr_t>__cuModuleLoad
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxSetSharedMemConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7241
 *     data["__cuCtxSetSharedMemConfig"] = <intptr_t>__cuCtxSetSharedMemConfig
 *     global __cuModuleLoad
 *     data["__cuModuleLoad"] = <intptr_t>__cuModuleLoad             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadData
 *     data["__cuModuleLoadData"] = <intptr_t>__cuModuleLoadData
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleLoad_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7241, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7243
 *     data["__cuModuleLoad"] = <intptr_t>__cuModuleLoad
 *     global __cuModuleLoadData
 *     data["__cuModuleLoadData"] = <intptr_t>__cuModuleLoadData             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadDataEx
 *     data["__cuModuleLoadDataEx"] = <intptr_t>__cuModuleLoadDataEx
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleLoadData_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7245
 *     data["__cuModuleLoadData"] = <intptr_t>__cuModuleLoadData
 *     global __cuModuleLoadDataEx
 *     data["__cuModuleLoadDataEx"] = <intptr_t>__cuModuleLoadDataEx             # <<<<<<<<<<<<<<
 *     global __cuModuleLoadFatBinary
 *     data["__cuModuleLoadFatBinary"] = <intptr_t>__cuModuleLoadFatBinary
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleLoadDataEx_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7247
 *     data["__cuModuleLoadDataEx"] = <intptr_t>__cuModuleLoadDataEx
 *     global __cuModuleLoadFatBinary
 *     data["__cuModuleLoadFatBinary"] = <intptr_t>__cuModuleLoadFatBinary             # <<<<<<<<<<<<<<
 *     global __cuModuleUnload
 *     data["__cuModuleUnload"] = <intptr_t>__cuModuleUnload
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleLoadFatBinary_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7247, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7249
 *     data["__cuModuleLoadFatBinary"] = <intptr_t>__cuModuleLoadFatBinary
 *     global __cuModuleUnload
 *     data["__cuModuleUnload"] = <intptr_t>__cuModuleUnload             # <<<<<<<<<<<<<<
 *     global __cuModuleGetLoadingMode
 *     data["__cuModuleGetLoadingMode"] = <intptr_t>__cuModuleGetLoadingMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleUnload_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7251
 *     data["__cuModuleUnload"] = <intptr_t>__cuModuleUnload
 *     global __cuModuleGetLoadingMode
 *     data["__cuModuleGetLoadingMode"] = <intptr_t>__cuModuleGetLoadingMode             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunction
 *     data["__cuModuleGetFunction"] = <intptr_t>__cuModuleGetFunction
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetLoadingMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7253
 *     data["__cuModuleGetLoadingMode"] = <intptr_t>__cuModuleGetLoadingMode
 *     global __cuModuleGetFunction
 *     data["__cuModuleGetFunction"] = <intptr_t>__cuModuleGetFunction             # <<<<<<<<<<<<<<
 *     global __cuModuleGetFunctionCount
 *     data["__cuModuleGetFunctionCount"] = <intptr_t>__cuModuleGetFunctionCount
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetFunction_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7255
 *     data["__cuModuleGetFunction"] = <intptr_t>__cuModuleGetFunction
 *     global __cuModuleGetFunctionCount
 *     data["__cuModuleGetFunctionCount"] = <intptr_t>__cuModuleGetFunctionCount             # <<<<<<<<<<<<<<
 *     global __cuModuleEnumerateFunctions
 *     data["__cuModuleEnumerateFunctions"] = <intptr_t>__cuModuleEnumerateFunctions
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetFunctionCount_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7257
 *     data["__cuModuleGetFunctionCount"] = <intptr_t>__cuModuleGetFunctionCount
 *     global __cuModuleEnumerateFunctions
 *     data["__cuModuleEnumerateFunctions"] = <intptr_t>__cuModuleEnumerateFunctions             # <<<<<<<<<<<<<<
 *     global __cuModuleGetGlobal_v2
 *     data["__cuModuleGetGlobal_v2"] = <intptr_t>__cuModuleGetGlobal_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleEnumerateFunctions_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7259
 *     data["__cuModuleEnumerateFunctions"] = <intptr_t>__cuModuleEnumerateFunctions
 *     global __cuModuleGetGlobal_v2
 *     data["__cuModuleGetGlobal_v2"] = <intptr_t>__cuModuleGetGlobal_v2             # <<<<<<<<<<<<<<
 *     global __cuLinkCreate_v2
 *     data["__cuLinkCreate_v2"] = <intptr_t>__cuLinkCreate_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetGlobal_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7261
 *     data["__cuModuleGetGlobal_v2"] = <intptr_t>__cuModuleGetGlobal_v2
 *     global __cuLinkCreate_v2
 *     data["__cuLinkCreate_v2"] = <intptr_t>__cuLinkCreate_v2             # <<<<<<<<<<<<<<
 *     global __cuLinkAddData_v2
 *     data["__cuLinkAddData_v2"] = <intptr_t>__cuLinkAddData_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLinkCreate_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7263
 *     data["__cuLinkCreate_v2"] = <intptr_t>__cuLinkCreate_v2
 *     global __cuLinkAddData_v2
 *     data["__cuLinkAddData_v2"] = <intptr_t>__cuLinkAddData_v2             # <<<<<<<<<<<<<<
 *     global __cuLinkAddFile_v2
 *     data["__cuLinkAddFile_v2"] = <intptr_t>__cuLinkAddFile_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLinkAddData_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7265
 *     data["__cuLinkAddData_v2"] = <intptr_t>__cuLinkAddData_v2
 *     global __cuLinkAddFile_v2
 *     data["__cuLinkAddFile_v2"] = <intptr_t>__cuLinkAddFile_v2             # <<<<<<<<<<<<<<
 *     global __cuLinkComplete
 *     data["__cuLinkComplete"] = <intptr_t>__cuLinkComplete
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLinkAddFile_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7267
 *     data["__cuLinkAddFile_v2"] = <intptr_t>__cuLinkAddFile_v2
 *     global __cuLinkComplete
 *     data["__cuLinkComplete"] = <intptr_t>__cuLinkComplete             # <<<<<<<<<<<<<<
 *     global __cuLinkDestroy
 *     data["__cuLinkDestroy"] = <intptr_t>__cuLinkDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLinkComplete_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7267, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7269
 *     data["__cuLinkComplete"] = <intptr_t>__cuLinkComplete
 *     global __cuLinkDestroy
 *     data["__cuLinkDestroy"] = <intptr_t>__cuLinkDestroy             # <<<<<<<<<<<<<<
 *     global __cuModuleGetTexRef
 *     data["__cuModuleGetTexRef"] = <intptr_t>__cuModuleGetTexRef
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLinkDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7271
 *     data["__cuLinkDestroy"] = <intptr_t>__cuLinkDestroy
 *     global __cuModuleGetTexRef
 *     data["__cuModuleGetTexRef"] = <intptr_t>__cuModuleGetTexRef             # <<<<<<<<<<<<<<
 *     global __cuModuleGetSurfRef
 *     data["__cuModuleGetSurfRef"] = <intptr_t>__cuModuleGetSurfRef
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetTexRef_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7273
 *     data["__cuModuleGetTexRef"] = <intptr_t>__cuModuleGetTexRef
 *     global __cuModuleGetSurfRef
 *     data["__cuModuleGetSurfRef"] = <intptr_t>__cuModuleGetSurfRef             # <<<<<<<<<<<<<<
 *     global __cuLibraryLoadData
 *     data["__cuLibraryLoadData"] = <intptr_t>__cuLibraryLoadData
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuModuleGetSurfRef_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7275
 *     data["__cuModuleGetSurfRef"] = <intptr_t>__cuModuleGetSurfRef
 *     global __cuLibraryLoadData
 *     data["__cuLibraryLoadData"] = <intptr_t>__cuLibraryLoadData             # <<<<<<<<<<<<<<
 *     global __cuLibraryLoadFromFile
 *     data["__cuLibraryLoadFromFile"] = <intptr_t>__cuLibraryLoadFromFile
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryLoadData_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7277
 *     data["__cuLibraryLoadData"] = <intptr_t>__cuLibraryLoadData
 *     global __cuLibraryLoadFromFile
 *     data["__cuLibraryLoadFromFile"] = <intptr_t>__cuLibraryLoadFromFile             # <<<<<<<<<<<<<<
 *     global __cuLibraryUnload
 *     data["__cuLibraryUnload"] = <intptr_t>__cuLibraryUnload
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryLoadFromFile_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7279
 *     data["__cuLibraryLoadFromFile"] = <intptr_t>__cuLibraryLoadFromFile
 *     global __cuLibraryUnload
 *     data["__cuLibraryUnload"] = <intptr_t>__cuLibraryUnload             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernel
 *     data["__cuLibraryGetKernel"] = <intptr_t>__cuLibraryGetKernel
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryUnload_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7279, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7281
 *     data["__cuLibraryUnload"] = <intptr_t>__cuLibraryUnload
 *     global __cuLibraryGetKernel
 *     data["__cuLibraryGetKernel"] = <intptr_t>__cuLibraryGetKernel             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetKernelCount
 *     data["__cuLibraryGetKernelCount"] = <intptr_t>__cuLibraryGetKernelCount
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetKernel_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7283
 *     data["__cuLibraryGetKernel"] = <intptr_t>__cuLibraryGetKernel
 *     global __cuLibraryGetKernelCount
 *     data["__cuLibraryGetKernelCount"] = <intptr_t>__cuLibraryGetKernelCount             # <<<<<<<<<<<<<<
 *     global __cuLibraryEnumerateKernels
 *     data["__cuLibraryEnumerateKernels"] = <intptr_t>__cuLibraryEnumerateKernels
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetKernelCount_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7285
 *     data["__cuLibraryGetKernelCount"] = <intptr_t>__cuLibraryGetKernelCount
 *     global __cuLibraryEnumerateKernels
 *     data["__cuLibraryEnumerateKernels"] = <intptr_t>__cuLibraryEnumerateKernels             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetModule
 *     data["__cuLibraryGetModule"] = <intptr_t>__cuLibraryGetModule
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryEnumerateKernels_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7287
 *     data["__cuLibraryEnumerateKernels"] = <intptr_t>__cuLibraryEnumerateKernels
 *     global __cuLibraryGetModule
 *     data["__cuLibraryGetModule"] = <intptr_t>__cuLibraryGetModule             # <<<<<<<<<<<<<<
 *     global __cuKernelGetFunction
 *     data["__cuKernelGetFunction"] = <intptr_t>__cuKernelGetFunction
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetModule_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7289
 *     data["__cuLibraryGetModule"] = <intptr_t>__cuLibraryGetModule
 *     global __cuKernelGetFunction
 *     data["__cuKernelGetFunction"] = <intptr_t>__cuKernelGetFunction             # <<<<<<<<<<<<<<
 *     global __cuKernelGetLibrary
 *     data["__cuKernelGetLibrary"] = <intptr_t>__cuKernelGetLibrary
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelGetFunction_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7291
 *     data["__cuKernelGetFunction"] = <intptr_t>__cuKernelGetFunction
 *     global __cuKernelGetLibrary
 *     data["__cuKernelGetLibrary"] = <intptr_t>__cuKernelGetLibrary             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetGlobal
 *     data["__cuLibraryGetGlobal"] = <intptr_t>__cuLibraryGetGlobal
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelGetLibrary_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7293
 *     data["__cuKernelGetLibrary"] = <intptr_t>__cuKernelGetLibrary
 *     global __cuLibraryGetGlobal
 *     data["__cuLibraryGetGlobal"] = <intptr_t>__cuLibraryGetGlobal             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetManaged
 *     data["__cuLibraryGetManaged"] = <intptr_t>__cuLibraryGetManaged
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetGlobal_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7295
 *     data["__cuLibraryGetGlobal"] = <intptr_t>__cuLibraryGetGlobal
 *     global __cuLibraryGetManaged
 *     data["__cuLibraryGetManaged"] = <intptr_t>__cuLibraryGetManaged             # <<<<<<<<<<<<<<
 *     global __cuLibraryGetUnifiedFunction
 *     data["__cuLibraryGetUnifiedFunction"] = <intptr_t>__cuLibraryGetUnifiedFunction
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetManaged_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7295, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7297
 *     data["__cuLibraryGetManaged"] = <intptr_t>__cuLibraryGetManaged
 *     global __cuLibraryGetUnifiedFunction
 *     data["__cuLibraryGetUnifiedFunction"] = <intptr_t>__cuLibraryGetUnifiedFunction             # <<<<<<<<<<<<<<
 *     global __cuKernelGetAttribute
 *     data["__cuKernelGetAttribute"] = <intptr_t>__cuKernelGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLibraryGetUnifiedFunction_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7299
 *     data["__cuLibraryGetUnifiedFunction"] = <intptr_t>__cuLibraryGetUnifiedFunction
 *     global __cuKernelGetAttribute
 *     data["__cuKernelGetAttribute"] = <intptr_t>__cuKernelGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuKernelSetAttribute
 *     data["__cuKernelSetAttribute"] = <intptr_t>__cuKernelSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7301
 *     data["__cuKernelGetAttribute"] = <intptr_t>__cuKernelGetAttribute
 *     global __cuKernelSetAttribute
 *     data["__cuKernelSetAttribute"] = <intptr_t>__cuKernelSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuKernelSetCacheConfig
 *     data["__cuKernelSetCacheConfig"] = <intptr_t>__cuKernelSetCacheConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7303
 *     data["__cuKernelSetAttribute"] = <intptr_t>__cuKernelSetAttribute
 *     global __cuKernelSetCacheConfig
 *     data["__cuKernelSetCacheConfig"] = <intptr_t>__cuKernelSetCacheConfig             # <<<<<<<<<<<<<<
 *     global __cuKernelGetName
 *     data["__cuKernelGetName"] = <intptr_t>__cuKernelGetName
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelSetCacheConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7305
 *     data["__cuKernelSetCacheConfig"] = <intptr_t>__cuKernelSetCacheConfig
 *     global __cuKernelGetName
 *     data["__cuKernelGetName"] = <intptr_t>__cuKernelGetName             # <<<<<<<<<<<<<<
 *     global __cuKernelGetParamInfo
 *     data["__cuKernelGetParamInfo"] = <intptr_t>__cuKernelGetParamInfo
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelGetName_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7305, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7307
 *     data["__cuKernelGetName"] = <intptr_t>__cuKernelGetName
 *     global __cuKernelGetParamInfo
 *     data["__cuKernelGetParamInfo"] = <intptr_t>__cuKernelGetParamInfo             # <<<<<<<<<<<<<<
 *     global __cuMemGetInfo_v2
 *     data["__cuMemGetInfo_v2"] = <intptr_t>__cuMemGetInfo_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuKernelGetParamInfo_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7309
 *     data["__cuKernelGetParamInfo"] = <intptr_t>__cuKernelGetParamInfo
 *     global __cuMemGetInfo_v2
 *     data["__cuMemGetInfo_v2"] = <intptr_t>__cuMemGetInfo_v2             # <<<<<<<<<<<<<<
 *     global __cuMemAlloc_v2
 *     data["__cuMemAlloc_v2"] = <intptr_t>__cuMemAlloc_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetInfo_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7311
 *     data["__cuMemGetInfo_v2"] = <intptr_t>__cuMemGetInfo_v2
 *     global __cuMemAlloc_v2
 *     data["__cuMemAlloc_v2"] = <intptr_t>__cuMemAlloc_v2             # <<<<<<<<<<<<<<
 *     global __cuMemAllocPitch_v2
 *     data["__cuMemAllocPitch_v2"] = <intptr_t>__cuMemAllocPitch_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAlloc_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7313
 *     data["__cuMemAlloc_v2"] = <intptr_t>__cuMemAlloc_v2
 *     global __cuMemAllocPitch_v2
 *     data["__cuMemAllocPitch_v2"] = <intptr_t>__cuMemAllocPitch_v2             # <<<<<<<<<<<<<<
 *     global __cuMemFree_v2
 *     data["__cuMemFree_v2"] = <intptr_t>__cuMemFree_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAllocPitch_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7315
 *     data["__cuMemAllocPitch_v2"] = <intptr_t>__cuMemAllocPitch_v2
 *     global __cuMemFree_v2
 *     data["__cuMemFree_v2"] = <intptr_t>__cuMemFree_v2             # <<<<<<<<<<<<<<
 *     global __cuMemGetAddressRange_v2
 *     data["__cuMemGetAddressRange_v2"] = <intptr_t>__cuMemGetAddressRange_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemFree_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7317
 *     data["__cuMemFree_v2"] = <intptr_t>__cuMemFree_v2
 *     global __cuMemGetAddressRange_v2
 *     data["__cuMemGetAddressRange_v2"] = <intptr_t>__cuMemGetAddressRange_v2             # <<<<<<<<<<<<<<
 *     global __cuMemAllocHost_v2
 *     data["__cuMemAllocHost_v2"] = <intptr_t>__cuMemAllocHost_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetAddressRange_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7317, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7319
 *     data["__cuMemGetAddressRange_v2"] = <intptr_t>__cuMemGetAddressRange_v2
 *     global __cuMemAllocHost_v2
 *     data["__cuMemAllocHost_v2"] = <intptr_t>__cuMemAllocHost_v2             # <<<<<<<<<<<<<<
 *     global __cuMemFreeHost
 *     data["__cuMemFreeHost"] = <intptr_t>__cuMemFreeHost
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAllocHost_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7319, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7321
 *     data["__cuMemAllocHost_v2"] = <intptr_t>__cuMemAllocHost_v2
 *     global __cuMemFreeHost
 *     data["__cuMemFreeHost"] = <intptr_t>__cuMemFreeHost             # <<<<<<<<<<<<<<
 *     global __cuMemHostAlloc
 *     data["__cuMemHostAlloc"] = <intptr_t>__cuMemHostAlloc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemFreeHost_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7321, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7323
 *     data["__cuMemFreeHost"] = <intptr_t>__cuMemFreeHost
 *     global __cuMemHostAlloc
 *     data["__cuMemHostAlloc"] = <intptr_t>__cuMemHostAlloc             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetDevicePointer_v2
 *     data["__cuMemHostGetDevicePointer_v2"] = <intptr_t>__cuMemHostGetDevicePointer_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemHostAlloc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7325
 *     data["__cuMemHostAlloc"] = <intptr_t>__cuMemHostAlloc
 *     global __cuMemHostGetDevicePointer_v2
 *     data["__cuMemHostGetDevicePointer_v2"] = <intptr_t>__cuMemHostGetDevicePointer_v2             # <<<<<<<<<<<<<<
 *     global __cuMemHostGetFlags
 *     data["__cuMemHostGetFlags"] = <intptr_t>__cuMemHostGetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemHostGetDevicePointer_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7327
 *     data["__cuMemHostGetDevicePointer_v2"] = <intptr_t>__cuMemHostGetDevicePointer_v2
 *     global __cuMemHostGetFlags
 *     data["__cuMemHostGetFlags"] = <intptr_t>__cuMemHostGetFlags             # <<<<<<<<<<<<<<
 *     global __cuMemAllocManaged
 *     data["__cuMemAllocManaged"] = <intptr_t>__cuMemAllocManaged
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemHostGetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7327, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7329
 *     data["__cuMemHostGetFlags"] = <intptr_t>__cuMemHostGetFlags
 *     global __cuMemAllocManaged
 *     data["__cuMemAllocManaged"] = <intptr_t>__cuMemAllocManaged             # <<<<<<<<<<<<<<
 *     global __cuDeviceRegisterAsyncNotification
 *     data["__cuDeviceRegisterAsyncNotification"] = <intptr_t>__cuDeviceRegisterAsyncNotification
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAllocManaged_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7331
 *     data["__cuMemAllocManaged"] = <intptr_t>__cuMemAllocManaged
 *     global __cuDeviceRegisterAsyncNotification
 *     data["__cuDeviceRegisterAsyncNotification"] = <intptr_t>__cuDeviceRegisterAsyncNotification             # <<<<<<<<<<<<<<
 *     global __cuDeviceUnregisterAsyncNotification
 *     data["__cuDeviceUnregisterAsyncNotification"] = <intptr_t>__cuDeviceUnregisterAsyncNotification
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceRegisterAsyncNotificat, __pyx_t_3) < 0))) __PYX_ERR(0, 7331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7333
 *     data["__cuDeviceRegisterAsyncNotification"] = <intptr_t>__cuDeviceRegisterAsyncNotification
 *     global __cuDeviceUnregisterAsyncNotification
 *     data["__cuDeviceUnregisterAsyncNotification"] = <intptr_t>__cuDeviceUnregisterAsyncNotification             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetByPCIBusId
 *     data["__cuDeviceGetByPCIBusId"] = <intptr_t>__cuDeviceGetByPCIBusId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceUnregisterAsyncNotific, __pyx_t_3) < 0))) __PYX_ERR(0, 7333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7335
 *     data["__cuDeviceUnregisterAsyncNotification"] = <intptr_t>__cuDeviceUnregisterAsyncNotification
 *     global __cuDeviceGetByPCIBusId
 *     data["__cuDeviceGetByPCIBusId"] = <intptr_t>__cuDeviceGetByPCIBusId             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetPCIBusId
 *     data["__cuDeviceGetPCIBusId"] = <intptr_t>__cuDeviceGetPCIBusId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetByPCIBusId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7337
 *     data["__cuDeviceGetByPCIBusId"] = <intptr_t>__cuDeviceGetByPCIBusId
 *     global __cuDeviceGetPCIBusId
 *     data["__cuDeviceGetPCIBusId"] = <intptr_t>__cuDeviceGetPCIBusId             # <<<<<<<<<<<<<<
 *     global __cuIpcGetEventHandle
 *     data["__cuIpcGetEventHandle"] = <intptr_t>__cuIpcGetEventHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetPCIBusId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7337, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7339
 *     data["__cuDeviceGetPCIBusId"] = <intptr_t>__cuDeviceGetPCIBusId
 *     global __cuIpcGetEventHandle
 *     data["__cuIpcGetEventHandle"] = <intptr_t>__cuIpcGetEventHandle             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenEventHandle
 *     data["__cuIpcOpenEventHandle"] = <intptr_t>__cuIpcOpenEventHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuIpcGetEventHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7339, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7341
 *     data["__cuIpcGetEventHandle"] = <intptr_t>__cuIpcGetEventHandle
 *     global __cuIpcOpenEventHandle
 *     data["__cuIpcOpenEventHandle"] = <intptr_t>__cuIpcOpenEventHandle             # <<<<<<<<<<<<<<
 *     global __cuIpcGetMemHandle
 *     data["__cuIpcGetMemHandle"] = <intptr_t>__cuIpcGetMemHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuIpcOpenEventHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7343
 *     data["__cuIpcOpenEventHandle"] = <intptr_t>__cuIpcOpenEventHandle
 *     global __cuIpcGetMemHandle
 *     data["__cuIpcGetMemHandle"] = <intptr_t>__cuIpcGetMemHandle             # <<<<<<<<<<<<<<
 *     global __cuIpcOpenMemHandle_v2
 *     data["__cuIpcOpenMemHandle_v2"] = <intptr_t>__cuIpcOpenMemHandle_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuIpcGetMemHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7343, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7345
 *     data["__cuIpcGetMemHandle"] = <intptr_t>__cuIpcGetMemHandle
 *     global __cuIpcOpenMemHandle_v2
 *     data["__cuIpcOpenMemHandle_v2"] = <intptr_t>__cuIpcOpenMemHandle_v2             # <<<<<<<<<<<<<<
 *     global __cuIpcCloseMemHandle
 *     data["__cuIpcCloseMemHandle"] = <intptr_t>__cuIpcCloseMemHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuIpcOpenMemHandle_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7347
 *     data["__cuIpcOpenMemHandle_v2"] = <intptr_t>__cuIpcOpenMemHandle_v2
 *     global __cuIpcCloseMemHandle
 *     data["__cuIpcCloseMemHandle"] = <intptr_t>__cuIpcCloseMemHandle             # <<<<<<<<<<<<<<
 *     global __cuMemHostRegister_v2
 *     data["__cuMemHostRegister_v2"] = <intptr_t>__cuMemHostRegister_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuIpcCloseMemHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7349
 *     data["__cuIpcCloseMemHandle"] = <intptr_t>__cuIpcCloseMemHandle
 *     global __cuMemHostRegister_v2
 *     data["__cuMemHostRegister_v2"] = <intptr_t>__cuMemHostRegister_v2             # <<<<<<<<<<<<<<
 *     global __cuMemHostUnregister
 *     data["__cuMemHostUnregister"] = <intptr_t>__cuMemHostUnregister
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemHostRegister_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7351
 *     data["__cuMemHostRegister_v2"] = <intptr_t>__cuMemHostRegister_v2
 *     global __cuMemHostUnregister
 *     data["__cuMemHostUnregister"] = <intptr_t>__cuMemHostUnregister             # <<<<<<<<<<<<<<
 *     global __cuMemcpy
 *     data["__cuMemcpy"] = <intptr_t>__cuMemcpy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemHostUnregister_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7351, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7353
 *     data["__cuMemHostUnregister"] = <intptr_t>__cuMemHostUnregister
 *     global __cuMemcpy
 *     data["__cuMemcpy"] = <intptr_t>__cuMemcpy             # <<<<<<<<<<<<<<
 *     global __cuMemcpyPeer
 *     data["__cuMemcpyPeer"] = <intptr_t>__cuMemcpyPeer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7355
 *     data["__cuMemcpy"] = <intptr_t>__cuMemcpy
 *     global __cuMemcpyPeer
 *     data["__cuMemcpyPeer"] = <intptr_t>__cuMemcpyPeer             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoD_v2
 *     data["__cuMemcpyHtoD_v2"] = <intptr_t>__cuMemcpyHtoD_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyPeer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7355, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7357
 *     data["__cuMemcpyPeer"] = <intptr_t>__cuMemcpyPeer
 *     global __cuMemcpyHtoD_v2
 *     data["__cuMemcpyHtoD_v2"] = <intptr_t>__cuMemcpyHtoD_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoH_v2
 *     data["__cuMemcpyDtoH_v2"] = <intptr_t>__cuMemcpyDtoH_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyHtoD_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7359
 *     data["__cuMemcpyHtoD_v2"] = <intptr_t>__cuMemcpyHtoD_v2
 *     global __cuMemcpyDtoH_v2
 *     data["__cuMemcpyDtoH_v2"] = <intptr_t>__cuMemcpyDtoH_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoD_v2
 *     data["__cuMemcpyDtoD_v2"] = <intptr_t>__cuMemcpyDtoD_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyDtoH_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7361
 *     data["__cuMemcpyDtoH_v2"] = <intptr_t>__cuMemcpyDtoH_v2
 *     global __cuMemcpyDtoD_v2
 *     data["__cuMemcpyDtoD_v2"] = <intptr_t>__cuMemcpyDtoD_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoA_v2
 *     data["__cuMemcpyDtoA_v2"] = <intptr_t>__cuMemcpyDtoA_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyDtoD_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7361, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7363
 *     data["__cuMemcpyDtoD_v2"] = <intptr_t>__cuMemcpyDtoD_v2
 *     global __cuMemcpyDtoA_v2
 *     data["__cuMemcpyDtoA_v2"] = <intptr_t>__cuMemcpyDtoA_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoD_v2
 *     data["__cuMemcpyAtoD_v2"] = <intptr_t>__cuMemcpyAtoD_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyDtoA_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7365
 *     data["__cuMemcpyDtoA_v2"] = <intptr_t>__cuMemcpyDtoA_v2
 *     global __cuMemcpyAtoD_v2
 *     data["__cuMemcpyAtoD_v2"] = <intptr_t>__cuMemcpyAtoD_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoA_v2
 *     data["__cuMemcpyHtoA_v2"] = <intptr_t>__cuMemcpyHtoA_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyAtoD_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7367
 *     data["__cuMemcpyAtoD_v2"] = <intptr_t>__cuMemcpyAtoD_v2
 *     global __cuMemcpyHtoA_v2
 *     data["__cuMemcpyHtoA_v2"] = <intptr_t>__cuMemcpyHtoA_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoH_v2
 *     data["__cuMemcpyAtoH_v2"] = <intptr_t>__cuMemcpyAtoH_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyHtoA_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7369
 *     data["__cuMemcpyHtoA_v2"] = <intptr_t>__cuMemcpyHtoA_v2
 *     global __cuMemcpyAtoH_v2
 *     data["__cuMemcpyAtoH_v2"] = <intptr_t>__cuMemcpyAtoH_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoA_v2
 *     data["__cuMemcpyAtoA_v2"] = <intptr_t>__cuMemcpyAtoA_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyAtoH_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7371
 *     data["__cuMemcpyAtoH_v2"] = <intptr_t>__cuMemcpyAtoH_v2
 *     global __cuMemcpyAtoA_v2
 *     data["__cuMemcpyAtoA_v2"] = <intptr_t>__cuMemcpyAtoA_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2D_v2
 *     data["__cuMemcpy2D_v2"] = <intptr_t>__cuMemcpy2D_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyAtoA_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7373
 *     data["__cuMemcpyAtoA_v2"] = <intptr_t>__cuMemcpyAtoA_v2
 *     global __cuMemcpy2D_v2
 *     data["__cuMemcpy2D_v2"] = <intptr_t>__cuMemcpy2D_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DUnaligned_v2
 *     data["__cuMemcpy2DUnaligned_v2"] = <intptr_t>__cuMemcpy2DUnaligned_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy2D_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7375
 *     data["__cuMemcpy2D_v2"] = <intptr_t>__cuMemcpy2D_v2
 *     global __cuMemcpy2DUnaligned_v2
 *     data["__cuMemcpy2DUnaligned_v2"] = <intptr_t>__cuMemcpy2DUnaligned_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3D_v2
 *     data["__cuMemcpy3D_v2"] = <intptr_t>__cuMemcpy3D_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy2DUnaligned_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7375, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7377
 *     data["__cuMemcpy2DUnaligned_v2"] = <intptr_t>__cuMemcpy2DUnaligned_v2
 *     global __cuMemcpy3D_v2
 *     data["__cuMemcpy3D_v2"] = <intptr_t>__cuMemcpy3D_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeer
 *     data["__cuMemcpy3DPeer"] = <intptr_t>__cuMemcpy3DPeer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy3D_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7379
 *     data["__cuMemcpy3D_v2"] = <intptr_t>__cuMemcpy3D_v2
 *     global __cuMemcpy3DPeer
 *     data["__cuMemcpy3DPeer"] = <intptr_t>__cuMemcpy3DPeer             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAsync
 *     data["__cuMemcpyAsync"] = <intptr_t>__cuMemcpyAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy3DPeer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7379, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7381
 *     data["__cuMemcpy3DPeer"] = <intptr_t>__cuMemcpy3DPeer
 *     global __cuMemcpyAsync
 *     data["__cuMemcpyAsync"] = <intptr_t>__cuMemcpyAsync             # <<<<<<<<<<<<<<
 *     global __cuMemcpyPeerAsync
 *     data["__cuMemcpyPeerAsync"] = <intptr_t>__cuMemcpyPeerAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7381, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7383
 *     data["__cuMemcpyAsync"] = <intptr_t>__cuMemcpyAsync
 *     global __cuMemcpyPeerAsync
 *     data["__cuMemcpyPeerAsync"] = <intptr_t>__cuMemcpyPeerAsync             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoDAsync_v2
 *     data["__cuMemcpyHtoDAsync_v2"] = <intptr_t>__cuMemcpyHtoDAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyPeerAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7383, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7385
 *     data["__cuMemcpyPeerAsync"] = <intptr_t>__cuMemcpyPeerAsync
 *     global __cuMemcpyHtoDAsync_v2
 *     data["__cuMemcpyHtoDAsync_v2"] = <intptr_t>__cuMemcpyHtoDAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoHAsync_v2
 *     data["__cuMemcpyDtoHAsync_v2"] = <intptr_t>__cuMemcpyDtoHAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyHtoDAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7385, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7387
 *     data["__cuMemcpyHtoDAsync_v2"] = <intptr_t>__cuMemcpyHtoDAsync_v2
 *     global __cuMemcpyDtoHAsync_v2
 *     data["__cuMemcpyDtoHAsync_v2"] = <intptr_t>__cuMemcpyDtoHAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyDtoDAsync_v2
 *     data["__cuMemcpyDtoDAsync_v2"] = <intptr_t>__cuMemcpyDtoDAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyDtoHAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7389
 *     data["__cuMemcpyDtoHAsync_v2"] = <intptr_t>__cuMemcpyDtoHAsync_v2
 *     global __cuMemcpyDtoDAsync_v2
 *     data["__cuMemcpyDtoDAsync_v2"] = <intptr_t>__cuMemcpyDtoDAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyHtoAAsync_v2
 *     data["__cuMemcpyHtoAAsync_v2"] = <intptr_t>__cuMemcpyHtoAAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyDtoDAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7389, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7391
 *     data["__cuMemcpyDtoDAsync_v2"] = <intptr_t>__cuMemcpyDtoDAsync_v2
 *     global __cuMemcpyHtoAAsync_v2
 *     data["__cuMemcpyHtoAAsync_v2"] = <intptr_t>__cuMemcpyHtoAAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpyAtoHAsync_v2
 *     data["__cuMemcpyAtoHAsync_v2"] = <intptr_t>__cuMemcpyAtoHAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyHtoAAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7393
 *     data["__cuMemcpyHtoAAsync_v2"] = <intptr_t>__cuMemcpyHtoAAsync_v2
 *     global __cuMemcpyAtoHAsync_v2
 *     data["__cuMemcpyAtoHAsync_v2"] = <intptr_t>__cuMemcpyAtoHAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy2DAsync_v2
 *     data["__cuMemcpy2DAsync_v2"] = <intptr_t>__cuMemcpy2DAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyAtoHAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7395
 *     data["__cuMemcpyAtoHAsync_v2"] = <intptr_t>__cuMemcpyAtoHAsync_v2
 *     global __cuMemcpy2DAsync_v2
 *     data["__cuMemcpy2DAsync_v2"] = <intptr_t>__cuMemcpy2DAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DAsync_v2
 *     data["__cuMemcpy3DAsync_v2"] = <intptr_t>__cuMemcpy3DAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy2DAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7397
 *     data["__cuMemcpy2DAsync_v2"] = <intptr_t>__cuMemcpy2DAsync_v2
 *     global __cuMemcpy3DAsync_v2
 *     data["__cuMemcpy3DAsync_v2"] = <intptr_t>__cuMemcpy3DAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DPeerAsync
 *     data["__cuMemcpy3DPeerAsync"] = <intptr_t>__cuMemcpy3DPeerAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy3DAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7397, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7399
 *     data["__cuMemcpy3DAsync_v2"] = <intptr_t>__cuMemcpy3DAsync_v2
 *     global __cuMemcpy3DPeerAsync
 *     data["__cuMemcpy3DPeerAsync"] = <intptr_t>__cuMemcpy3DPeerAsync             # <<<<<<<<<<<<<<
 *     global __cuMemcpyBatchAsync_v2
 *     data["__cuMemcpyBatchAsync_v2"] = <intptr_t>__cuMemcpyBatchAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy3DPeerAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7401
 *     data["__cuMemcpy3DPeerAsync"] = <intptr_t>__cuMemcpy3DPeerAsync
 *     global __cuMemcpyBatchAsync_v2
 *     data["__cuMemcpyBatchAsync_v2"] = <intptr_t>__cuMemcpyBatchAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemcpy3DBatchAsync_v2
 *     data["__cuMemcpy3DBatchAsync_v2"] = <intptr_t>__cuMemcpy3DBatchAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpyBatchAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7403
 *     data["__cuMemcpyBatchAsync_v2"] = <intptr_t>__cuMemcpyBatchAsync_v2
 *     global __cuMemcpy3DBatchAsync_v2
 *     data["__cuMemcpy3DBatchAsync_v2"] = <intptr_t>__cuMemcpy3DBatchAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8_v2
 *     data["__cuMemsetD8_v2"] = <intptr_t>__cuMemsetD8_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemcpy3DBatchAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7405
 *     data["__cuMemcpy3DBatchAsync_v2"] = <intptr_t>__cuMemcpy3DBatchAsync_v2
 *     global __cuMemsetD8_v2
 *     data["__cuMemsetD8_v2"] = <intptr_t>__cuMemsetD8_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16_v2
 *     data["__cuMemsetD16_v2"] = <intptr_t>__cuMemsetD16_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD8_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7405, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7407
 *     data["__cuMemsetD8_v2"] = <intptr_t>__cuMemsetD8_v2
 *     global __cuMemsetD16_v2
 *     data["__cuMemsetD16_v2"] = <intptr_t>__cuMemsetD16_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32_v2
 *     data["__cuMemsetD32_v2"] = <intptr_t>__cuMemsetD32_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD16_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7407, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7409
 *     data["__cuMemsetD16_v2"] = <intptr_t>__cuMemsetD16_v2
 *     global __cuMemsetD32_v2
 *     data["__cuMemsetD32_v2"] = <intptr_t>__cuMemsetD32_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D8_v2
 *     data["__cuMemsetD2D8_v2"] = <intptr_t>__cuMemsetD2D8_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD32_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7409, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7411
 *     data["__cuMemsetD32_v2"] = <intptr_t>__cuMemsetD32_v2
 *     global __cuMemsetD2D8_v2
 *     data["__cuMemsetD2D8_v2"] = <intptr_t>__cuMemsetD2D8_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D16_v2
 *     data["__cuMemsetD2D16_v2"] = <intptr_t>__cuMemsetD2D16_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D8_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7413
 *     data["__cuMemsetD2D8_v2"] = <intptr_t>__cuMemsetD2D8_v2
 *     global __cuMemsetD2D16_v2
 *     data["__cuMemsetD2D16_v2"] = <intptr_t>__cuMemsetD2D16_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D32_v2
 *     data["__cuMemsetD2D32_v2"] = <intptr_t>__cuMemsetD2D32_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D16_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7413, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7415
 *     data["__cuMemsetD2D16_v2"] = <intptr_t>__cuMemsetD2D16_v2
 *     global __cuMemsetD2D32_v2
 *     data["__cuMemsetD2D32_v2"] = <intptr_t>__cuMemsetD2D32_v2             # <<<<<<<<<<<<<<
 *     global __cuMemsetD8Async
 *     data["__cuMemsetD8Async"] = <intptr_t>__cuMemsetD8Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D32_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7415, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7417
 *     data["__cuMemsetD2D32_v2"] = <intptr_t>__cuMemsetD2D32_v2
 *     global __cuMemsetD8Async
 *     data["__cuMemsetD8Async"] = <intptr_t>__cuMemsetD8Async             # <<<<<<<<<<<<<<
 *     global __cuMemsetD16Async
 *     data["__cuMemsetD16Async"] = <intptr_t>__cuMemsetD16Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD8Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7417, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7419
 *     data["__cuMemsetD8Async"] = <intptr_t>__cuMemsetD8Async
 *     global __cuMemsetD16Async
 *     data["__cuMemsetD16Async"] = <intptr_t>__cuMemsetD16Async             # <<<<<<<<<<<<<<
 *     global __cuMemsetD32Async
 *     data["__cuMemsetD32Async"] = <intptr_t>__cuMemsetD32Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD16Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7421
 *     data["__cuMemsetD16Async"] = <intptr_t>__cuMemsetD16Async
 *     global __cuMemsetD32Async
 *     data["__cuMemsetD32Async"] = <intptr_t>__cuMemsetD32Async             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D8Async
 *     data["__cuMemsetD2D8Async"] = <intptr_t>__cuMemsetD2D8Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD32Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7421, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7423
 *     data["__cuMemsetD32Async"] = <intptr_t>__cuMemsetD32Async
 *     global __cuMemsetD2D8Async
 *     data["__cuMemsetD2D8Async"] = <intptr_t>__cuMemsetD2D8Async             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D16Async
 *     data["__cuMemsetD2D16Async"] = <intptr_t>__cuMemsetD2D16Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D8Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7425
 *     data["__cuMemsetD2D8Async"] = <intptr_t>__cuMemsetD2D8Async
 *     global __cuMemsetD2D16Async
 *     data["__cuMemsetD2D16Async"] = <intptr_t>__cuMemsetD2D16Async             # <<<<<<<<<<<<<<
 *     global __cuMemsetD2D32Async
 *     data["__cuMemsetD2D32Async"] = <intptr_t>__cuMemsetD2D32Async
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D16Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7427
 *     data["__cuMemsetD2D16Async"] = <intptr_t>__cuMemsetD2D16Async
 *     global __cuMemsetD2D32Async
 *     data["__cuMemsetD2D32Async"] = <intptr_t>__cuMemsetD2D32Async             # <<<<<<<<<<<<<<
 *     global __cuArrayCreate_v2
 *     data["__cuArrayCreate_v2"] = <intptr_t>__cuArrayCreate_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemsetD2D32Async_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7427, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7429
 *     data["__cuMemsetD2D32Async"] = <intptr_t>__cuMemsetD2D32Async
 *     global __cuArrayCreate_v2
 *     data["__cuArrayCreate_v2"] = <intptr_t>__cuArrayCreate_v2             # <<<<<<<<<<<<<<
 *     global __cuArrayGetDescriptor_v2
 *     data["__cuArrayGetDescriptor_v2"] = <intptr_t>__cuArrayGetDescriptor_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayCreate_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7429, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7431
 *     data["__cuArrayCreate_v2"] = <intptr_t>__cuArrayCreate_v2
 *     global __cuArrayGetDescriptor_v2
 *     data["__cuArrayGetDescriptor_v2"] = <intptr_t>__cuArrayGetDescriptor_v2             # <<<<<<<<<<<<<<
 *     global __cuArrayGetSparseProperties
 *     data["__cuArrayGetSparseProperties"] = <intptr_t>__cuArrayGetSparseProperties
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayGetDescriptor_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7431, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7433
 *     data["__cuArrayGetDescriptor_v2"] = <intptr_t>__cuArrayGetDescriptor_v2
 *     global __cuArrayGetSparseProperties
 *     data["__cuArrayGetSparseProperties"] = <intptr_t>__cuArrayGetSparseProperties             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetSparseProperties
 *     data["__cuMipmappedArrayGetSparseProperties"] = <intptr_t>__cuMipmappedArrayGetSparseProperties
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayGetSparseProperties_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7433, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7435
 *     data["__cuArrayGetSparseProperties"] = <intptr_t>__cuArrayGetSparseProperties
 *     global __cuMipmappedArrayGetSparseProperties
 *     data["__cuMipmappedArrayGetSparseProperties"] = <intptr_t>__cuMipmappedArrayGetSparseProperties             # <<<<<<<<<<<<<<
 *     global __cuArrayGetMemoryRequirements
 *     data["__cuArrayGetMemoryRequirements"] = <intptr_t>__cuArrayGetMemoryRequirements
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMipmappedArrayGetSparsePrope, __pyx_t_3) < 0))) __PYX_ERR(0, 7435, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7437
 *     data["__cuMipmappedArrayGetSparseProperties"] = <intptr_t>__cuMipmappedArrayGetSparseProperties
 *     global __cuArrayGetMemoryRequirements
 *     data["__cuArrayGetMemoryRequirements"] = <intptr_t>__cuArrayGetMemoryRequirements             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     data["__cuMipmappedArrayGetMemoryRequirements"] = <intptr_t>__cuMipmappedArrayGetMemoryRequirements
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayGetMemoryRequirements_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7439
 *     data["__cuArrayGetMemoryRequirements"] = <intptr_t>__cuArrayGetMemoryRequirements
 *     global __cuMipmappedArrayGetMemoryRequirements
 *     data["__cuMipmappedArrayGetMemoryRequirements"] = <intptr_t>__cuMipmappedArrayGetMemoryRequirements             # <<<<<<<<<<<<<<
 *     global __cuArrayGetPlane
 *     data["__cuArrayGetPlane"] = <intptr_t>__cuArrayGetPlane
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMipmappedArrayGetMemoryRequi, __pyx_t_3) < 0))) __PYX_ERR(0, 7439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7441
 *     data["__cuMipmappedArrayGetMemoryRequirements"] = <intptr_t>__cuMipmappedArrayGetMemoryRequirements
 *     global __cuArrayGetPlane
 *     data["__cuArrayGetPlane"] = <intptr_t>__cuArrayGetPlane             # <<<<<<<<<<<<<<
 *     global __cuArrayDestroy
 *     data["__cuArrayDestroy"] = <intptr_t>__cuArrayDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayGetPlane_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7443
 *     data["__cuArrayGetPlane"] = <intptr_t>__cuArrayGetPlane
 *     global __cuArrayDestroy
 *     data["__cuArrayDestroy"] = <intptr_t>__cuArrayDestroy             # <<<<<<<<<<<<<<
 *     global __cuArray3DCreate_v2
 *     data["__cuArray3DCreate_v2"] = <intptr_t>__cuArray3DCreate_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArrayDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7443, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7445
 *     data["__cuArrayDestroy"] = <intptr_t>__cuArrayDestroy
 *     global __cuArray3DCreate_v2
 *     data["__cuArray3DCreate_v2"] = <intptr_t>__cuArray3DCreate_v2             # <<<<<<<<<<<<<<
 *     global __cuArray3DGetDescriptor_v2
 *     data["__cuArray3DGetDescriptor_v2"] = <intptr_t>__cuArray3DGetDescriptor_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArray3DCreate_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7445, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7447
 *     data["__cuArray3DCreate_v2"] = <intptr_t>__cuArray3DCreate_v2
 *     global __cuArray3DGetDescriptor_v2
 *     data["__cuArray3DGetDescriptor_v2"] = <intptr_t>__cuArray3DGetDescriptor_v2             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayCreate
 *     data["__cuMipmappedArrayCreate"] = <intptr_t>__cuMipmappedArrayCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuArray3DGetDescriptor_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7447, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7449
 *     data["__cuArray3DGetDescriptor_v2"] = <intptr_t>__cuArray3DGetDescriptor_v2
 *     global __cuMipmappedArrayCreate
 *     data["__cuMipmappedArrayCreate"] = <intptr_t>__cuMipmappedArrayCreate             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayGetLevel
 *     data["__cuMipmappedArrayGetLevel"] = <intptr_t>__cuMipmappedArrayGetLevel
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMipmappedArrayCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7451
 *     data["__cuMipmappedArrayCreate"] = <intptr_t>__cuMipmappedArrayCreate
 *     global __cuMipmappedArrayGetLevel
 *     data["__cuMipmappedArrayGetLevel"] = <intptr_t>__cuMipmappedArrayGetLevel             # <<<<<<<<<<<<<<
 *     global __cuMipmappedArrayDestroy
 *     data["__cuMipmappedArrayDestroy"] = <intptr_t>__cuMipmappedArrayDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMipmappedArrayGetLevel_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7451, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7453
 *     data["__cuMipmappedArrayGetLevel"] = <intptr_t>__cuMipmappedArrayGetLevel
 *     global __cuMipmappedArrayDestroy
 *     data["__cuMipmappedArrayDestroy"] = <intptr_t>__cuMipmappedArrayDestroy             # <<<<<<<<<<<<<<
 *     global __cuMemGetHandleForAddressRange
 *     data["__cuMemGetHandleForAddressRange"] = <intptr_t>__cuMemGetHandleForAddressRange
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMipmappedArrayDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7455
 *     data["__cuMipmappedArrayDestroy"] = <intptr_t>__cuMipmappedArrayDestroy
 *     global __cuMemGetHandleForAddressRange
 *     data["__cuMemGetHandleForAddressRange"] = <intptr_t>__cuMemGetHandleForAddressRange             # <<<<<<<<<<<<<<
 *     global __cuMemBatchDecompressAsync
 *     data["__cuMemBatchDecompressAsync"] = <intptr_t>__cuMemBatchDecompressAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetHandleForAddressRange_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7455, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7457
 *     data["__cuMemGetHandleForAddressRange"] = <intptr_t>__cuMemGetHandleForAddressRange
 *     global __cuMemBatchDecompressAsync
 *     data["__cuMemBatchDecompressAsync"] = <intptr_t>__cuMemBatchDecompressAsync             # <<<<<<<<<<<<<<
 *     global __cuMemAddressReserve
 *     data["__cuMemAddressReserve"] = <intptr_t>__cuMemAddressReserve
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemBatchDecompressAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7459
 *     data["__cuMemBatchDecompressAsync"] = <intptr_t>__cuMemBatchDecompressAsync
 *     global __cuMemAddressReserve
 *     data["__cuMemAddressReserve"] = <intptr_t>__cuMemAddressReserve             # <<<<<<<<<<<<<<
 *     global __cuMemAddressFree
 *     data["__cuMemAddressFree"] = <intptr_t>__cuMemAddressFree
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAddressReserve_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7461
 *     data["__cuMemAddressReserve"] = <intptr_t>__cuMemAddressReserve
 *     global __cuMemAddressFree
 *     data["__cuMemAddressFree"] = <intptr_t>__cuMemAddressFree             # <<<<<<<<<<<<<<
 *     global __cuMemCreate
 *     data["__cuMemCreate"] = <intptr_t>__cuMemCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAddressFree_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7463
 *     data["__cuMemAddressFree"] = <intptr_t>__cuMemAddressFree
 *     global __cuMemCreate
 *     data["__cuMemCreate"] = <intptr_t>__cuMemCreate             # <<<<<<<<<<<<<<
 *     global __cuMemRelease
 *     data["__cuMemRelease"] = <intptr_t>__cuMemRelease
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7463, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7465
 *     data["__cuMemCreate"] = <intptr_t>__cuMemCreate
 *     global __cuMemRelease
 *     data["__cuMemRelease"] = <intptr_t>__cuMemRelease             # <<<<<<<<<<<<<<
 *     global __cuMemMap
 *     data["__cuMemMap"] = <intptr_t>__cuMemMap
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemRelease_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7465, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7467
 *     data["__cuMemRelease"] = <intptr_t>__cuMemRelease
 *     global __cuMemMap
 *     data["__cuMemMap"] = <intptr_t>__cuMemMap             # <<<<<<<<<<<<<<
 *     global __cuMemMapArrayAsync
 *     data["__cuMemMapArrayAsync"] = <intptr_t>__cuMemMapArrayAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemMap_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7467, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7469
 *     data["__cuMemMap"] = <intptr_t>__cuMemMap
 *     global __cuMemMapArrayAsync
 *     data["__cuMemMapArrayAsync"] = <intptr_t>__cuMemMapArrayAsync             # <<<<<<<<<<<<<<
 *     global __cuMemUnmap
 *     data["__cuMemUnmap"] = <intptr_t>__cuMemUnmap
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemMapArrayAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7469, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7471
 *     data["__cuMemMapArrayAsync"] = <intptr_t>__cuMemMapArrayAsync
 *     global __cuMemUnmap
 *     data["__cuMemUnmap"] = <intptr_t>__cuMemUnmap             # <<<<<<<<<<<<<<
 *     global __cuMemSetAccess
 *     data["__cuMemSetAccess"] = <intptr_t>__cuMemSetAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemUnmap_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7473
 *     data["__cuMemUnmap"] = <intptr_t>__cuMemUnmap
 *     global __cuMemSetAccess
 *     data["__cuMemSetAccess"] = <intptr_t>__cuMemSetAccess             # <<<<<<<<<<<<<<
 *     global __cuMemGetAccess
 *     data["__cuMemGetAccess"] = <intptr_t>__cuMemGetAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemSetAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7473, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7475
 *     data["__cuMemSetAccess"] = <intptr_t>__cuMemSetAccess
 *     global __cuMemGetAccess
 *     data["__cuMemGetAccess"] = <intptr_t>__cuMemGetAccess             # <<<<<<<<<<<<<<
 *     global __cuMemExportToShareableHandle
 *     data["__cuMemExportToShareableHandle"] = <intptr_t>__cuMemExportToShareableHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7475, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7477
 *     data["__cuMemGetAccess"] = <intptr_t>__cuMemGetAccess
 *     global __cuMemExportToShareableHandle
 *     data["__cuMemExportToShareableHandle"] = <intptr_t>__cuMemExportToShareableHandle             # <<<<<<<<<<<<<<
 *     global __cuMemImportFromShareableHandle
 *     data["__cuMemImportFromShareableHandle"] = <intptr_t>__cuMemImportFromShareableHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemExportToShareableHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7479
 *     data["__cuMemExportToShareableHandle"] = <intptr_t>__cuMemExportToShareableHandle
 *     global __cuMemImportFromShareableHandle
 *     data["__cuMemImportFromShareableHandle"] = <intptr_t>__cuMemImportFromShareableHandle             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationGranularity
 *     data["__cuMemGetAllocationGranularity"] = <intptr_t>__cuMemGetAllocationGranularity
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemImportFromShareableHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7481
 *     data["__cuMemImportFromShareableHandle"] = <intptr_t>__cuMemImportFromShareableHandle
 *     global __cuMemGetAllocationGranularity
 *     data["__cuMemGetAllocationGranularity"] = <intptr_t>__cuMemGetAllocationGranularity             # <<<<<<<<<<<<<<
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     data["__cuMemGetAllocationPropertiesFromHandle"] = <intptr_t>__cuMemGetAllocationPropertiesFromHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetAllocationGranularity_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7481, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7483
 *     data["__cuMemGetAllocationGranularity"] = <intptr_t>__cuMemGetAllocationGranularity
 *     global __cuMemGetAllocationPropertiesFromHandle
 *     data["__cuMemGetAllocationPropertiesFromHandle"] = <intptr_t>__cuMemGetAllocationPropertiesFromHandle             # <<<<<<<<<<<<<<
 *     global __cuMemRetainAllocationHandle
 *     data["__cuMemRetainAllocationHandle"] = <intptr_t>__cuMemRetainAllocationHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetAllocationPropertiesFr, __pyx_t_3) < 0))) __PYX_ERR(0, 7483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7485
 *     data["__cuMemGetAllocationPropertiesFromHandle"] = <intptr_t>__cuMemGetAllocationPropertiesFromHandle
 *     global __cuMemRetainAllocationHandle
 *     data["__cuMemRetainAllocationHandle"] = <intptr_t>__cuMemRetainAllocationHandle             # <<<<<<<<<<<<<<
 *     global __cuMemFreeAsync
 *     data["__cuMemFreeAsync"] = <intptr_t>__cuMemFreeAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemRetainAllocationHandle_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7485, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7487
 *     data["__cuMemRetainAllocationHandle"] = <intptr_t>__cuMemRetainAllocationHandle
 *     global __cuMemFreeAsync
 *     data["__cuMemFreeAsync"] = <intptr_t>__cuMemFreeAsync             # <<<<<<<<<<<<<<
 *     global __cuMemAllocAsync
 *     data["__cuMemAllocAsync"] = <intptr_t>__cuMemAllocAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemFreeAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7489
 *     data["__cuMemFreeAsync"] = <intptr_t>__cuMemFreeAsync
 *     global __cuMemAllocAsync
 *     data["__cuMemAllocAsync"] = <intptr_t>__cuMemAllocAsync             # <<<<<<<<<<<<<<
 *     global __cuMemPoolTrimTo
 *     data["__cuMemPoolTrimTo"] = <intptr_t>__cuMemPoolTrimTo
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAllocAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7489, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7491
 *     data["__cuMemAllocAsync"] = <intptr_t>__cuMemAllocAsync
 *     global __cuMemPoolTrimTo
 *     data["__cuMemPoolTrimTo"] = <intptr_t>__cuMemPoolTrimTo             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAttribute
 *     data["__cuMemPoolSetAttribute"] = <intptr_t>__cuMemPoolSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolTrimTo_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7491, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7493
 *     data["__cuMemPoolTrimTo"] = <intptr_t>__cuMemPoolTrimTo
 *     global __cuMemPoolSetAttribute
 *     data["__cuMemPoolSetAttribute"] = <intptr_t>__cuMemPoolSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAttribute
 *     data["__cuMemPoolGetAttribute"] = <intptr_t>__cuMemPoolGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7493, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7495
 *     data["__cuMemPoolSetAttribute"] = <intptr_t>__cuMemPoolSetAttribute
 *     global __cuMemPoolGetAttribute
 *     data["__cuMemPoolGetAttribute"] = <intptr_t>__cuMemPoolGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuMemPoolSetAccess
 *     data["__cuMemPoolSetAccess"] = <intptr_t>__cuMemPoolSetAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7495, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7497
 *     data["__cuMemPoolGetAttribute"] = <intptr_t>__cuMemPoolGetAttribute
 *     global __cuMemPoolSetAccess
 *     data["__cuMemPoolSetAccess"] = <intptr_t>__cuMemPoolSetAccess             # <<<<<<<<<<<<<<
 *     global __cuMemPoolGetAccess
 *     data["__cuMemPoolGetAccess"] = <intptr_t>__cuMemPoolGetAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolSetAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7499
 *     data["__cuMemPoolSetAccess"] = <intptr_t>__cuMemPoolSetAccess
 *     global __cuMemPoolGetAccess
 *     data["__cuMemPoolGetAccess"] = <intptr_t>__cuMemPoolGetAccess             # <<<<<<<<<<<<<<
 *     global __cuMemPoolCreate
 *     data["__cuMemPoolCreate"] = <intptr_t>__cuMemPoolCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolGetAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7501
 *     data["__cuMemPoolGetAccess"] = <intptr_t>__cuMemPoolGetAccess
 *     global __cuMemPoolCreate
 *     data["__cuMemPoolCreate"] = <intptr_t>__cuMemPoolCreate             # <<<<<<<<<<<<<<
 *     global __cuMemPoolDestroy
 *     data["__cuMemPoolDestroy"] = <intptr_t>__cuMemPoolDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7501, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7503
 *     data["__cuMemPoolCreate"] = <intptr_t>__cuMemPoolCreate
 *     global __cuMemPoolDestroy
 *     data["__cuMemPoolDestroy"] = <intptr_t>__cuMemPoolDestroy             # <<<<<<<<<<<<<<
 *     global __cuMemGetDefaultMemPool
 *     data["__cuMemGetDefaultMemPool"] = <intptr_t>__cuMemGetDefaultMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7505
 *     data["__cuMemPoolDestroy"] = <intptr_t>__cuMemPoolDestroy
 *     global __cuMemGetDefaultMemPool
 *     data["__cuMemGetDefaultMemPool"] = <intptr_t>__cuMemGetDefaultMemPool             # <<<<<<<<<<<<<<
 *     global __cuMemGetMemPool
 *     data["__cuMemGetMemPool"] = <intptr_t>__cuMemGetMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetDefaultMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7507
 *     data["__cuMemGetDefaultMemPool"] = <intptr_t>__cuMemGetDefaultMemPool
 *     global __cuMemGetMemPool
 *     data["__cuMemGetMemPool"] = <intptr_t>__cuMemGetMemPool             # <<<<<<<<<<<<<<
 *     global __cuMemSetMemPool
 *     data["__cuMemSetMemPool"] = <intptr_t>__cuMemSetMemPool
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemGetMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7507, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7509
 *     data["__cuMemGetMemPool"] = <intptr_t>__cuMemGetMemPool
 *     global __cuMemSetMemPool
 *     data["__cuMemSetMemPool"] = <intptr_t>__cuMemSetMemPool             # <<<<<<<<<<<<<<
 *     global __cuMemAllocFromPoolAsync
 *     data["__cuMemAllocFromPoolAsync"] = <intptr_t>__cuMemAllocFromPoolAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemSetMemPool_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7509, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7511
 *     data["__cuMemSetMemPool"] = <intptr_t>__cuMemSetMemPool
 *     global __cuMemAllocFromPoolAsync
 *     data["__cuMemAllocFromPoolAsync"] = <intptr_t>__cuMemAllocFromPoolAsync             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportToShareableHandle
 *     data["__cuMemPoolExportToShareableHandle"] = <intptr_t>__cuMemPoolExportToShareableHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAllocFromPoolAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7511, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7513
 *     data["__cuMemAllocFromPoolAsync"] = <intptr_t>__cuMemAllocFromPoolAsync
 *     global __cuMemPoolExportToShareableHandle
 *     data["__cuMemPoolExportToShareableHandle"] = <intptr_t>__cuMemPoolExportToShareableHandle             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportFromShareableHandle
 *     data["__cuMemPoolImportFromShareableHandle"] = <intptr_t>__cuMemPoolImportFromShareableHandle
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolExportToShareableHand, __pyx_t_3) < 0))) __PYX_ERR(0, 7513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7515
 *     data["__cuMemPoolExportToShareableHandle"] = <intptr_t>__cuMemPoolExportToShareableHandle
 *     global __cuMemPoolImportFromShareableHandle
 *     data["__cuMemPoolImportFromShareableHandle"] = <intptr_t>__cuMemPoolImportFromShareableHandle             # <<<<<<<<<<<<<<
 *     global __cuMemPoolExportPointer
 *     data["__cuMemPoolExportPointer"] = <intptr_t>__cuMemPoolExportPointer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolImportFromShareableHa, __pyx_t_3) < 0))) __PYX_ERR(0, 7515, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7517
 *     data["__cuMemPoolImportFromShareableHandle"] = <intptr_t>__cuMemPoolImportFromShareableHandle
 *     global __cuMemPoolExportPointer
 *     data["__cuMemPoolExportPointer"] = <intptr_t>__cuMemPoolExportPointer             # <<<<<<<<<<<<<<
 *     global __cuMemPoolImportPointer
 *     data["__cuMemPoolImportPointer"] = <intptr_t>__cuMemPoolImportPointer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolExportPointer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7519
 *     data["__cuMemPoolExportPointer"] = <intptr_t>__cuMemPoolExportPointer
 *     global __cuMemPoolImportPointer
 *     data["__cuMemPoolImportPointer"] = <intptr_t>__cuMemPoolImportPointer             # <<<<<<<<<<<<<<
 *     global __cuMulticastCreate
 *     data["__cuMulticastCreate"] = <intptr_t>__cuMulticastCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPoolImportPointer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7519, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7521
 *     data["__cuMemPoolImportPointer"] = <intptr_t>__cuMemPoolImportPointer
 *     global __cuMulticastCreate
 *     data["__cuMulticastCreate"] = <intptr_t>__cuMulticastCreate             # <<<<<<<<<<<<<<
 *     global __cuMulticastAddDevice
 *     data["__cuMulticastAddDevice"] = <intptr_t>__cuMulticastAddDevice
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7523
 *     data["__cuMulticastCreate"] = <intptr_t>__cuMulticastCreate
 *     global __cuMulticastAddDevice
 *     data["__cuMulticastAddDevice"] = <intptr_t>__cuMulticastAddDevice             # <<<<<<<<<<<<<<
 *     global __cuMulticastBindMem
 *     data["__cuMulticastBindMem"] = <intptr_t>__cuMulticastBindMem
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastAddDevice_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7525
 *     data["__cuMulticastAddDevice"] = <intptr_t>__cuMulticastAddDevice
 *     global __cuMulticastBindMem
 *     data["__cuMulticastBindMem"] = <intptr_t>__cuMulticastBindMem             # <<<<<<<<<<<<<<
 *     global __cuMulticastBindMem_v2
 *     data["__cuMulticastBindMem_v2"] = <intptr_t>__cuMulticastBindMem_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastBindMem_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7527
 *     data["__cuMulticastBindMem"] = <intptr_t>__cuMulticastBindMem
 *     global __cuMulticastBindMem_v2
 *     data["__cuMulticastBindMem_v2"] = <intptr_t>__cuMulticastBindMem_v2             # <<<<<<<<<<<<<<
 *     global __cuMulticastBindAddr
 *     data["__cuMulticastBindAddr"] = <intptr_t>__cuMulticastBindAddr
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastBindMem_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7529
 *     data["__cuMulticastBindMem_v2"] = <intptr_t>__cuMulticastBindMem_v2
 *     global __cuMulticastBindAddr
 *     data["__cuMulticastBindAddr"] = <intptr_t>__cuMulticastBindAddr             # <<<<<<<<<<<<<<
 *     global __cuMulticastBindAddr_v2
 *     data["__cuMulticastBindAddr_v2"] = <intptr_t>__cuMulticastBindAddr_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastBindAddr_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7531
 *     data["__cuMulticastBindAddr"] = <intptr_t>__cuMulticastBindAddr
 *     global __cuMulticastBindAddr_v2
 *     data["__cuMulticastBindAddr_v2"] = <intptr_t>__cuMulticastBindAddr_v2             # <<<<<<<<<<<<<<
 *     global __cuMulticastUnbind
 *     data["__cuMulticastUnbind"] = <intptr_t>__cuMulticastUnbind
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastBindAddr_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7533
 *     data["__cuMulticastBindAddr_v2"] = <intptr_t>__cuMulticastBindAddr_v2
 *     global __cuMulticastUnbind
 *     data["__cuMulticastUnbind"] = <intptr_t>__cuMulticastUnbind             # <<<<<<<<<<<<<<
 *     global __cuMulticastGetGranularity
 *     data["__cuMulticastGetGranularity"] = <intptr_t>__cuMulticastGetGranularity
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastUnbind_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7533, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7535
 *     data["__cuMulticastUnbind"] = <intptr_t>__cuMulticastUnbind
 *     global __cuMulticastGetGranularity
 *     data["__cuMulticastGetGranularity"] = <intptr_t>__cuMulticastGetGranularity             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttribute
 *     data["__cuPointerGetAttribute"] = <intptr_t>__cuPointerGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMulticastGetGranularity_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7537
 *     data["__cuMulticastGetGranularity"] = <intptr_t>__cuMulticastGetGranularity
 *     global __cuPointerGetAttribute
 *     data["__cuPointerGetAttribute"] = <intptr_t>__cuPointerGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuMemPrefetchAsync_v2
 *     data["__cuMemPrefetchAsync_v2"] = <intptr_t>__cuMemPrefetchAsync_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuPointerGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7539
 *     data["__cuPointerGetAttribute"] = <intptr_t>__cuPointerGetAttribute
 *     global __cuMemPrefetchAsync_v2
 *     data["__cuMemPrefetchAsync_v2"] = <intptr_t>__cuMemPrefetchAsync_v2             # <<<<<<<<<<<<<<
 *     global __cuMemAdvise_v2
 *     data["__cuMemAdvise_v2"] = <intptr_t>__cuMemAdvise_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPrefetchAsync_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7539, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7541
 *     data["__cuMemPrefetchAsync_v2"] = <intptr_t>__cuMemPrefetchAsync_v2
 *     global __cuMemAdvise_v2
 *     data["__cuMemAdvise_v2"] = <intptr_t>__cuMemAdvise_v2             # <<<<<<<<<<<<<<
 *     global __cuMemPrefetchBatchAsync
 *     data["__cuMemPrefetchBatchAsync"] = <intptr_t>__cuMemPrefetchBatchAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemAdvise_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7543
 *     data["__cuMemAdvise_v2"] = <intptr_t>__cuMemAdvise_v2
 *     global __cuMemPrefetchBatchAsync
 *     data["__cuMemPrefetchBatchAsync"] = <intptr_t>__cuMemPrefetchBatchAsync             # <<<<<<<<<<<<<<
 *     global __cuMemDiscardBatchAsync
 *     data["__cuMemDiscardBatchAsync"] = <intptr_t>__cuMemDiscardBatchAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemPrefetchBatchAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7545
 *     data["__cuMemPrefetchBatchAsync"] = <intptr_t>__cuMemPrefetchBatchAsync
 *     global __cuMemDiscardBatchAsync
 *     data["__cuMemDiscardBatchAsync"] = <intptr_t>__cuMemDiscardBatchAsync             # <<<<<<<<<<<<<<
 *     global __cuMemDiscardAndPrefetchBatchAsync
 *     data["__cuMemDiscardAndPrefetchBatchAsync"] = <intptr_t>__cuMemDiscardAndPrefetchBatchAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemDiscardBatchAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7545, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7547
 *     data["__cuMemDiscardBatchAsync"] = <intptr_t>__cuMemDiscardBatchAsync
 *     global __cuMemDiscardAndPrefetchBatchAsync
 *     data["__cuMemDiscardAndPrefetchBatchAsync"] = <intptr_t>__cuMemDiscardAndPrefetchBatchAsync             # <<<<<<<<<<<<<<
 *     global __cuMemRangeGetAttribute
 *     data["__cuMemRangeGetAttribute"] = <intptr_t>__cuMemRangeGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemDiscardAndPrefetchBatchAs, __pyx_t_3) < 0))) __PYX_ERR(0, 7547, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7549
 *     data["__cuMemDiscardAndPrefetchBatchAsync"] = <intptr_t>__cuMemDiscardAndPrefetchBatchAsync
 *     global __cuMemRangeGetAttribute
 *     data["__cuMemRangeGetAttribute"] = <intptr_t>__cuMemRangeGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuMemRangeGetAttributes
 *     data["__cuMemRangeGetAttributes"] = <intptr_t>__cuMemRangeGetAttributes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemRangeGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7551
 *     data["__cuMemRangeGetAttribute"] = <intptr_t>__cuMemRangeGetAttribute
 *     global __cuMemRangeGetAttributes
 *     data["__cuMemRangeGetAttributes"] = <intptr_t>__cuMemRangeGetAttributes             # <<<<<<<<<<<<<<
 *     global __cuPointerSetAttribute
 *     data["__cuPointerSetAttribute"] = <intptr_t>__cuPointerSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuMemRangeGetAttributes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7553
 *     data["__cuMemRangeGetAttributes"] = <intptr_t>__cuMemRangeGetAttributes
 *     global __cuPointerSetAttribute
 *     data["__cuPointerSetAttribute"] = <intptr_t>__cuPointerSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuPointerGetAttributes
 *     data["__cuPointerGetAttributes"] = <intptr_t>__cuPointerGetAttributes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuPointerSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7555
 *     data["__cuPointerSetAttribute"] = <intptr_t>__cuPointerSetAttribute
 *     global __cuPointerGetAttributes
 *     data["__cuPointerGetAttributes"] = <intptr_t>__cuPointerGetAttributes             # <<<<<<<<<<<<<<
 *     global __cuStreamCreate
 *     data["__cuStreamCreate"] = <intptr_t>__cuStreamCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuPointerGetAttributes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7557
 *     data["__cuPointerGetAttributes"] = <intptr_t>__cuPointerGetAttributes
 *     global __cuStreamCreate
 *     data["__cuStreamCreate"] = <intptr_t>__cuStreamCreate             # <<<<<<<<<<<<<<
 *     global __cuStreamCreateWithPriority
 *     data["__cuStreamCreateWithPriority"] = <intptr_t>__cuStreamCreateWithPriority
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7557, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7559
 *     data["__cuStreamCreate"] = <intptr_t>__cuStreamCreate
 *     global __cuStreamCreateWithPriority
 *     data["__cuStreamCreateWithPriority"] = <intptr_t>__cuStreamCreateWithPriority             # <<<<<<<<<<<<<<
 *     global __cuStreamGetPriority
 *     data["__cuStreamGetPriority"] = <intptr_t>__cuStreamGetPriority
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamCreateWithPriority_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7561
 *     data["__cuStreamCreateWithPriority"] = <intptr_t>__cuStreamCreateWithPriority
 *     global __cuStreamGetPriority
 *     data["__cuStreamGetPriority"] = <intptr_t>__cuStreamGetPriority             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevice
 *     data["__cuStreamGetDevice"] = <intptr_t>__cuStreamGetDevice
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetPriority_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7561, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7563
 *     data["__cuStreamGetPriority"] = <intptr_t>__cuStreamGetPriority
 *     global __cuStreamGetDevice
 *     data["__cuStreamGetDevice"] = <intptr_t>__cuStreamGetDevice             # <<<<<<<<<<<<<<
 *     global __cuStreamGetFlags
 *     data["__cuStreamGetFlags"] = <intptr_t>__cuStreamGetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetDevice_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7563, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7565
 *     data["__cuStreamGetDevice"] = <intptr_t>__cuStreamGetDevice
 *     global __cuStreamGetFlags
 *     data["__cuStreamGetFlags"] = <intptr_t>__cuStreamGetFlags             # <<<<<<<<<<<<<<
 *     global __cuStreamGetId
 *     data["__cuStreamGetId"] = <intptr_t>__cuStreamGetId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7567
 *     data["__cuStreamGetFlags"] = <intptr_t>__cuStreamGetFlags
 *     global __cuStreamGetId
 *     data["__cuStreamGetId"] = <intptr_t>__cuStreamGetId             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx
 *     data["__cuStreamGetCtx"] = <intptr_t>__cuStreamGetCtx
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7567, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7569
 *     data["__cuStreamGetId"] = <intptr_t>__cuStreamGetId
 *     global __cuStreamGetCtx
 *     data["__cuStreamGetCtx"] = <intptr_t>__cuStreamGetCtx             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCtx_v2
 *     data["__cuStreamGetCtx_v2"] = <intptr_t>__cuStreamGetCtx_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetCtx_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7569, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7571
 *     data["__cuStreamGetCtx"] = <intptr_t>__cuStreamGetCtx
 *     global __cuStreamGetCtx_v2
 *     data["__cuStreamGetCtx_v2"] = <intptr_t>__cuStreamGetCtx_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitEvent
 *     data["__cuStreamWaitEvent"] = <intptr_t>__cuStreamWaitEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetCtx_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7573
 *     data["__cuStreamGetCtx_v2"] = <intptr_t>__cuStreamGetCtx_v2
 *     global __cuStreamWaitEvent
 *     data["__cuStreamWaitEvent"] = <intptr_t>__cuStreamWaitEvent             # <<<<<<<<<<<<<<
 *     global __cuStreamAddCallback
 *     data["__cuStreamAddCallback"] = <intptr_t>__cuStreamAddCallback
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamWaitEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7575
 *     data["__cuStreamWaitEvent"] = <intptr_t>__cuStreamWaitEvent
 *     global __cuStreamAddCallback
 *     data["__cuStreamAddCallback"] = <intptr_t>__cuStreamAddCallback             # <<<<<<<<<<<<<<
 *     global __cuStreamBeginCapture_v2
 *     data["__cuStreamBeginCapture_v2"] = <intptr_t>__cuStreamBeginCapture_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamAddCallback_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7575, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7577
 *     data["__cuStreamAddCallback"] = <intptr_t>__cuStreamAddCallback
 *     global __cuStreamBeginCapture_v2
 *     data["__cuStreamBeginCapture_v2"] = <intptr_t>__cuStreamBeginCapture_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamBeginCaptureToGraph
 *     data["__cuStreamBeginCaptureToGraph"] = <intptr_t>__cuStreamBeginCaptureToGraph
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamBeginCapture_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7579
 *     data["__cuStreamBeginCapture_v2"] = <intptr_t>__cuStreamBeginCapture_v2
 *     global __cuStreamBeginCaptureToGraph
 *     data["__cuStreamBeginCaptureToGraph"] = <intptr_t>__cuStreamBeginCaptureToGraph             # <<<<<<<<<<<<<<
 *     global __cuThreadExchangeStreamCaptureMode
 *     data["__cuThreadExchangeStreamCaptureMode"] = <intptr_t>__cuThreadExchangeStreamCaptureMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamBeginCaptureToGraph_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7581
 *     data["__cuStreamBeginCaptureToGraph"] = <intptr_t>__cuStreamBeginCaptureToGraph
 *     global __cuThreadExchangeStreamCaptureMode
 *     data["__cuThreadExchangeStreamCaptureMode"] = <intptr_t>__cuThreadExchangeStreamCaptureMode             # <<<<<<<<<<<<<<
 *     global __cuStreamEndCapture
 *     data["__cuStreamEndCapture"] = <intptr_t>__cuStreamEndCapture
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuThreadExchangeStreamCaptureM, __pyx_t_3) < 0))) __PYX_ERR(0, 7581, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7583
 *     data["__cuThreadExchangeStreamCaptureMode"] = <intptr_t>__cuThreadExchangeStreamCaptureMode
 *     global __cuStreamEndCapture
 *     data["__cuStreamEndCapture"] = <intptr_t>__cuStreamEndCapture             # <<<<<<<<<<<<<<
 *     global __cuStreamIsCapturing
 *     data["__cuStreamIsCapturing"] = <intptr_t>__cuStreamIsCapturing
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamEndCapture_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7585
 *     data["__cuStreamEndCapture"] = <intptr_t>__cuStreamEndCapture
 *     global __cuStreamIsCapturing
 *     data["__cuStreamIsCapturing"] = <intptr_t>__cuStreamIsCapturing             # <<<<<<<<<<<<<<
 *     global __cuStreamGetCaptureInfo_v3
 *     data["__cuStreamGetCaptureInfo_v3"] = <intptr_t>__cuStreamGetCaptureInfo_v3
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamIsCapturing_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7587
 *     data["__cuStreamIsCapturing"] = <intptr_t>__cuStreamIsCapturing
 *     global __cuStreamGetCaptureInfo_v3
 *     data["__cuStreamGetCaptureInfo_v3"] = <intptr_t>__cuStreamGetCaptureInfo_v3             # <<<<<<<<<<<<<<
 *     global __cuStreamUpdateCaptureDependencies_v2
 *     data["__cuStreamUpdateCaptureDependencies_v2"] = <intptr_t>__cuStreamUpdateCaptureDependencies_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetCaptureInfo_v3_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7587, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7589
 *     data["__cuStreamGetCaptureInfo_v3"] = <intptr_t>__cuStreamGetCaptureInfo_v3
 *     global __cuStreamUpdateCaptureDependencies_v2
 *     data["__cuStreamUpdateCaptureDependencies_v2"] = <intptr_t>__cuStreamUpdateCaptureDependencies_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamAttachMemAsync
 *     data["__cuStreamAttachMemAsync"] = <intptr_t>__cuStreamAttachMemAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamUpdateCaptureDependenc, __pyx_t_3) < 0))) __PYX_ERR(0, 7589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7591
 *     data["__cuStreamUpdateCaptureDependencies_v2"] = <intptr_t>__cuStreamUpdateCaptureDependencies_v2
 *     global __cuStreamAttachMemAsync
 *     data["__cuStreamAttachMemAsync"] = <intptr_t>__cuStreamAttachMemAsync             # <<<<<<<<<<<<<<
 *     global __cuStreamQuery
 *     data["__cuStreamQuery"] = <intptr_t>__cuStreamQuery
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamAttachMemAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7591, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7593
 *     data["__cuStreamAttachMemAsync"] = <intptr_t>__cuStreamAttachMemAsync
 *     global __cuStreamQuery
 *     data["__cuStreamQuery"] = <intptr_t>__cuStreamQuery             # <<<<<<<<<<<<<<
 *     global __cuStreamSynchronize
 *     data["__cuStreamSynchronize"] = <intptr_t>__cuStreamSynchronize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamQuery_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7595
 *     data["__cuStreamQuery"] = <intptr_t>__cuStreamQuery
 *     global __cuStreamSynchronize
 *     data["__cuStreamSynchronize"] = <intptr_t>__cuStreamSynchronize             # <<<<<<<<<<<<<<
 *     global __cuStreamDestroy_v2
 *     data["__cuStreamDestroy_v2"] = <intptr_t>__cuStreamDestroy_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamSynchronize_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7595, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7597
 *     data["__cuStreamSynchronize"] = <intptr_t>__cuStreamSynchronize
 *     global __cuStreamDestroy_v2
 *     data["__cuStreamDestroy_v2"] = <intptr_t>__cuStreamDestroy_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamCopyAttributes
 *     data["__cuStreamCopyAttributes"] = <intptr_t>__cuStreamCopyAttributes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamDestroy_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7597, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7599
 *     data["__cuStreamDestroy_v2"] = <intptr_t>__cuStreamDestroy_v2
 *     global __cuStreamCopyAttributes
 *     data["__cuStreamCopyAttributes"] = <intptr_t>__cuStreamCopyAttributes             # <<<<<<<<<<<<<<
 *     global __cuStreamGetAttribute
 *     data["__cuStreamGetAttribute"] = <intptr_t>__cuStreamGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamCopyAttributes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7599, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7601
 *     data["__cuStreamCopyAttributes"] = <intptr_t>__cuStreamCopyAttributes
 *     global __cuStreamGetAttribute
 *     data["__cuStreamGetAttribute"] = <intptr_t>__cuStreamGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuStreamSetAttribute
 *     data["__cuStreamSetAttribute"] = <intptr_t>__cuStreamSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7603
 *     data["__cuStreamGetAttribute"] = <intptr_t>__cuStreamGetAttribute
 *     global __cuStreamSetAttribute
 *     data["__cuStreamSetAttribute"] = <intptr_t>__cuStreamSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuEventCreate
 *     data["__cuEventCreate"] = <intptr_t>__cuEventCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7603, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7605
 *     data["__cuStreamSetAttribute"] = <intptr_t>__cuStreamSetAttribute
 *     global __cuEventCreate
 *     data["__cuEventCreate"] = <intptr_t>__cuEventCreate             # <<<<<<<<<<<<<<
 *     global __cuEventRecord
 *     data["__cuEventRecord"] = <intptr_t>__cuEventRecord
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7607
 *     data["__cuEventCreate"] = <intptr_t>__cuEventCreate
 *     global __cuEventRecord
 *     data["__cuEventRecord"] = <intptr_t>__cuEventRecord             # <<<<<<<<<<<<<<
 *     global __cuEventRecordWithFlags
 *     data["__cuEventRecordWithFlags"] = <intptr_t>__cuEventRecordWithFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventRecord_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7609
 *     data["__cuEventRecord"] = <intptr_t>__cuEventRecord
 *     global __cuEventRecordWithFlags
 *     data["__cuEventRecordWithFlags"] = <intptr_t>__cuEventRecordWithFlags             # <<<<<<<<<<<<<<
 *     global __cuEventQuery
 *     data["__cuEventQuery"] = <intptr_t>__cuEventQuery
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventRecordWithFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7609, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7611
 *     data["__cuEventRecordWithFlags"] = <intptr_t>__cuEventRecordWithFlags
 *     global __cuEventQuery
 *     data["__cuEventQuery"] = <intptr_t>__cuEventQuery             # <<<<<<<<<<<<<<
 *     global __cuEventSynchronize
 *     data["__cuEventSynchronize"] = <intptr_t>__cuEventSynchronize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventQuery_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7613
 *     data["__cuEventQuery"] = <intptr_t>__cuEventQuery
 *     global __cuEventSynchronize
 *     data["__cuEventSynchronize"] = <intptr_t>__cuEventSynchronize             # <<<<<<<<<<<<<<
 *     global __cuEventDestroy_v2
 *     data["__cuEventDestroy_v2"] = <intptr_t>__cuEventDestroy_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventSynchronize_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7615
 *     data["__cuEventSynchronize"] = <intptr_t>__cuEventSynchronize
 *     global __cuEventDestroy_v2
 *     data["__cuEventDestroy_v2"] = <intptr_t>__cuEventDestroy_v2             # <<<<<<<<<<<<<<
 *     global __cuEventElapsedTime_v2
 *     data["__cuEventElapsedTime_v2"] = <intptr_t>__cuEventElapsedTime_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventDestroy_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7615, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7617
 *     data["__cuEventDestroy_v2"] = <intptr_t>__cuEventDestroy_v2
 *     global __cuEventElapsedTime_v2
 *     data["__cuEventElapsedTime_v2"] = <intptr_t>__cuEventElapsedTime_v2             # <<<<<<<<<<<<<<
 *     global __cuImportExternalMemory
 *     data["__cuImportExternalMemory"] = <intptr_t>__cuImportExternalMemory
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventElapsedTime_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7619
 *     data["__cuEventElapsedTime_v2"] = <intptr_t>__cuEventElapsedTime_v2
 *     global __cuImportExternalMemory
 *     data["__cuImportExternalMemory"] = <intptr_t>__cuImportExternalMemory             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedBuffer
 *     data["__cuExternalMemoryGetMappedBuffer"] = <intptr_t>__cuExternalMemoryGetMappedBuffer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuImportExternalMemory_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7621
 *     data["__cuImportExternalMemory"] = <intptr_t>__cuImportExternalMemory
 *     global __cuExternalMemoryGetMappedBuffer
 *     data["__cuExternalMemoryGetMappedBuffer"] = <intptr_t>__cuExternalMemoryGetMappedBuffer             # <<<<<<<<<<<<<<
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     data["__cuExternalMemoryGetMappedMipmappedArray"] = <intptr_t>__cuExternalMemoryGetMappedMipmappedArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuExternalMemoryGetMappedBuffe, __pyx_t_3) < 0))) __PYX_ERR(0, 7621, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7623
 *     data["__cuExternalMemoryGetMappedBuffer"] = <intptr_t>__cuExternalMemoryGetMappedBuffer
 *     global __cuExternalMemoryGetMappedMipmappedArray
 *     data["__cuExternalMemoryGetMappedMipmappedArray"] = <intptr_t>__cuExternalMemoryGetMappedMipmappedArray             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalMemory
 *     data["__cuDestroyExternalMemory"] = <intptr_t>__cuDestroyExternalMemory
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuExternalMemoryGetMappedMipma, __pyx_t_3) < 0))) __PYX_ERR(0, 7623, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7625
 *     data["__cuExternalMemoryGetMappedMipmappedArray"] = <intptr_t>__cuExternalMemoryGetMappedMipmappedArray
 *     global __cuDestroyExternalMemory
 *     data["__cuDestroyExternalMemory"] = <intptr_t>__cuDestroyExternalMemory             # <<<<<<<<<<<<<<
 *     global __cuImportExternalSemaphore
 *     data["__cuImportExternalSemaphore"] = <intptr_t>__cuImportExternalSemaphore
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDestroyExternalMemory_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7627
 *     data["__cuDestroyExternalMemory"] = <intptr_t>__cuDestroyExternalMemory
 *     global __cuImportExternalSemaphore
 *     data["__cuImportExternalSemaphore"] = <intptr_t>__cuImportExternalSemaphore             # <<<<<<<<<<<<<<
 *     global __cuSignalExternalSemaphoresAsync
 *     data["__cuSignalExternalSemaphoresAsync"] = <intptr_t>__cuSignalExternalSemaphoresAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuImportExternalSemaphore_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7627, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7629
 *     data["__cuImportExternalSemaphore"] = <intptr_t>__cuImportExternalSemaphore
 *     global __cuSignalExternalSemaphoresAsync
 *     data["__cuSignalExternalSemaphoresAsync"] = <intptr_t>__cuSignalExternalSemaphoresAsync             # <<<<<<<<<<<<<<
 *     global __cuWaitExternalSemaphoresAsync
 *     data["__cuWaitExternalSemaphoresAsync"] = <intptr_t>__cuWaitExternalSemaphoresAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSignalExternalSemaphoresAsyn, __pyx_t_3) < 0))) __PYX_ERR(0, 7629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7631
 *     data["__cuSignalExternalSemaphoresAsync"] = <intptr_t>__cuSignalExternalSemaphoresAsync
 *     global __cuWaitExternalSemaphoresAsync
 *     data["__cuWaitExternalSemaphoresAsync"] = <intptr_t>__cuWaitExternalSemaphoresAsync             # <<<<<<<<<<<<<<
 *     global __cuDestroyExternalSemaphore
 *     data["__cuDestroyExternalSemaphore"] = <intptr_t>__cuDestroyExternalSemaphore
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuWaitExternalSemaphoresAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7633
 *     data["__cuWaitExternalSemaphoresAsync"] = <intptr_t>__cuWaitExternalSemaphoresAsync
 *     global __cuDestroyExternalSemaphore
 *     data["__cuDestroyExternalSemaphore"] = <intptr_t>__cuDestroyExternalSemaphore             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue32_v2
 *     data["__cuStreamWaitValue32_v2"] = <intptr_t>__cuStreamWaitValue32_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDestroyExternalSemaphore_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7633, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7635
 *     data["__cuDestroyExternalSemaphore"] = <intptr_t>__cuDestroyExternalSemaphore
 *     global __cuStreamWaitValue32_v2
 *     data["__cuStreamWaitValue32_v2"] = <intptr_t>__cuStreamWaitValue32_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamWaitValue64_v2
 *     data["__cuStreamWaitValue64_v2"] = <intptr_t>__cuStreamWaitValue64_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamWaitValue32_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7635, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7637
 *     data["__cuStreamWaitValue32_v2"] = <intptr_t>__cuStreamWaitValue32_v2
 *     global __cuStreamWaitValue64_v2
 *     data["__cuStreamWaitValue64_v2"] = <intptr_t>__cuStreamWaitValue64_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue32_v2
 *     data["__cuStreamWriteValue32_v2"] = <intptr_t>__cuStreamWriteValue32_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamWaitValue64_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7637, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7639
 *     data["__cuStreamWaitValue64_v2"] = <intptr_t>__cuStreamWaitValue64_v2
 *     global __cuStreamWriteValue32_v2
 *     data["__cuStreamWriteValue32_v2"] = <intptr_t>__cuStreamWriteValue32_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamWriteValue64_v2
 *     data["__cuStreamWriteValue64_v2"] = <intptr_t>__cuStreamWriteValue64_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamWriteValue32_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7639, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7641
 *     data["__cuStreamWriteValue32_v2"] = <intptr_t>__cuStreamWriteValue32_v2
 *     global __cuStreamWriteValue64_v2
 *     data["__cuStreamWriteValue64_v2"] = <intptr_t>__cuStreamWriteValue64_v2             # <<<<<<<<<<<<<<
 *     global __cuStreamBatchMemOp_v2
 *     data["__cuStreamBatchMemOp_v2"] = <intptr_t>__cuStreamBatchMemOp_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamWriteValue64_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7641, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7643
 *     data["__cuStreamWriteValue64_v2"] = <intptr_t>__cuStreamWriteValue64_v2
 *     global __cuStreamBatchMemOp_v2
 *     data["__cuStreamBatchMemOp_v2"] = <intptr_t>__cuStreamBatchMemOp_v2             # <<<<<<<<<<<<<<
 *     global __cuFuncGetAttribute
 *     data["__cuFuncGetAttribute"] = <intptr_t>__cuFuncGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamBatchMemOp_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7645
 *     data["__cuStreamBatchMemOp_v2"] = <intptr_t>__cuStreamBatchMemOp_v2
 *     global __cuFuncGetAttribute
 *     data["__cuFuncGetAttribute"] = <intptr_t>__cuFuncGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuFuncSetAttribute
 *     data["__cuFuncSetAttribute"] = <intptr_t>__cuFuncSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7645, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7647
 *     data["__cuFuncGetAttribute"] = <intptr_t>__cuFuncGetAttribute
 *     global __cuFuncSetAttribute
 *     data["__cuFuncSetAttribute"] = <intptr_t>__cuFuncSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuFuncSetCacheConfig
 *     data["__cuFuncSetCacheConfig"] = <intptr_t>__cuFuncSetCacheConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7649
 *     data["__cuFuncSetAttribute"] = <intptr_t>__cuFuncSetAttribute
 *     global __cuFuncSetCacheConfig
 *     data["__cuFuncSetCacheConfig"] = <intptr_t>__cuFuncSetCacheConfig             # <<<<<<<<<<<<<<
 *     global __cuFuncGetModule
 *     data["__cuFuncGetModule"] = <intptr_t>__cuFuncGetModule
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncSetCacheConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7651
 *     data["__cuFuncSetCacheConfig"] = <intptr_t>__cuFuncSetCacheConfig
 *     global __cuFuncGetModule
 *     data["__cuFuncGetModule"] = <intptr_t>__cuFuncGetModule             # <<<<<<<<<<<<<<
 *     global __cuFuncGetName
 *     data["__cuFuncGetName"] = <intptr_t>__cuFuncGetName
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncGetModule_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7651, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7653
 *     data["__cuFuncGetModule"] = <intptr_t>__cuFuncGetModule
 *     global __cuFuncGetName
 *     data["__cuFuncGetName"] = <intptr_t>__cuFuncGetName             # <<<<<<<<<<<<<<
 *     global __cuFuncGetParamInfo
 *     data["__cuFuncGetParamInfo"] = <intptr_t>__cuFuncGetParamInfo
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncGetName_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7653, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7655
 *     data["__cuFuncGetName"] = <intptr_t>__cuFuncGetName
 *     global __cuFuncGetParamInfo
 *     data["__cuFuncGetParamInfo"] = <intptr_t>__cuFuncGetParamInfo             # <<<<<<<<<<<<<<
 *     global __cuFuncIsLoaded
 *     data["__cuFuncIsLoaded"] = <intptr_t>__cuFuncIsLoaded
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncGetParamInfo_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7655, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7657
 *     data["__cuFuncGetParamInfo"] = <intptr_t>__cuFuncGetParamInfo
 *     global __cuFuncIsLoaded
 *     data["__cuFuncIsLoaded"] = <intptr_t>__cuFuncIsLoaded             # <<<<<<<<<<<<<<
 *     global __cuFuncLoad
 *     data["__cuFuncLoad"] = <intptr_t>__cuFuncLoad
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncIsLoaded_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7659
 *     data["__cuFuncIsLoaded"] = <intptr_t>__cuFuncIsLoaded
 *     global __cuFuncLoad
 *     data["__cuFuncLoad"] = <intptr_t>__cuFuncLoad             # <<<<<<<<<<<<<<
 *     global __cuLaunchKernel
 *     data["__cuLaunchKernel"] = <intptr_t>__cuLaunchKernel
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncLoad_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7659, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7661
 *     data["__cuFuncLoad"] = <intptr_t>__cuFuncLoad
 *     global __cuLaunchKernel
 *     data["__cuLaunchKernel"] = <intptr_t>__cuLaunchKernel             # <<<<<<<<<<<<<<
 *     global __cuLaunchKernelEx
 *     data["__cuLaunchKernelEx"] = <intptr_t>__cuLaunchKernelEx
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchKernel_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7661, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7663
 *     data["__cuLaunchKernel"] = <intptr_t>__cuLaunchKernel
 *     global __cuLaunchKernelEx
 *     data["__cuLaunchKernelEx"] = <intptr_t>__cuLaunchKernelEx             # <<<<<<<<<<<<<<
 *     global __cuLaunchCooperativeKernel
 *     data["__cuLaunchCooperativeKernel"] = <intptr_t>__cuLaunchCooperativeKernel
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchKernelEx_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7665
 *     data["__cuLaunchKernelEx"] = <intptr_t>__cuLaunchKernelEx
 *     global __cuLaunchCooperativeKernel
 *     data["__cuLaunchCooperativeKernel"] = <intptr_t>__cuLaunchCooperativeKernel             # <<<<<<<<<<<<<<
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     data["__cuLaunchCooperativeKernelMultiDevice"] = <intptr_t>__cuLaunchCooperativeKernelMultiDevice
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchCooperativeKernel_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7667
 *     data["__cuLaunchCooperativeKernel"] = <intptr_t>__cuLaunchCooperativeKernel
 *     global __cuLaunchCooperativeKernelMultiDevice
 *     data["__cuLaunchCooperativeKernelMultiDevice"] = <intptr_t>__cuLaunchCooperativeKernelMultiDevice             # <<<<<<<<<<<<<<
 *     global __cuLaunchHostFunc
 *     data["__cuLaunchHostFunc"] = <intptr_t>__cuLaunchHostFunc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchCooperativeKernelMulti, __pyx_t_3) < 0))) __PYX_ERR(0, 7667, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7669
 *     data["__cuLaunchCooperativeKernelMultiDevice"] = <intptr_t>__cuLaunchCooperativeKernelMultiDevice
 *     global __cuLaunchHostFunc
 *     data["__cuLaunchHostFunc"] = <intptr_t>__cuLaunchHostFunc             # <<<<<<<<<<<<<<
 *     global __cuFuncSetBlockShape
 *     data["__cuFuncSetBlockShape"] = <intptr_t>__cuFuncSetBlockShape
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchHostFunc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7669, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7671
 *     data["__cuLaunchHostFunc"] = <intptr_t>__cuLaunchHostFunc
 *     global __cuFuncSetBlockShape
 *     data["__cuFuncSetBlockShape"] = <intptr_t>__cuFuncSetBlockShape             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedSize
 *     data["__cuFuncSetSharedSize"] = <intptr_t>__cuFuncSetSharedSize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncSetBlockShape_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7671, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7673
 *     data["__cuFuncSetBlockShape"] = <intptr_t>__cuFuncSetBlockShape
 *     global __cuFuncSetSharedSize
 *     data["__cuFuncSetSharedSize"] = <intptr_t>__cuFuncSetSharedSize             # <<<<<<<<<<<<<<
 *     global __cuParamSetSize
 *     data["__cuParamSetSize"] = <intptr_t>__cuParamSetSize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncSetSharedSize_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7673, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7675
 *     data["__cuFuncSetSharedSize"] = <intptr_t>__cuFuncSetSharedSize
 *     global __cuParamSetSize
 *     data["__cuParamSetSize"] = <intptr_t>__cuParamSetSize             # <<<<<<<<<<<<<<
 *     global __cuParamSeti
 *     data["__cuParamSeti"] = <intptr_t>__cuParamSeti
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuParamSetSize_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7675, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7677
 *     data["__cuParamSetSize"] = <intptr_t>__cuParamSetSize
 *     global __cuParamSeti
 *     data["__cuParamSeti"] = <intptr_t>__cuParamSeti             # <<<<<<<<<<<<<<
 *     global __cuParamSetf
 *     data["__cuParamSetf"] = <intptr_t>__cuParamSetf
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuParamSeti_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7677, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7679
 *     data["__cuParamSeti"] = <intptr_t>__cuParamSeti
 *     global __cuParamSetf
 *     data["__cuParamSetf"] = <intptr_t>__cuParamSetf             # <<<<<<<<<<<<<<
 *     global __cuParamSetv
 *     data["__cuParamSetv"] = <intptr_t>__cuParamSetv
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuParamSetf_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7679, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7681
 *     data["__cuParamSetf"] = <intptr_t>__cuParamSetf
 *     global __cuParamSetv
 *     data["__cuParamSetv"] = <intptr_t>__cuParamSetv             # <<<<<<<<<<<<<<
 *     global __cuLaunch
 *     data["__cuLaunch"] = <intptr_t>__cuLaunch
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuParamSetv_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7681, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7683
 *     data["__cuParamSetv"] = <intptr_t>__cuParamSetv
 *     global __cuLaunch
 *     data["__cuLaunch"] = <intptr_t>__cuLaunch             # <<<<<<<<<<<<<<
 *     global __cuLaunchGrid
 *     data["__cuLaunchGrid"] = <intptr_t>__cuLaunchGrid
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunch_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7683, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7685
 *     data["__cuLaunch"] = <intptr_t>__cuLaunch
 *     global __cuLaunchGrid
 *     data["__cuLaunchGrid"] = <intptr_t>__cuLaunchGrid             # <<<<<<<<<<<<<<
 *     global __cuLaunchGridAsync
 *     data["__cuLaunchGridAsync"] = <intptr_t>__cuLaunchGridAsync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchGrid_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7685, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7687
 *     data["__cuLaunchGrid"] = <intptr_t>__cuLaunchGrid
 *     global __cuLaunchGridAsync
 *     data["__cuLaunchGridAsync"] = <intptr_t>__cuLaunchGridAsync             # <<<<<<<<<<<<<<
 *     global __cuParamSetTexRef
 *     data["__cuParamSetTexRef"] = <intptr_t>__cuParamSetTexRef
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLaunchGridAsync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7689
 *     data["__cuLaunchGridAsync"] = <intptr_t>__cuLaunchGridAsync
 *     global __cuParamSetTexRef
 *     data["__cuParamSetTexRef"] = <intptr_t>__cuParamSetTexRef             # <<<<<<<<<<<<<<
 *     global __cuFuncSetSharedMemConfig
 *     data["__cuFuncSetSharedMemConfig"] = <intptr_t>__cuFuncSetSharedMemConfig
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuParamSetTexRef_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7689, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7691
 *     data["__cuParamSetTexRef"] = <intptr_t>__cuParamSetTexRef
 *     global __cuFuncSetSharedMemConfig
 *     data["__cuFuncSetSharedMemConfig"] = <intptr_t>__cuFuncSetSharedMemConfig             # <<<<<<<<<<<<<<
 *     global __cuGraphCreate
 *     data["__cuGraphCreate"] = <intptr_t>__cuGraphCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuFuncSetSharedMemConfig_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7691, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7693
 *     data["__cuFuncSetSharedMemConfig"] = <intptr_t>__cuFuncSetSharedMemConfig
 *     global __cuGraphCreate
 *     data["__cuGraphCreate"] = <intptr_t>__cuGraphCreate             # <<<<<<<<<<<<<<
 *     global __cuGraphAddKernelNode_v2
 *     data["__cuGraphAddKernelNode_v2"] = <intptr_t>__cuGraphAddKernelNode_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7695
 *     data["__cuGraphCreate"] = <intptr_t>__cuGraphCreate
 *     global __cuGraphAddKernelNode_v2
 *     data["__cuGraphAddKernelNode_v2"] = <intptr_t>__cuGraphAddKernelNode_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetParams_v2
 *     data["__cuGraphKernelNodeGetParams_v2"] = <intptr_t>__cuGraphKernelNodeGetParams_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddKernelNode_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7695, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7697
 *     data["__cuGraphAddKernelNode_v2"] = <intptr_t>__cuGraphAddKernelNode_v2
 *     global __cuGraphKernelNodeGetParams_v2
 *     data["__cuGraphKernelNodeGetParams_v2"] = <intptr_t>__cuGraphKernelNodeGetParams_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetParams_v2
 *     data["__cuGraphKernelNodeSetParams_v2"] = <intptr_t>__cuGraphKernelNodeSetParams_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphKernelNodeGetParams_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7697, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7699
 *     data["__cuGraphKernelNodeGetParams_v2"] = <intptr_t>__cuGraphKernelNodeGetParams_v2
 *     global __cuGraphKernelNodeSetParams_v2
 *     data["__cuGraphKernelNodeSetParams_v2"] = <intptr_t>__cuGraphKernelNodeSetParams_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemcpyNode
 *     data["__cuGraphAddMemcpyNode"] = <intptr_t>__cuGraphAddMemcpyNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphKernelNodeSetParams_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7699, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7701
 *     data["__cuGraphKernelNodeSetParams_v2"] = <intptr_t>__cuGraphKernelNodeSetParams_v2
 *     global __cuGraphAddMemcpyNode
 *     data["__cuGraphAddMemcpyNode"] = <intptr_t>__cuGraphAddMemcpyNode             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeGetParams
 *     data["__cuGraphMemcpyNodeGetParams"] = <intptr_t>__cuGraphMemcpyNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddMemcpyNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7703
 *     data["__cuGraphAddMemcpyNode"] = <intptr_t>__cuGraphAddMemcpyNode
 *     global __cuGraphMemcpyNodeGetParams
 *     data["__cuGraphMemcpyNodeGetParams"] = <intptr_t>__cuGraphMemcpyNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphMemcpyNodeSetParams
 *     data["__cuGraphMemcpyNodeSetParams"] = <intptr_t>__cuGraphMemcpyNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemcpyNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7705
 *     data["__cuGraphMemcpyNodeGetParams"] = <intptr_t>__cuGraphMemcpyNodeGetParams
 *     global __cuGraphMemcpyNodeSetParams
 *     data["__cuGraphMemcpyNodeSetParams"] = <intptr_t>__cuGraphMemcpyNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemsetNode
 *     data["__cuGraphAddMemsetNode"] = <intptr_t>__cuGraphAddMemsetNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemcpyNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7707
 *     data["__cuGraphMemcpyNodeSetParams"] = <intptr_t>__cuGraphMemcpyNodeSetParams
 *     global __cuGraphAddMemsetNode
 *     data["__cuGraphAddMemsetNode"] = <intptr_t>__cuGraphAddMemsetNode             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeGetParams
 *     data["__cuGraphMemsetNodeGetParams"] = <intptr_t>__cuGraphMemsetNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddMemsetNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7707, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7709
 *     data["__cuGraphAddMemsetNode"] = <intptr_t>__cuGraphAddMemsetNode
 *     global __cuGraphMemsetNodeGetParams
 *     data["__cuGraphMemsetNodeGetParams"] = <intptr_t>__cuGraphMemsetNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphMemsetNodeSetParams
 *     data["__cuGraphMemsetNodeSetParams"] = <intptr_t>__cuGraphMemsetNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemsetNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7711
 *     data["__cuGraphMemsetNodeGetParams"] = <intptr_t>__cuGraphMemsetNodeGetParams
 *     global __cuGraphMemsetNodeSetParams
 *     data["__cuGraphMemsetNodeSetParams"] = <intptr_t>__cuGraphMemsetNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddHostNode
 *     data["__cuGraphAddHostNode"] = <intptr_t>__cuGraphAddHostNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemsetNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7713
 *     data["__cuGraphMemsetNodeSetParams"] = <intptr_t>__cuGraphMemsetNodeSetParams
 *     global __cuGraphAddHostNode
 *     data["__cuGraphAddHostNode"] = <intptr_t>__cuGraphAddHostNode             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeGetParams
 *     data["__cuGraphHostNodeGetParams"] = <intptr_t>__cuGraphHostNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddHostNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7715
 *     data["__cuGraphAddHostNode"] = <intptr_t>__cuGraphAddHostNode
 *     global __cuGraphHostNodeGetParams
 *     data["__cuGraphHostNodeGetParams"] = <intptr_t>__cuGraphHostNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphHostNodeSetParams
 *     data["__cuGraphHostNodeSetParams"] = <intptr_t>__cuGraphHostNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphHostNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7715, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7717
 *     data["__cuGraphHostNodeGetParams"] = <intptr_t>__cuGraphHostNodeGetParams
 *     global __cuGraphHostNodeSetParams
 *     data["__cuGraphHostNodeSetParams"] = <intptr_t>__cuGraphHostNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddChildGraphNode
 *     data["__cuGraphAddChildGraphNode"] = <intptr_t>__cuGraphAddChildGraphNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphHostNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7719
 *     data["__cuGraphHostNodeSetParams"] = <intptr_t>__cuGraphHostNodeSetParams
 *     global __cuGraphAddChildGraphNode
 *     data["__cuGraphAddChildGraphNode"] = <intptr_t>__cuGraphAddChildGraphNode             # <<<<<<<<<<<<<<
 *     global __cuGraphChildGraphNodeGetGraph
 *     data["__cuGraphChildGraphNodeGetGraph"] = <intptr_t>__cuGraphChildGraphNodeGetGraph
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddChildGraphNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7719, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7721
 *     data["__cuGraphAddChildGraphNode"] = <intptr_t>__cuGraphAddChildGraphNode
 *     global __cuGraphChildGraphNodeGetGraph
 *     data["__cuGraphChildGraphNodeGetGraph"] = <intptr_t>__cuGraphChildGraphNodeGetGraph             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEmptyNode
 *     data["__cuGraphAddEmptyNode"] = <intptr_t>__cuGraphAddEmptyNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphChildGraphNodeGetGraph_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7721, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7723
 *     data["__cuGraphChildGraphNodeGetGraph"] = <intptr_t>__cuGraphChildGraphNodeGetGraph
 *     global __cuGraphAddEmptyNode
 *     data["__cuGraphAddEmptyNode"] = <intptr_t>__cuGraphAddEmptyNode             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventRecordNode
 *     data["__cuGraphAddEventRecordNode"] = <intptr_t>__cuGraphAddEventRecordNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddEmptyNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7723, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7725
 *     data["__cuGraphAddEmptyNode"] = <intptr_t>__cuGraphAddEmptyNode
 *     global __cuGraphAddEventRecordNode
 *     data["__cuGraphAddEventRecordNode"] = <intptr_t>__cuGraphAddEventRecordNode             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeGetEvent
 *     data["__cuGraphEventRecordNodeGetEvent"] = <intptr_t>__cuGraphEventRecordNodeGetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddEventRecordNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7725, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7727
 *     data["__cuGraphAddEventRecordNode"] = <intptr_t>__cuGraphAddEventRecordNode
 *     global __cuGraphEventRecordNodeGetEvent
 *     data["__cuGraphEventRecordNodeGetEvent"] = <intptr_t>__cuGraphEventRecordNodeGetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphEventRecordNodeSetEvent
 *     data["__cuGraphEventRecordNodeSetEvent"] = <intptr_t>__cuGraphEventRecordNodeSetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphEventRecordNodeGetEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7727, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7729
 *     data["__cuGraphEventRecordNodeGetEvent"] = <intptr_t>__cuGraphEventRecordNodeGetEvent
 *     global __cuGraphEventRecordNodeSetEvent
 *     data["__cuGraphEventRecordNodeSetEvent"] = <intptr_t>__cuGraphEventRecordNodeSetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphAddEventWaitNode
 *     data["__cuGraphAddEventWaitNode"] = <intptr_t>__cuGraphAddEventWaitNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphEventRecordNodeSetEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7729, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7731
 *     data["__cuGraphEventRecordNodeSetEvent"] = <intptr_t>__cuGraphEventRecordNodeSetEvent
 *     global __cuGraphAddEventWaitNode
 *     data["__cuGraphAddEventWaitNode"] = <intptr_t>__cuGraphAddEventWaitNode             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeGetEvent
 *     data["__cuGraphEventWaitNodeGetEvent"] = <intptr_t>__cuGraphEventWaitNodeGetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddEventWaitNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7731, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7733
 *     data["__cuGraphAddEventWaitNode"] = <intptr_t>__cuGraphAddEventWaitNode
 *     global __cuGraphEventWaitNodeGetEvent
 *     data["__cuGraphEventWaitNodeGetEvent"] = <intptr_t>__cuGraphEventWaitNodeGetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphEventWaitNodeSetEvent
 *     data["__cuGraphEventWaitNodeSetEvent"] = <intptr_t>__cuGraphEventWaitNodeSetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphEventWaitNodeGetEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7735
 *     data["__cuGraphEventWaitNodeGetEvent"] = <intptr_t>__cuGraphEventWaitNodeGetEvent
 *     global __cuGraphEventWaitNodeSetEvent
 *     data["__cuGraphEventWaitNodeSetEvent"] = <intptr_t>__cuGraphEventWaitNodeSetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphAddExternalSemaphoresSignalNode
 *     data["__cuGraphAddExternalSemaphoresSignalNode"] = <intptr_t>__cuGraphAddExternalSemaphoresSignalNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphEventWaitNodeSetEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7735, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7737
 *     data["__cuGraphEventWaitNodeSetEvent"] = <intptr_t>__cuGraphEventWaitNodeSetEvent
 *     global __cuGraphAddExternalSemaphoresSignalNode
 *     data["__cuGraphAddExternalSemaphoresSignalNode"] = <intptr_t>__cuGraphAddExternalSemaphoresSignalNode             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddExternalSemaphoresSi, __pyx_t_3) < 0))) __PYX_ERR(0, 7737, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7739
 *     data["__cuGraphAddExternalSemaphoresSignalNode"] = <intptr_t>__cuGraphAddExternalSemaphoresSignalNode
 *     global __cuGraphExternalSemaphoresSignalNodeGetParams
 *     data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExternalSemaphoresSigna, __pyx_t_3) < 0))) __PYX_ERR(0, 7739, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7741
 *     data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeGetParams
 *     global __cuGraphExternalSemaphoresSignalNodeSetParams
 *     data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddExternalSemaphoresWaitNode
 *     data["__cuGraphAddExternalSemaphoresWaitNode"] = <intptr_t>__cuGraphAddExternalSemaphoresWaitNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExternalSemaphoresSigna_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7743
 *     data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresSignalNodeSetParams
 *     global __cuGraphAddExternalSemaphoresWaitNode
 *     data["__cuGraphAddExternalSemaphoresWaitNode"] = <intptr_t>__cuGraphAddExternalSemaphoresWaitNode             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddExternalSemaphoresWa, __pyx_t_3) < 0))) __PYX_ERR(0, 7743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7745
 *     data["__cuGraphAddExternalSemaphoresWaitNode"] = <intptr_t>__cuGraphAddExternalSemaphoresWaitNode
 *     global __cuGraphExternalSemaphoresWaitNodeGetParams
 *     data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExternalSemaphoresWaitN, __pyx_t_3) < 0))) __PYX_ERR(0, 7745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7747
 *     data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeGetParams
 *     global __cuGraphExternalSemaphoresWaitNodeSetParams
 *     data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddBatchMemOpNode
 *     data["__cuGraphAddBatchMemOpNode"] = <intptr_t>__cuGraphAddBatchMemOpNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExternalSemaphoresWaitN_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7747, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7749
 *     data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExternalSemaphoresWaitNodeSetParams
 *     global __cuGraphAddBatchMemOpNode
 *     data["__cuGraphAddBatchMemOpNode"] = <intptr_t>__cuGraphAddBatchMemOpNode             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeGetParams
 *     data["__cuGraphBatchMemOpNodeGetParams"] = <intptr_t>__cuGraphBatchMemOpNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddBatchMemOpNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7751
 *     data["__cuGraphAddBatchMemOpNode"] = <intptr_t>__cuGraphAddBatchMemOpNode
 *     global __cuGraphBatchMemOpNodeGetParams
 *     data["__cuGraphBatchMemOpNodeGetParams"] = <intptr_t>__cuGraphBatchMemOpNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphBatchMemOpNodeSetParams
 *     data["__cuGraphBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphBatchMemOpNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphBatchMemOpNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7751, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7753
 *     data["__cuGraphBatchMemOpNodeGetParams"] = <intptr_t>__cuGraphBatchMemOpNodeGetParams
 *     global __cuGraphBatchMemOpNodeSetParams
 *     data["__cuGraphBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphBatchMemOpNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     data["__cuGraphExecBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphExecBatchMemOpNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphBatchMemOpNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7753, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7755
 *     data["__cuGraphBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphBatchMemOpNodeSetParams
 *     global __cuGraphExecBatchMemOpNodeSetParams
 *     data["__cuGraphExecBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphExecBatchMemOpNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemAllocNode
 *     data["__cuGraphAddMemAllocNode"] = <intptr_t>__cuGraphAddMemAllocNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecBatchMemOpNodeSetPa, __pyx_t_3) < 0))) __PYX_ERR(0, 7755, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7757
 *     data["__cuGraphExecBatchMemOpNodeSetParams"] = <intptr_t>__cuGraphExecBatchMemOpNodeSetParams
 *     global __cuGraphAddMemAllocNode
 *     data["__cuGraphAddMemAllocNode"] = <intptr_t>__cuGraphAddMemAllocNode             # <<<<<<<<<<<<<<
 *     global __cuGraphMemAllocNodeGetParams
 *     data["__cuGraphMemAllocNodeGetParams"] = <intptr_t>__cuGraphMemAllocNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddMemAllocNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7757, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7759
 *     data["__cuGraphAddMemAllocNode"] = <intptr_t>__cuGraphAddMemAllocNode
 *     global __cuGraphMemAllocNodeGetParams
 *     data["__cuGraphMemAllocNodeGetParams"] = <intptr_t>__cuGraphMemAllocNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphAddMemFreeNode
 *     data["__cuGraphAddMemFreeNode"] = <intptr_t>__cuGraphAddMemFreeNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemAllocNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7759, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7761
 *     data["__cuGraphMemAllocNodeGetParams"] = <intptr_t>__cuGraphMemAllocNodeGetParams
 *     global __cuGraphAddMemFreeNode
 *     data["__cuGraphAddMemFreeNode"] = <intptr_t>__cuGraphAddMemFreeNode             # <<<<<<<<<<<<<<
 *     global __cuGraphMemFreeNodeGetParams
 *     data["__cuGraphMemFreeNodeGetParams"] = <intptr_t>__cuGraphMemFreeNodeGetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddMemFreeNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7763
 *     data["__cuGraphAddMemFreeNode"] = <intptr_t>__cuGraphAddMemFreeNode
 *     global __cuGraphMemFreeNodeGetParams
 *     data["__cuGraphMemFreeNodeGetParams"] = <intptr_t>__cuGraphMemFreeNodeGetParams             # <<<<<<<<<<<<<<
 *     global __cuDeviceGraphMemTrim
 *     data["__cuDeviceGraphMemTrim"] = <intptr_t>__cuDeviceGraphMemTrim
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphMemFreeNodeGetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7763, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7765
 *     data["__cuGraphMemFreeNodeGetParams"] = <intptr_t>__cuGraphMemFreeNodeGetParams
 *     global __cuDeviceGraphMemTrim
 *     data["__cuDeviceGraphMemTrim"] = <intptr_t>__cuDeviceGraphMemTrim             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetGraphMemAttribute
 *     data["__cuDeviceGetGraphMemAttribute"] = <intptr_t>__cuDeviceGetGraphMemAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGraphMemTrim_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7765, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7767
 *     data["__cuDeviceGraphMemTrim"] = <intptr_t>__cuDeviceGraphMemTrim
 *     global __cuDeviceGetGraphMemAttribute
 *     data["__cuDeviceGetGraphMemAttribute"] = <intptr_t>__cuDeviceGetGraphMemAttribute             # <<<<<<<<<<<<<<
 *     global __cuDeviceSetGraphMemAttribute
 *     data["__cuDeviceSetGraphMemAttribute"] = <intptr_t>__cuDeviceSetGraphMemAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetGraphMemAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7767, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7769
 *     data["__cuDeviceGetGraphMemAttribute"] = <intptr_t>__cuDeviceGetGraphMemAttribute
 *     global __cuDeviceSetGraphMemAttribute
 *     data["__cuDeviceSetGraphMemAttribute"] = <intptr_t>__cuDeviceSetGraphMemAttribute             # <<<<<<<<<<<<<<
 *     global __cuGraphClone
 *     data["__cuGraphClone"] = <intptr_t>__cuGraphClone
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceSetGraphMemAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7769, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7771
 *     data["__cuDeviceSetGraphMemAttribute"] = <intptr_t>__cuDeviceSetGraphMemAttribute
 *     global __cuGraphClone
 *     data["__cuGraphClone"] = <intptr_t>__cuGraphClone             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeFindInClone
 *     data["__cuGraphNodeFindInClone"] = <intptr_t>__cuGraphNodeFindInClone
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphClone_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7771, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7773
 *     data["__cuGraphClone"] = <intptr_t>__cuGraphClone
 *     global __cuGraphNodeFindInClone
 *     data["__cuGraphNodeFindInClone"] = <intptr_t>__cuGraphNodeFindInClone             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetType
 *     data["__cuGraphNodeGetType"] = <intptr_t>__cuGraphNodeGetType
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeFindInClone_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7775
 *     data["__cuGraphNodeFindInClone"] = <intptr_t>__cuGraphNodeFindInClone
 *     global __cuGraphNodeGetType
 *     data["__cuGraphNodeGetType"] = <intptr_t>__cuGraphNodeGetType             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetContainingGraph
 *     data["__cuGraphNodeGetContainingGraph"] = <intptr_t>__cuGraphNodeGetContainingGraph
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetType_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7775, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7777
 *     data["__cuGraphNodeGetType"] = <intptr_t>__cuGraphNodeGetType
 *     global __cuGraphNodeGetContainingGraph
 *     data["__cuGraphNodeGetContainingGraph"] = <intptr_t>__cuGraphNodeGetContainingGraph             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetLocalId
 *     data["__cuGraphNodeGetLocalId"] = <intptr_t>__cuGraphNodeGetLocalId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetContainingGraph_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7779
 *     data["__cuGraphNodeGetContainingGraph"] = <intptr_t>__cuGraphNodeGetContainingGraph
 *     global __cuGraphNodeGetLocalId
 *     data["__cuGraphNodeGetLocalId"] = <intptr_t>__cuGraphNodeGetLocalId             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetToolsId
 *     data["__cuGraphNodeGetToolsId"] = <intptr_t>__cuGraphNodeGetToolsId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetLocalId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7779, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7781
 *     data["__cuGraphNodeGetLocalId"] = <intptr_t>__cuGraphNodeGetLocalId
 *     global __cuGraphNodeGetToolsId
 *     data["__cuGraphNodeGetToolsId"] = <intptr_t>__cuGraphNodeGetToolsId             # <<<<<<<<<<<<<<
 *     global __cuGraphGetId
 *     data["__cuGraphGetId"] = <intptr_t>__cuGraphGetId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetToolsId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7781, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7783
 *     data["__cuGraphNodeGetToolsId"] = <intptr_t>__cuGraphNodeGetToolsId
 *     global __cuGraphGetId
 *     data["__cuGraphGetId"] = <intptr_t>__cuGraphGetId             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetId
 *     data["__cuGraphExecGetId"] = <intptr_t>__cuGraphExecGetId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphGetId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7783, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7785
 *     data["__cuGraphGetId"] = <intptr_t>__cuGraphGetId
 *     global __cuGraphExecGetId
 *     data["__cuGraphExecGetId"] = <intptr_t>__cuGraphExecGetId             # <<<<<<<<<<<<<<
 *     global __cuGraphGetNodes
 *     data["__cuGraphGetNodes"] = <intptr_t>__cuGraphGetNodes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecGetId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7787
 *     data["__cuGraphExecGetId"] = <intptr_t>__cuGraphExecGetId
 *     global __cuGraphGetNodes
 *     data["__cuGraphGetNodes"] = <intptr_t>__cuGraphGetNodes             # <<<<<<<<<<<<<<
 *     global __cuGraphGetRootNodes
 *     data["__cuGraphGetRootNodes"] = <intptr_t>__cuGraphGetRootNodes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphGetNodes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7787, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7789
 *     data["__cuGraphGetNodes"] = <intptr_t>__cuGraphGetNodes
 *     global __cuGraphGetRootNodes
 *     data["__cuGraphGetRootNodes"] = <intptr_t>__cuGraphGetRootNodes             # <<<<<<<<<<<<<<
 *     global __cuGraphGetEdges_v2
 *     data["__cuGraphGetEdges_v2"] = <intptr_t>__cuGraphGetEdges_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphGetRootNodes_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7789, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7791
 *     data["__cuGraphGetRootNodes"] = <intptr_t>__cuGraphGetRootNodes
 *     global __cuGraphGetEdges_v2
 *     data["__cuGraphGetEdges_v2"] = <intptr_t>__cuGraphGetEdges_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependencies_v2
 *     data["__cuGraphNodeGetDependencies_v2"] = <intptr_t>__cuGraphNodeGetDependencies_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphGetEdges_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7791, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7793
 *     data["__cuGraphGetEdges_v2"] = <intptr_t>__cuGraphGetEdges_v2
 *     global __cuGraphNodeGetDependencies_v2
 *     data["__cuGraphNodeGetDependencies_v2"] = <intptr_t>__cuGraphNodeGetDependencies_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetDependentNodes_v2
 *     data["__cuGraphNodeGetDependentNodes_v2"] = <intptr_t>__cuGraphNodeGetDependentNodes_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetDependencies_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7793, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7795
 *     data["__cuGraphNodeGetDependencies_v2"] = <intptr_t>__cuGraphNodeGetDependencies_v2
 *     global __cuGraphNodeGetDependentNodes_v2
 *     data["__cuGraphNodeGetDependentNodes_v2"] = <intptr_t>__cuGraphNodeGetDependentNodes_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphAddDependencies_v2
 *     data["__cuGraphAddDependencies_v2"] = <intptr_t>__cuGraphAddDependencies_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetDependentNodes_v, __pyx_t_3) < 0))) __PYX_ERR(0, 7795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7797
 *     data["__cuGraphNodeGetDependentNodes_v2"] = <intptr_t>__cuGraphNodeGetDependentNodes_v2
 *     global __cuGraphAddDependencies_v2
 *     data["__cuGraphAddDependencies_v2"] = <intptr_t>__cuGraphAddDependencies_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphRemoveDependencies_v2
 *     data["__cuGraphRemoveDependencies_v2"] = <intptr_t>__cuGraphRemoveDependencies_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddDependencies_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7797, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7799
 *     data["__cuGraphAddDependencies_v2"] = <intptr_t>__cuGraphAddDependencies_v2
 *     global __cuGraphRemoveDependencies_v2
 *     data["__cuGraphRemoveDependencies_v2"] = <intptr_t>__cuGraphRemoveDependencies_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroyNode
 *     data["__cuGraphDestroyNode"] = <intptr_t>__cuGraphDestroyNode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphRemoveDependencies_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7799, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7801
 *     data["__cuGraphRemoveDependencies_v2"] = <intptr_t>__cuGraphRemoveDependencies_v2
 *     global __cuGraphDestroyNode
 *     data["__cuGraphDestroyNode"] = <intptr_t>__cuGraphDestroyNode             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithFlags
 *     data["__cuGraphInstantiateWithFlags"] = <intptr_t>__cuGraphInstantiateWithFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7801, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphDestroyNode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7801, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7803
 *     data["__cuGraphDestroyNode"] = <intptr_t>__cuGraphDestroyNode
 *     global __cuGraphInstantiateWithFlags
 *     data["__cuGraphInstantiateWithFlags"] = <intptr_t>__cuGraphInstantiateWithFlags             # <<<<<<<<<<<<<<
 *     global __cuGraphInstantiateWithParams
 *     data["__cuGraphInstantiateWithParams"] = <intptr_t>__cuGraphInstantiateWithParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphInstantiateWithFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7803, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7805
 *     data["__cuGraphInstantiateWithFlags"] = <intptr_t>__cuGraphInstantiateWithFlags
 *     global __cuGraphInstantiateWithParams
 *     data["__cuGraphInstantiateWithParams"] = <intptr_t>__cuGraphInstantiateWithParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecGetFlags
 *     data["__cuGraphExecGetFlags"] = <intptr_t>__cuGraphExecGetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphInstantiateWithParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7807
 *     data["__cuGraphInstantiateWithParams"] = <intptr_t>__cuGraphInstantiateWithParams
 *     global __cuGraphExecGetFlags
 *     data["__cuGraphExecGetFlags"] = <intptr_t>__cuGraphExecGetFlags             # <<<<<<<<<<<<<<
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     data["__cuGraphExecKernelNodeSetParams_v2"] = <intptr_t>__cuGraphExecKernelNodeSetParams_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecGetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7807, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7809
 *     data["__cuGraphExecGetFlags"] = <intptr_t>__cuGraphExecGetFlags
 *     global __cuGraphExecKernelNodeSetParams_v2
 *     data["__cuGraphExecKernelNodeSetParams_v2"] = <intptr_t>__cuGraphExecKernelNodeSetParams_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemcpyNodeSetParams
 *     data["__cuGraphExecMemcpyNodeSetParams"] = <intptr_t>__cuGraphExecMemcpyNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecKernelNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7809, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7811
 *     data["__cuGraphExecKernelNodeSetParams_v2"] = <intptr_t>__cuGraphExecKernelNodeSetParams_v2
 *     global __cuGraphExecMemcpyNodeSetParams
 *     data["__cuGraphExecMemcpyNodeSetParams"] = <intptr_t>__cuGraphExecMemcpyNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecMemsetNodeSetParams
 *     data["__cuGraphExecMemsetNodeSetParams"] = <intptr_t>__cuGraphExecMemsetNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecMemcpyNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7813
 *     data["__cuGraphExecMemcpyNodeSetParams"] = <intptr_t>__cuGraphExecMemcpyNodeSetParams
 *     global __cuGraphExecMemsetNodeSetParams
 *     data["__cuGraphExecMemsetNodeSetParams"] = <intptr_t>__cuGraphExecMemsetNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecHostNodeSetParams
 *     data["__cuGraphExecHostNodeSetParams"] = <intptr_t>__cuGraphExecHostNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecMemsetNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7815
 *     data["__cuGraphExecMemsetNodeSetParams"] = <intptr_t>__cuGraphExecMemsetNodeSetParams
 *     global __cuGraphExecHostNodeSetParams
 *     data["__cuGraphExecHostNodeSetParams"] = <intptr_t>__cuGraphExecHostNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecChildGraphNodeSetParams
 *     data["__cuGraphExecChildGraphNodeSetParams"] = <intptr_t>__cuGraphExecChildGraphNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecHostNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7817
 *     data["__cuGraphExecHostNodeSetParams"] = <intptr_t>__cuGraphExecHostNodeSetParams
 *     global __cuGraphExecChildGraphNodeSetParams
 *     data["__cuGraphExecChildGraphNodeSetParams"] = <intptr_t>__cuGraphExecChildGraphNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     data["__cuGraphExecEventRecordNodeSetEvent"] = <intptr_t>__cuGraphExecEventRecordNodeSetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecChildGraphNodeSetPa, __pyx_t_3) < 0))) __PYX_ERR(0, 7817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7819
 *     data["__cuGraphExecChildGraphNodeSetParams"] = <intptr_t>__cuGraphExecChildGraphNodeSetParams
 *     global __cuGraphExecEventRecordNodeSetEvent
 *     data["__cuGraphExecEventRecordNodeSetEvent"] = <intptr_t>__cuGraphExecEventRecordNodeSetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     data["__cuGraphExecEventWaitNodeSetEvent"] = <intptr_t>__cuGraphExecEventWaitNodeSetEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecEventRecordNodeSetE, __pyx_t_3) < 0))) __PYX_ERR(0, 7819, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7821
 *     data["__cuGraphExecEventRecordNodeSetEvent"] = <intptr_t>__cuGraphExecEventRecordNodeSetEvent
 *     global __cuGraphExecEventWaitNodeSetEvent
 *     data["__cuGraphExecEventWaitNodeSetEvent"] = <intptr_t>__cuGraphExecEventWaitNodeSetEvent             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresSignalNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecEventWaitNodeSetEve, __pyx_t_3) < 0))) __PYX_ERR(0, 7821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7823
 *     data["__cuGraphExecEventWaitNodeSetEvent"] = <intptr_t>__cuGraphExecEventWaitNodeSetEvent
 *     global __cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresSignalNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresWaitNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecExternalSemaphoresS, __pyx_t_3) < 0))) __PYX_ERR(0, 7823, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7825
 *     data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresSignalNodeSetParams
 *     global __cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresWaitNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetEnabled
 *     data["__cuGraphNodeSetEnabled"] = <intptr_t>__cuGraphNodeSetEnabled
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecExternalSemaphoresW, __pyx_t_3) < 0))) __PYX_ERR(0, 7825, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7827
 *     data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = <intptr_t>__cuGraphExecExternalSemaphoresWaitNodeSetParams
 *     global __cuGraphNodeSetEnabled
 *     data["__cuGraphNodeSetEnabled"] = <intptr_t>__cuGraphNodeSetEnabled             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeGetEnabled
 *     data["__cuGraphNodeGetEnabled"] = <intptr_t>__cuGraphNodeGetEnabled
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeSetEnabled_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7829
 *     data["__cuGraphNodeSetEnabled"] = <intptr_t>__cuGraphNodeSetEnabled
 *     global __cuGraphNodeGetEnabled
 *     data["__cuGraphNodeGetEnabled"] = <intptr_t>__cuGraphNodeGetEnabled             # <<<<<<<<<<<<<<
 *     global __cuGraphUpload
 *     data["__cuGraphUpload"] = <intptr_t>__cuGraphUpload
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeGetEnabled_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7829, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7831
 *     data["__cuGraphNodeGetEnabled"] = <intptr_t>__cuGraphNodeGetEnabled
 *     global __cuGraphUpload
 *     data["__cuGraphUpload"] = <intptr_t>__cuGraphUpload             # <<<<<<<<<<<<<<
 *     global __cuGraphLaunch
 *     data["__cuGraphLaunch"] = <intptr_t>__cuGraphLaunch
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphUpload_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7831, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7833
 *     data["__cuGraphUpload"] = <intptr_t>__cuGraphUpload
 *     global __cuGraphLaunch
 *     data["__cuGraphLaunch"] = <intptr_t>__cuGraphLaunch             # <<<<<<<<<<<<<<
 *     global __cuGraphExecDestroy
 *     data["__cuGraphExecDestroy"] = <intptr_t>__cuGraphExecDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphLaunch_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7835
 *     data["__cuGraphLaunch"] = <intptr_t>__cuGraphLaunch
 *     global __cuGraphExecDestroy
 *     data["__cuGraphExecDestroy"] = <intptr_t>__cuGraphExecDestroy             # <<<<<<<<<<<<<<
 *     global __cuGraphDestroy
 *     data["__cuGraphDestroy"] = <intptr_t>__cuGraphDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7837
 *     data["__cuGraphExecDestroy"] = <intptr_t>__cuGraphExecDestroy
 *     global __cuGraphDestroy
 *     data["__cuGraphDestroy"] = <intptr_t>__cuGraphDestroy             # <<<<<<<<<<<<<<
 *     global __cuGraphExecUpdate_v2
 *     data["__cuGraphExecUpdate_v2"] = <intptr_t>__cuGraphExecUpdate_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7837, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7839
 *     data["__cuGraphDestroy"] = <intptr_t>__cuGraphDestroy
 *     global __cuGraphExecUpdate_v2
 *     data["__cuGraphExecUpdate_v2"] = <intptr_t>__cuGraphExecUpdate_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeCopyAttributes
 *     data["__cuGraphKernelNodeCopyAttributes"] = <intptr_t>__cuGraphKernelNodeCopyAttributes
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecUpdate_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7841
 *     data["__cuGraphExecUpdate_v2"] = <intptr_t>__cuGraphExecUpdate_v2
 *     global __cuGraphKernelNodeCopyAttributes
 *     data["__cuGraphKernelNodeCopyAttributes"] = <intptr_t>__cuGraphKernelNodeCopyAttributes             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeGetAttribute
 *     data["__cuGraphKernelNodeGetAttribute"] = <intptr_t>__cuGraphKernelNodeGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphKernelNodeCopyAttribute, __pyx_t_3) < 0))) __PYX_ERR(0, 7841, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7843
 *     data["__cuGraphKernelNodeCopyAttributes"] = <intptr_t>__cuGraphKernelNodeCopyAttributes
 *     global __cuGraphKernelNodeGetAttribute
 *     data["__cuGraphKernelNodeGetAttribute"] = <intptr_t>__cuGraphKernelNodeGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuGraphKernelNodeSetAttribute
 *     data["__cuGraphKernelNodeSetAttribute"] = <intptr_t>__cuGraphKernelNodeSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphKernelNodeGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7845
 *     data["__cuGraphKernelNodeGetAttribute"] = <intptr_t>__cuGraphKernelNodeGetAttribute
 *     global __cuGraphKernelNodeSetAttribute
 *     data["__cuGraphKernelNodeSetAttribute"] = <intptr_t>__cuGraphKernelNodeSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuGraphDebugDotPrint
 *     data["__cuGraphDebugDotPrint"] = <intptr_t>__cuGraphDebugDotPrint
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphKernelNodeSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7847
 *     data["__cuGraphKernelNodeSetAttribute"] = <intptr_t>__cuGraphKernelNodeSetAttribute
 *     global __cuGraphDebugDotPrint
 *     data["__cuGraphDebugDotPrint"] = <intptr_t>__cuGraphDebugDotPrint             # <<<<<<<<<<<<<<
 *     global __cuUserObjectCreate
 *     data["__cuUserObjectCreate"] = <intptr_t>__cuUserObjectCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphDebugDotPrint_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7847, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7849
 *     data["__cuGraphDebugDotPrint"] = <intptr_t>__cuGraphDebugDotPrint
 *     global __cuUserObjectCreate
 *     data["__cuUserObjectCreate"] = <intptr_t>__cuUserObjectCreate             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRetain
 *     data["__cuUserObjectRetain"] = <intptr_t>__cuUserObjectRetain
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuUserObjectCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7849, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7851
 *     data["__cuUserObjectCreate"] = <intptr_t>__cuUserObjectCreate
 *     global __cuUserObjectRetain
 *     data["__cuUserObjectRetain"] = <intptr_t>__cuUserObjectRetain             # <<<<<<<<<<<<<<
 *     global __cuUserObjectRelease
 *     data["__cuUserObjectRelease"] = <intptr_t>__cuUserObjectRelease
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuUserObjectRetain_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7851, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7853
 *     data["__cuUserObjectRetain"] = <intptr_t>__cuUserObjectRetain
 *     global __cuUserObjectRelease
 *     data["__cuUserObjectRelease"] = <intptr_t>__cuUserObjectRelease             # <<<<<<<<<<<<<<
 *     global __cuGraphRetainUserObject
 *     data["__cuGraphRetainUserObject"] = <intptr_t>__cuGraphRetainUserObject
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuUserObjectRelease_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7853, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7855
 *     data["__cuUserObjectRelease"] = <intptr_t>__cuUserObjectRelease
 *     global __cuGraphRetainUserObject
 *     data["__cuGraphRetainUserObject"] = <intptr_t>__cuGraphRetainUserObject             # <<<<<<<<<<<<<<
 *     global __cuGraphReleaseUserObject
 *     data["__cuGraphReleaseUserObject"] = <intptr_t>__cuGraphReleaseUserObject
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphRetainUserObject_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7857
 *     data["__cuGraphRetainUserObject"] = <intptr_t>__cuGraphRetainUserObject
 *     global __cuGraphReleaseUserObject
 *     data["__cuGraphReleaseUserObject"] = <intptr_t>__cuGraphReleaseUserObject             # <<<<<<<<<<<<<<
 *     global __cuGraphAddNode_v2
 *     data["__cuGraphAddNode_v2"] = <intptr_t>__cuGraphAddNode_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphReleaseUserObject_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7857, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7859
 *     data["__cuGraphReleaseUserObject"] = <intptr_t>__cuGraphReleaseUserObject
 *     global __cuGraphAddNode_v2
 *     data["__cuGraphAddNode_v2"] = <intptr_t>__cuGraphAddNode_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphNodeSetParams
 *     data["__cuGraphNodeSetParams"] = <intptr_t>__cuGraphNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphAddNode_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7859, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7861
 *     data["__cuGraphAddNode_v2"] = <intptr_t>__cuGraphAddNode_v2
 *     global __cuGraphNodeSetParams
 *     data["__cuGraphNodeSetParams"] = <intptr_t>__cuGraphNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphExecNodeSetParams
 *     data["__cuGraphExecNodeSetParams"] = <intptr_t>__cuGraphExecNodeSetParams
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7861, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7863
 *     data["__cuGraphNodeSetParams"] = <intptr_t>__cuGraphNodeSetParams
 *     global __cuGraphExecNodeSetParams
 *     data["__cuGraphExecNodeSetParams"] = <intptr_t>__cuGraphExecNodeSetParams             # <<<<<<<<<<<<<<
 *     global __cuGraphConditionalHandleCreate
 *     data["__cuGraphConditionalHandleCreate"] = <intptr_t>__cuGraphConditionalHandleCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphExecNodeSetParams_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7863, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7865
 *     data["__cuGraphExecNodeSetParams"] = <intptr_t>__cuGraphExecNodeSetParams
 *     global __cuGraphConditionalHandleCreate
 *     data["__cuGraphConditionalHandleCreate"] = <intptr_t>__cuGraphConditionalHandleCreate             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessor
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphConditionalHandleCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7867
 *     data["__cuGraphConditionalHandleCreate"] = <intptr_t>__cuGraphConditionalHandleCreate
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessor             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxActiveBlocksPerM, __pyx_t_3) < 0))) __PYX_ERR(0, 7867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7869
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessor
 *     global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxPotentialBlockSize
 *     data["__cuOccupancyMaxPotentialBlockSize"] = <intptr_t>__cuOccupancyMaxPotentialBlockSize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxActiveBlocksPerM_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7871
 *     data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = <intptr_t>__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
 *     global __cuOccupancyMaxPotentialBlockSize
 *     data["__cuOccupancyMaxPotentialBlockSize"] = <intptr_t>__cuOccupancyMaxPotentialBlockSize             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *     data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = <intptr_t>__cuOccupancyMaxPotentialBlockSizeWithFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxPotentialBlockSi, __pyx_t_3) < 0))) __PYX_ERR(0, 7871, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7873
 *     data["__cuOccupancyMaxPotentialBlockSize"] = <intptr_t>__cuOccupancyMaxPotentialBlockSize
 *     global __cuOccupancyMaxPotentialBlockSizeWithFlags
 *     data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = <intptr_t>__cuOccupancyMaxPotentialBlockSizeWithFlags             # <<<<<<<<<<<<<<
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     data["__cuOccupancyAvailableDynamicSMemPerBlock"] = <intptr_t>__cuOccupancyAvailableDynamicSMemPerBlock
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxPotentialBlockSi_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7873, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7875
 *     data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = <intptr_t>__cuOccupancyMaxPotentialBlockSizeWithFlags
 *     global __cuOccupancyAvailableDynamicSMemPerBlock
 *     data["__cuOccupancyAvailableDynamicSMemPerBlock"] = <intptr_t>__cuOccupancyAvailableDynamicSMemPerBlock             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxPotentialClusterSize
 *     data["__cuOccupancyMaxPotentialClusterSize"] = <intptr_t>__cuOccupancyMaxPotentialClusterSize
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyAvailableDynamicSMe, __pyx_t_3) < 0))) __PYX_ERR(0, 7875, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7877
 *     data["__cuOccupancyAvailableDynamicSMemPerBlock"] = <intptr_t>__cuOccupancyAvailableDynamicSMemPerBlock
 *     global __cuOccupancyMaxPotentialClusterSize
 *     data["__cuOccupancyMaxPotentialClusterSize"] = <intptr_t>__cuOccupancyMaxPotentialClusterSize             # <<<<<<<<<<<<<<
 *     global __cuOccupancyMaxActiveClusters
 *     data["__cuOccupancyMaxActiveClusters"] = <intptr_t>__cuOccupancyMaxActiveClusters
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxPotentialCluster, __pyx_t_3) < 0))) __PYX_ERR(0, 7877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7879
 *     data["__cuOccupancyMaxPotentialClusterSize"] = <intptr_t>__cuOccupancyMaxPotentialClusterSize
 *     global __cuOccupancyMaxActiveClusters
 *     data["__cuOccupancyMaxActiveClusters"] = <intptr_t>__cuOccupancyMaxActiveClusters             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetArray
 *     data["__cuTexRefSetArray"] = <intptr_t>__cuTexRefSetArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7879, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuOccupancyMaxActiveClusters_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7879, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7881
 *     data["__cuOccupancyMaxActiveClusters"] = <intptr_t>__cuOccupancyMaxActiveClusters
 *     global __cuTexRefSetArray
 *     data["__cuTexRefSetArray"] = <intptr_t>__cuTexRefSetArray             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmappedArray
 *     data["__cuTexRefSetMipmappedArray"] = <intptr_t>__cuTexRefSetMipmappedArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7881, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7883
 *     data["__cuTexRefSetArray"] = <intptr_t>__cuTexRefSetArray
 *     global __cuTexRefSetMipmappedArray
 *     data["__cuTexRefSetMipmappedArray"] = <intptr_t>__cuTexRefSetMipmappedArray             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddress_v2
 *     data["__cuTexRefSetAddress_v2"] = <intptr_t>__cuTexRefSetAddress_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetMipmappedArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7883, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7885
 *     data["__cuTexRefSetMipmappedArray"] = <intptr_t>__cuTexRefSetMipmappedArray
 *     global __cuTexRefSetAddress_v2
 *     data["__cuTexRefSetAddress_v2"] = <intptr_t>__cuTexRefSetAddress_v2             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddress2D_v3
 *     data["__cuTexRefSetAddress2D_v3"] = <intptr_t>__cuTexRefSetAddress2D_v3
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetAddress_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7885, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7887
 *     data["__cuTexRefSetAddress_v2"] = <intptr_t>__cuTexRefSetAddress_v2
 *     global __cuTexRefSetAddress2D_v3
 *     data["__cuTexRefSetAddress2D_v3"] = <intptr_t>__cuTexRefSetAddress2D_v3             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFormat
 *     data["__cuTexRefSetFormat"] = <intptr_t>__cuTexRefSetFormat
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetAddress2D_v3_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7887, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7889
 *     data["__cuTexRefSetAddress2D_v3"] = <intptr_t>__cuTexRefSetAddress2D_v3
 *     global __cuTexRefSetFormat
 *     data["__cuTexRefSetFormat"] = <intptr_t>__cuTexRefSetFormat             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetAddressMode
 *     data["__cuTexRefSetAddressMode"] = <intptr_t>__cuTexRefSetAddressMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetFormat_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7889, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7891
 *     data["__cuTexRefSetFormat"] = <intptr_t>__cuTexRefSetFormat
 *     global __cuTexRefSetAddressMode
 *     data["__cuTexRefSetAddressMode"] = <intptr_t>__cuTexRefSetAddressMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFilterMode
 *     data["__cuTexRefSetFilterMode"] = <intptr_t>__cuTexRefSetFilterMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetAddressMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7893
 *     data["__cuTexRefSetAddressMode"] = <intptr_t>__cuTexRefSetAddressMode
 *     global __cuTexRefSetFilterMode
 *     data["__cuTexRefSetFilterMode"] = <intptr_t>__cuTexRefSetFilterMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapFilterMode
 *     data["__cuTexRefSetMipmapFilterMode"] = <intptr_t>__cuTexRefSetMipmapFilterMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetFilterMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7893, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7895
 *     data["__cuTexRefSetFilterMode"] = <intptr_t>__cuTexRefSetFilterMode
 *     global __cuTexRefSetMipmapFilterMode
 *     data["__cuTexRefSetMipmapFilterMode"] = <intptr_t>__cuTexRefSetMipmapFilterMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelBias
 *     data["__cuTexRefSetMipmapLevelBias"] = <intptr_t>__cuTexRefSetMipmapLevelBias
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetMipmapFilterMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7897
 *     data["__cuTexRefSetMipmapFilterMode"] = <intptr_t>__cuTexRefSetMipmapFilterMode
 *     global __cuTexRefSetMipmapLevelBias
 *     data["__cuTexRefSetMipmapLevelBias"] = <intptr_t>__cuTexRefSetMipmapLevelBias             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMipmapLevelClamp
 *     data["__cuTexRefSetMipmapLevelClamp"] = <intptr_t>__cuTexRefSetMipmapLevelClamp
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetMipmapLevelBias_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7899
 *     data["__cuTexRefSetMipmapLevelBias"] = <intptr_t>__cuTexRefSetMipmapLevelBias
 *     global __cuTexRefSetMipmapLevelClamp
 *     data["__cuTexRefSetMipmapLevelClamp"] = <intptr_t>__cuTexRefSetMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetMaxAnisotropy
 *     data["__cuTexRefSetMaxAnisotropy"] = <intptr_t>__cuTexRefSetMaxAnisotropy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetMipmapLevelClamp_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7899, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7901
 *     data["__cuTexRefSetMipmapLevelClamp"] = <intptr_t>__cuTexRefSetMipmapLevelClamp
 *     global __cuTexRefSetMaxAnisotropy
 *     data["__cuTexRefSetMaxAnisotropy"] = <intptr_t>__cuTexRefSetMaxAnisotropy             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetBorderColor
 *     data["__cuTexRefSetBorderColor"] = <intptr_t>__cuTexRefSetBorderColor
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetMaxAnisotropy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7903
 *     data["__cuTexRefSetMaxAnisotropy"] = <intptr_t>__cuTexRefSetMaxAnisotropy
 *     global __cuTexRefSetBorderColor
 *     data["__cuTexRefSetBorderColor"] = <intptr_t>__cuTexRefSetBorderColor             # <<<<<<<<<<<<<<
 *     global __cuTexRefSetFlags
 *     data["__cuTexRefSetFlags"] = <intptr_t>__cuTexRefSetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetBorderColor_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7905
 *     data["__cuTexRefSetBorderColor"] = <intptr_t>__cuTexRefSetBorderColor
 *     global __cuTexRefSetFlags
 *     data["__cuTexRefSetFlags"] = <intptr_t>__cuTexRefSetFlags             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddress_v2
 *     data["__cuTexRefGetAddress_v2"] = <intptr_t>__cuTexRefGetAddress_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefSetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7905, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7907
 *     data["__cuTexRefSetFlags"] = <intptr_t>__cuTexRefSetFlags
 *     global __cuTexRefGetAddress_v2
 *     data["__cuTexRefGetAddress_v2"] = <intptr_t>__cuTexRefGetAddress_v2             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetArray
 *     data["__cuTexRefGetArray"] = <intptr_t>__cuTexRefGetArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7907, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetAddress_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7907, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7909
 *     data["__cuTexRefGetAddress_v2"] = <intptr_t>__cuTexRefGetAddress_v2
 *     global __cuTexRefGetArray
 *     data["__cuTexRefGetArray"] = <intptr_t>__cuTexRefGetArray             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmappedArray
 *     data["__cuTexRefGetMipmappedArray"] = <intptr_t>__cuTexRefGetMipmappedArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7909, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7911
 *     data["__cuTexRefGetArray"] = <intptr_t>__cuTexRefGetArray
 *     global __cuTexRefGetMipmappedArray
 *     data["__cuTexRefGetMipmappedArray"] = <intptr_t>__cuTexRefGetMipmappedArray             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetAddressMode
 *     data["__cuTexRefGetAddressMode"] = <intptr_t>__cuTexRefGetAddressMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetMipmappedArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7913
 *     data["__cuTexRefGetMipmappedArray"] = <intptr_t>__cuTexRefGetMipmappedArray
 *     global __cuTexRefGetAddressMode
 *     data["__cuTexRefGetAddressMode"] = <intptr_t>__cuTexRefGetAddressMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFilterMode
 *     data["__cuTexRefGetFilterMode"] = <intptr_t>__cuTexRefGetFilterMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetAddressMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7913, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7915
 *     data["__cuTexRefGetAddressMode"] = <intptr_t>__cuTexRefGetAddressMode
 *     global __cuTexRefGetFilterMode
 *     data["__cuTexRefGetFilterMode"] = <intptr_t>__cuTexRefGetFilterMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFormat
 *     data["__cuTexRefGetFormat"] = <intptr_t>__cuTexRefGetFormat
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetFilterMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7915, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7917
 *     data["__cuTexRefGetFilterMode"] = <intptr_t>__cuTexRefGetFilterMode
 *     global __cuTexRefGetFormat
 *     data["__cuTexRefGetFormat"] = <intptr_t>__cuTexRefGetFormat             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapFilterMode
 *     data["__cuTexRefGetMipmapFilterMode"] = <intptr_t>__cuTexRefGetMipmapFilterMode
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetFormat_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7917, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7919
 *     data["__cuTexRefGetFormat"] = <intptr_t>__cuTexRefGetFormat
 *     global __cuTexRefGetMipmapFilterMode
 *     data["__cuTexRefGetMipmapFilterMode"] = <intptr_t>__cuTexRefGetMipmapFilterMode             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelBias
 *     data["__cuTexRefGetMipmapLevelBias"] = <intptr_t>__cuTexRefGetMipmapLevelBias
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetMipmapFilterMode_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7921
 *     data["__cuTexRefGetMipmapFilterMode"] = <intptr_t>__cuTexRefGetMipmapFilterMode
 *     global __cuTexRefGetMipmapLevelBias
 *     data["__cuTexRefGetMipmapLevelBias"] = <intptr_t>__cuTexRefGetMipmapLevelBias             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMipmapLevelClamp
 *     data["__cuTexRefGetMipmapLevelClamp"] = <intptr_t>__cuTexRefGetMipmapLevelClamp
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetMipmapLevelBias_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7921, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7923
 *     data["__cuTexRefGetMipmapLevelBias"] = <intptr_t>__cuTexRefGetMipmapLevelBias
 *     global __cuTexRefGetMipmapLevelClamp
 *     data["__cuTexRefGetMipmapLevelClamp"] = <intptr_t>__cuTexRefGetMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetMaxAnisotropy
 *     data["__cuTexRefGetMaxAnisotropy"] = <intptr_t>__cuTexRefGetMaxAnisotropy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetMipmapLevelClamp_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7925
 *     data["__cuTexRefGetMipmapLevelClamp"] = <intptr_t>__cuTexRefGetMipmapLevelClamp
 *     global __cuTexRefGetMaxAnisotropy
 *     data["__cuTexRefGetMaxAnisotropy"] = <intptr_t>__cuTexRefGetMaxAnisotropy             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetBorderColor
 *     data["__cuTexRefGetBorderColor"] = <intptr_t>__cuTexRefGetBorderColor
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetMaxAnisotropy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7925, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7927
 *     data["__cuTexRefGetMaxAnisotropy"] = <intptr_t>__cuTexRefGetMaxAnisotropy
 *     global __cuTexRefGetBorderColor
 *     data["__cuTexRefGetBorderColor"] = <intptr_t>__cuTexRefGetBorderColor             # <<<<<<<<<<<<<<
 *     global __cuTexRefGetFlags
 *     data["__cuTexRefGetFlags"] = <intptr_t>__cuTexRefGetFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetBorderColor_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7927, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7929
 *     data["__cuTexRefGetBorderColor"] = <intptr_t>__cuTexRefGetBorderColor
 *     global __cuTexRefGetFlags
 *     data["__cuTexRefGetFlags"] = <intptr_t>__cuTexRefGetFlags             # <<<<<<<<<<<<<<
 *     global __cuTexRefCreate
 *     data["__cuTexRefCreate"] = <intptr_t>__cuTexRefCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefGetFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7929, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7931
 *     data["__cuTexRefGetFlags"] = <intptr_t>__cuTexRefGetFlags
 *     global __cuTexRefCreate
 *     data["__cuTexRefCreate"] = <intptr_t>__cuTexRefCreate             # <<<<<<<<<<<<<<
 *     global __cuTexRefDestroy
 *     data["__cuTexRefDestroy"] = <intptr_t>__cuTexRefDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7931, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7933
 *     data["__cuTexRefCreate"] = <intptr_t>__cuTexRefCreate
 *     global __cuTexRefDestroy
 *     data["__cuTexRefDestroy"] = <intptr_t>__cuTexRefDestroy             # <<<<<<<<<<<<<<
 *     global __cuSurfRefSetArray
 *     data["__cuSurfRefSetArray"] = <intptr_t>__cuSurfRefSetArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexRefDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7933, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7935
 *     data["__cuTexRefDestroy"] = <intptr_t>__cuTexRefDestroy
 *     global __cuSurfRefSetArray
 *     data["__cuSurfRefSetArray"] = <intptr_t>__cuSurfRefSetArray             # <<<<<<<<<<<<<<
 *     global __cuSurfRefGetArray
 *     data["__cuSurfRefGetArray"] = <intptr_t>__cuSurfRefGetArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSurfRefSetArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7937
 *     data["__cuSurfRefSetArray"] = <intptr_t>__cuSurfRefSetArray
 *     global __cuSurfRefGetArray
 *     data["__cuSurfRefGetArray"] = <intptr_t>__cuSurfRefGetArray             # <<<<<<<<<<<<<<
 *     global __cuTexObjectCreate
 *     data["__cuTexObjectCreate"] = <intptr_t>__cuTexObjectCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSurfRefGetArray_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7937, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7939
 *     data["__cuSurfRefGetArray"] = <intptr_t>__cuSurfRefGetArray
 *     global __cuTexObjectCreate
 *     data["__cuTexObjectCreate"] = <intptr_t>__cuTexObjectCreate             # <<<<<<<<<<<<<<
 *     global __cuTexObjectDestroy
 *     data["__cuTexObjectDestroy"] = <intptr_t>__cuTexObjectDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexObjectCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7939, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7941
 *     data["__cuTexObjectCreate"] = <intptr_t>__cuTexObjectCreate
 *     global __cuTexObjectDestroy
 *     data["__cuTexObjectDestroy"] = <intptr_t>__cuTexObjectDestroy             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceDesc
 *     data["__cuTexObjectGetResourceDesc"] = <intptr_t>__cuTexObjectGetResourceDesc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexObjectDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7941, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7943
 *     data["__cuTexObjectDestroy"] = <intptr_t>__cuTexObjectDestroy
 *     global __cuTexObjectGetResourceDesc
 *     data["__cuTexObjectGetResourceDesc"] = <intptr_t>__cuTexObjectGetResourceDesc             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetTextureDesc
 *     data["__cuTexObjectGetTextureDesc"] = <intptr_t>__cuTexObjectGetTextureDesc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexObjectGetResourceDesc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7945
 *     data["__cuTexObjectGetResourceDesc"] = <intptr_t>__cuTexObjectGetResourceDesc
 *     global __cuTexObjectGetTextureDesc
 *     data["__cuTexObjectGetTextureDesc"] = <intptr_t>__cuTexObjectGetTextureDesc             # <<<<<<<<<<<<<<
 *     global __cuTexObjectGetResourceViewDesc
 *     data["__cuTexObjectGetResourceViewDesc"] = <intptr_t>__cuTexObjectGetResourceViewDesc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexObjectGetTextureDesc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7947
 *     data["__cuTexObjectGetTextureDesc"] = <intptr_t>__cuTexObjectGetTextureDesc
 *     global __cuTexObjectGetResourceViewDesc
 *     data["__cuTexObjectGetResourceViewDesc"] = <intptr_t>__cuTexObjectGetResourceViewDesc             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectCreate
 *     data["__cuSurfObjectCreate"] = <intptr_t>__cuSurfObjectCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTexObjectGetResourceViewDesc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7949
 *     data["__cuTexObjectGetResourceViewDesc"] = <intptr_t>__cuTexObjectGetResourceViewDesc
 *     global __cuSurfObjectCreate
 *     data["__cuSurfObjectCreate"] = <intptr_t>__cuSurfObjectCreate             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectDestroy
 *     data["__cuSurfObjectDestroy"] = <intptr_t>__cuSurfObjectDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7949, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSurfObjectCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7949, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7951
 *     data["__cuSurfObjectCreate"] = <intptr_t>__cuSurfObjectCreate
 *     global __cuSurfObjectDestroy
 *     data["__cuSurfObjectDestroy"] = <intptr_t>__cuSurfObjectDestroy             # <<<<<<<<<<<<<<
 *     global __cuSurfObjectGetResourceDesc
 *     data["__cuSurfObjectGetResourceDesc"] = <intptr_t>__cuSurfObjectGetResourceDesc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSurfObjectDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7951, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7953
 *     data["__cuSurfObjectDestroy"] = <intptr_t>__cuSurfObjectDestroy
 *     global __cuSurfObjectGetResourceDesc
 *     data["__cuSurfObjectGetResourceDesc"] = <intptr_t>__cuSurfObjectGetResourceDesc             # <<<<<<<<<<<<<<
 *     global __cuTensorMapEncodeTiled
 *     data["__cuTensorMapEncodeTiled"] = <intptr_t>__cuTensorMapEncodeTiled
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuSurfObjectGetResourceDesc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7953, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7955
 *     data["__cuSurfObjectGetResourceDesc"] = <intptr_t>__cuSurfObjectGetResourceDesc
 *     global __cuTensorMapEncodeTiled
 *     data["__cuTensorMapEncodeTiled"] = <intptr_t>__cuTensorMapEncodeTiled             # <<<<<<<<<<<<<<
 *     global __cuTensorMapEncodeIm2col
 *     data["__cuTensorMapEncodeIm2col"] = <intptr_t>__cuTensorMapEncodeIm2col
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTensorMapEncodeTiled_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7955, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7957
 *     data["__cuTensorMapEncodeTiled"] = <intptr_t>__cuTensorMapEncodeTiled
 *     global __cuTensorMapEncodeIm2col
 *     data["__cuTensorMapEncodeIm2col"] = <intptr_t>__cuTensorMapEncodeIm2col             # <<<<<<<<<<<<<<
 *     global __cuTensorMapEncodeIm2colWide
 *     data["__cuTensorMapEncodeIm2colWide"] = <intptr_t>__cuTensorMapEncodeIm2colWide
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTensorMapEncodeIm2col_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7957, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7959
 *     data["__cuTensorMapEncodeIm2col"] = <intptr_t>__cuTensorMapEncodeIm2col
 *     global __cuTensorMapEncodeIm2colWide
 *     data["__cuTensorMapEncodeIm2colWide"] = <intptr_t>__cuTensorMapEncodeIm2colWide             # <<<<<<<<<<<<<<
 *     global __cuTensorMapReplaceAddress
 *     data["__cuTensorMapReplaceAddress"] = <intptr_t>__cuTensorMapReplaceAddress
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTensorMapEncodeIm2colWide_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7961
 *     data["__cuTensorMapEncodeIm2colWide"] = <intptr_t>__cuTensorMapEncodeIm2colWide
 *     global __cuTensorMapReplaceAddress
 *     data["__cuTensorMapReplaceAddress"] = <intptr_t>__cuTensorMapReplaceAddress             # <<<<<<<<<<<<<<
 *     global __cuDeviceCanAccessPeer
 *     data["__cuDeviceCanAccessPeer"] = <intptr_t>__cuDeviceCanAccessPeer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuTensorMapReplaceAddress_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7961, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7963
 *     data["__cuTensorMapReplaceAddress"] = <intptr_t>__cuTensorMapReplaceAddress
 *     global __cuDeviceCanAccessPeer
 *     data["__cuDeviceCanAccessPeer"] = <intptr_t>__cuDeviceCanAccessPeer             # <<<<<<<<<<<<<<
 *     global __cuCtxEnablePeerAccess
 *     data["__cuCtxEnablePeerAccess"] = <intptr_t>__cuCtxEnablePeerAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceCanAccessPeer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7963, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7965
 *     data["__cuDeviceCanAccessPeer"] = <intptr_t>__cuDeviceCanAccessPeer
 *     global __cuCtxEnablePeerAccess
 *     data["__cuCtxEnablePeerAccess"] = <intptr_t>__cuCtxEnablePeerAccess             # <<<<<<<<<<<<<<
 *     global __cuCtxDisablePeerAccess
 *     data["__cuCtxDisablePeerAccess"] = <intptr_t>__cuCtxDisablePeerAccess
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxEnablePeerAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7967
 *     data["__cuCtxEnablePeerAccess"] = <intptr_t>__cuCtxEnablePeerAccess
 *     global __cuCtxDisablePeerAccess
 *     data["__cuCtxDisablePeerAccess"] = <intptr_t>__cuCtxDisablePeerAccess             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetP2PAttribute
 *     data["__cuDeviceGetP2PAttribute"] = <intptr_t>__cuDeviceGetP2PAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxDisablePeerAccess_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7969
 *     data["__cuCtxDisablePeerAccess"] = <intptr_t>__cuCtxDisablePeerAccess
 *     global __cuDeviceGetP2PAttribute
 *     data["__cuDeviceGetP2PAttribute"] = <intptr_t>__cuDeviceGetP2PAttribute             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetP2PAtomicCapabilities
 *     data["__cuDeviceGetP2PAtomicCapabilities"] = <intptr_t>__cuDeviceGetP2PAtomicCapabilities
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetP2PAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7971
 *     data["__cuDeviceGetP2PAttribute"] = <intptr_t>__cuDeviceGetP2PAttribute
 *     global __cuDeviceGetP2PAtomicCapabilities
 *     data["__cuDeviceGetP2PAtomicCapabilities"] = <intptr_t>__cuDeviceGetP2PAtomicCapabilities             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnregisterResource
 *     data["__cuGraphicsUnregisterResource"] = <intptr_t>__cuGraphicsUnregisterResource
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetP2PAtomicCapabiliti, __pyx_t_3) < 0))) __PYX_ERR(0, 7971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7973
 *     data["__cuDeviceGetP2PAtomicCapabilities"] = <intptr_t>__cuDeviceGetP2PAtomicCapabilities
 *     global __cuGraphicsUnregisterResource
 *     data["__cuGraphicsUnregisterResource"] = <intptr_t>__cuGraphicsUnregisterResource             # <<<<<<<<<<<<<<
 *     global __cuGraphicsSubResourceGetMappedArray
 *     data["__cuGraphicsSubResourceGetMappedArray"] = <intptr_t>__cuGraphicsSubResourceGetMappedArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsUnregisterResource_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7973, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7975
 *     data["__cuGraphicsUnregisterResource"] = <intptr_t>__cuGraphicsUnregisterResource
 *     global __cuGraphicsSubResourceGetMappedArray
 *     data["__cuGraphicsSubResourceGetMappedArray"] = <intptr_t>__cuGraphicsSubResourceGetMappedArray             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     data["__cuGraphicsResourceGetMappedMipmappedArray"] = <intptr_t>__cuGraphicsResourceGetMappedMipmappedArray
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsSubResourceGetMapped, __pyx_t_3) < 0))) __PYX_ERR(0, 7975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7977
 *     data["__cuGraphicsSubResourceGetMappedArray"] = <intptr_t>__cuGraphicsSubResourceGetMappedArray
 *     global __cuGraphicsResourceGetMappedMipmappedArray
 *     data["__cuGraphicsResourceGetMappedMipmappedArray"] = <intptr_t>__cuGraphicsResourceGetMappedMipmappedArray             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     data["__cuGraphicsResourceGetMappedPointer_v2"] = <intptr_t>__cuGraphicsResourceGetMappedPointer_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsResourceGetMappedMip, __pyx_t_3) < 0))) __PYX_ERR(0, 7977, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7979
 *     data["__cuGraphicsResourceGetMappedMipmappedArray"] = <intptr_t>__cuGraphicsResourceGetMappedMipmappedArray
 *     global __cuGraphicsResourceGetMappedPointer_v2
 *     data["__cuGraphicsResourceGetMappedPointer_v2"] = <intptr_t>__cuGraphicsResourceGetMappedPointer_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     data["__cuGraphicsResourceSetMapFlags_v2"] = <intptr_t>__cuGraphicsResourceSetMapFlags_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsResourceGetMappedPoi, __pyx_t_3) < 0))) __PYX_ERR(0, 7979, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7981
 *     data["__cuGraphicsResourceGetMappedPointer_v2"] = <intptr_t>__cuGraphicsResourceGetMappedPointer_v2
 *     global __cuGraphicsResourceSetMapFlags_v2
 *     data["__cuGraphicsResourceSetMapFlags_v2"] = <intptr_t>__cuGraphicsResourceSetMapFlags_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphicsMapResources
 *     data["__cuGraphicsMapResources"] = <intptr_t>__cuGraphicsMapResources
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsResourceSetMapFlags_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7981, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7983
 *     data["__cuGraphicsResourceSetMapFlags_v2"] = <intptr_t>__cuGraphicsResourceSetMapFlags_v2
 *     global __cuGraphicsMapResources
 *     data["__cuGraphicsMapResources"] = <intptr_t>__cuGraphicsMapResources             # <<<<<<<<<<<<<<
 *     global __cuGraphicsUnmapResources
 *     data["__cuGraphicsUnmapResources"] = <intptr_t>__cuGraphicsUnmapResources
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7983, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsMapResources_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7983, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7985
 *     data["__cuGraphicsMapResources"] = <intptr_t>__cuGraphicsMapResources
 *     global __cuGraphicsUnmapResources
 *     data["__cuGraphicsUnmapResources"] = <intptr_t>__cuGraphicsUnmapResources             # <<<<<<<<<<<<<<
 *     global __cuGetProcAddress_v2
 *     data["__cuGetProcAddress_v2"] = <intptr_t>__cuGetProcAddress_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7985, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsUnmapResources_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7985, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7987
 *     data["__cuGraphicsUnmapResources"] = <intptr_t>__cuGraphicsUnmapResources
 *     global __cuGetProcAddress_v2
 *     data["__cuGetProcAddress_v2"] = <intptr_t>__cuGetProcAddress_v2             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttribute
 *     data["__cuCoredumpGetAttribute"] = <intptr_t>__cuCoredumpGetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGetProcAddress_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7987, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7989
 *     data["__cuGetProcAddress_v2"] = <intptr_t>__cuGetProcAddress_v2
 *     global __cuCoredumpGetAttribute
 *     data["__cuCoredumpGetAttribute"] = <intptr_t>__cuCoredumpGetAttribute             # <<<<<<<<<<<<<<
 *     global __cuCoredumpGetAttributeGlobal
 *     data["__cuCoredumpGetAttributeGlobal"] = <intptr_t>__cuCoredumpGetAttributeGlobal
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCoredumpGetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7989, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7991
 *     data["__cuCoredumpGetAttribute"] = <intptr_t>__cuCoredumpGetAttribute
 *     global __cuCoredumpGetAttributeGlobal
 *     data["__cuCoredumpGetAttributeGlobal"] = <intptr_t>__cuCoredumpGetAttributeGlobal             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttribute
 *     data["__cuCoredumpSetAttribute"] = <intptr_t>__cuCoredumpSetAttribute
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCoredumpGetAttributeGlobal_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7991, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7993
 *     data["__cuCoredumpGetAttributeGlobal"] = <intptr_t>__cuCoredumpGetAttributeGlobal
 *     global __cuCoredumpSetAttribute
 *     data["__cuCoredumpSetAttribute"] = <intptr_t>__cuCoredumpSetAttribute             # <<<<<<<<<<<<<<
 *     global __cuCoredumpSetAttributeGlobal
 *     data["__cuCoredumpSetAttributeGlobal"] = <intptr_t>__cuCoredumpSetAttributeGlobal
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCoredumpSetAttribute_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7993, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7995
 *     data["__cuCoredumpSetAttribute"] = <intptr_t>__cuCoredumpSetAttribute
 *     global __cuCoredumpSetAttributeGlobal
 *     data["__cuCoredumpSetAttributeGlobal"] = <intptr_t>__cuCoredumpSetAttributeGlobal             # <<<<<<<<<<<<<<
 *     global __cuGetExportTable
 *     data["__cuGetExportTable"] = <intptr_t>__cuGetExportTable
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCoredumpSetAttributeGlobal_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7997
 *     data["__cuCoredumpSetAttributeGlobal"] = <intptr_t>__cuCoredumpSetAttributeGlobal
 *     global __cuGetExportTable
 *     data["__cuGetExportTable"] = <intptr_t>__cuGetExportTable             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxCreate
 *     data["__cuGreenCtxCreate"] = <intptr_t>__cuGreenCtxCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGetExportTable_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7997, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7999
 *     data["__cuGetExportTable"] = <intptr_t>__cuGetExportTable
 *     global __cuGreenCtxCreate
 *     data["__cuGreenCtxCreate"] = <intptr_t>__cuGreenCtxCreate             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxDestroy
 *     data["__cuGreenCtxDestroy"] = <intptr_t>__cuGreenCtxDestroy
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 7999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8001
 *     data["__cuGreenCtxCreate"] = <intptr_t>__cuGreenCtxCreate
 *     global __cuGreenCtxDestroy
 *     data["__cuGreenCtxDestroy"] = <intptr_t>__cuGreenCtxDestroy             # <<<<<<<<<<<<<<
 *     global __cuCtxFromGreenCtx
 *     data["__cuCtxFromGreenCtx"] = <intptr_t>__cuCtxFromGreenCtx
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxDestroy_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8001, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8003
 *     data["__cuGreenCtxDestroy"] = <intptr_t>__cuGreenCtxDestroy
 *     global __cuCtxFromGreenCtx
 *     data["__cuCtxFromGreenCtx"] = <intptr_t>__cuCtxFromGreenCtx             # <<<<<<<<<<<<<<
 *     global __cuDeviceGetDevResource
 *     data["__cuDeviceGetDevResource"] = <intptr_t>__cuDeviceGetDevResource
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxFromGreenCtx_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8003, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8005
 *     data["__cuCtxFromGreenCtx"] = <intptr_t>__cuCtxFromGreenCtx
 *     global __cuDeviceGetDevResource
 *     data["__cuDeviceGetDevResource"] = <intptr_t>__cuDeviceGetDevResource             # <<<<<<<<<<<<<<
 *     global __cuCtxGetDevResource
 *     data["__cuCtxGetDevResource"] = <intptr_t>__cuCtxGetDevResource
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDeviceGetDevResource_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8007
 *     data["__cuDeviceGetDevResource"] = <intptr_t>__cuDeviceGetDevResource
 *     global __cuCtxGetDevResource
 *     data["__cuCtxGetDevResource"] = <intptr_t>__cuCtxGetDevResource             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetDevResource
 *     data["__cuGreenCtxGetDevResource"] = <intptr_t>__cuGreenCtxGetDevResource
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCtxGetDevResource_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8009
 *     data["__cuCtxGetDevResource"] = <intptr_t>__cuCtxGetDevResource
 *     global __cuGreenCtxGetDevResource
 *     data["__cuGreenCtxGetDevResource"] = <intptr_t>__cuGreenCtxGetDevResource             # <<<<<<<<<<<<<<
 *     global __cuDevSmResourceSplitByCount
 *     data["__cuDevSmResourceSplitByCount"] = <intptr_t>__cuDevSmResourceSplitByCount
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxGetDevResource_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8009, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8011
 *     data["__cuGreenCtxGetDevResource"] = <intptr_t>__cuGreenCtxGetDevResource
 *     global __cuDevSmResourceSplitByCount
 *     data["__cuDevSmResourceSplitByCount"] = <intptr_t>__cuDevSmResourceSplitByCount             # <<<<<<<<<<<<<<
 *     global __cuDevSmResourceSplit
 *     data["__cuDevSmResourceSplit"] = <intptr_t>__cuDevSmResourceSplit
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevSmResourceSplitByCount_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8013
 *     data["__cuDevSmResourceSplitByCount"] = <intptr_t>__cuDevSmResourceSplitByCount
 *     global __cuDevSmResourceSplit
 *     data["__cuDevSmResourceSplit"] = <intptr_t>__cuDevSmResourceSplit             # <<<<<<<<<<<<<<
 *     global __cuDevResourceGenerateDesc
 *     data["__cuDevResourceGenerateDesc"] = <intptr_t>__cuDevResourceGenerateDesc
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevSmResourceSplit_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8013, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8015
 *     data["__cuDevSmResourceSplit"] = <intptr_t>__cuDevSmResourceSplit
 *     global __cuDevResourceGenerateDesc
 *     data["__cuDevResourceGenerateDesc"] = <intptr_t>__cuDevResourceGenerateDesc             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxRecordEvent
 *     data["__cuGreenCtxRecordEvent"] = <intptr_t>__cuGreenCtxRecordEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuDevResourceGenerateDesc_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8015, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8017
 *     data["__cuDevResourceGenerateDesc"] = <intptr_t>__cuDevResourceGenerateDesc
 *     global __cuGreenCtxRecordEvent
 *     data["__cuGreenCtxRecordEvent"] = <intptr_t>__cuGreenCtxRecordEvent             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxWaitEvent
 *     data["__cuGreenCtxWaitEvent"] = <intptr_t>__cuGreenCtxWaitEvent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxRecordEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8019
 *     data["__cuGreenCtxRecordEvent"] = <intptr_t>__cuGreenCtxRecordEvent
 *     global __cuGreenCtxWaitEvent
 *     data["__cuGreenCtxWaitEvent"] = <intptr_t>__cuGreenCtxWaitEvent             # <<<<<<<<<<<<<<
 *     global __cuStreamGetGreenCtx
 *     data["__cuStreamGetGreenCtx"] = <intptr_t>__cuStreamGetGreenCtx
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxWaitEvent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8019, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8021
 *     data["__cuGreenCtxWaitEvent"] = <intptr_t>__cuGreenCtxWaitEvent
 *     global __cuStreamGetGreenCtx
 *     data["__cuStreamGetGreenCtx"] = <intptr_t>__cuStreamGetGreenCtx             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxStreamCreate
 *     data["__cuGreenCtxStreamCreate"] = <intptr_t>__cuGreenCtxStreamCreate
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetGreenCtx_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8023
 *     data["__cuStreamGetGreenCtx"] = <intptr_t>__cuStreamGetGreenCtx
 *     global __cuGreenCtxStreamCreate
 *     data["__cuGreenCtxStreamCreate"] = <intptr_t>__cuGreenCtxStreamCreate             # <<<<<<<<<<<<<<
 *     global __cuGreenCtxGetId
 *     data["__cuGreenCtxGetId"] = <intptr_t>__cuGreenCtxGetId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8023, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxStreamCreate_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8023, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8025
 *     data["__cuGreenCtxStreamCreate"] = <intptr_t>__cuGreenCtxStreamCreate
 *     global __cuGreenCtxGetId
 *     data["__cuGreenCtxGetId"] = <intptr_t>__cuGreenCtxGetId             # <<<<<<<<<<<<<<
 *     global __cuStreamGetDevResource
 *     data["__cuStreamGetDevResource"] = <intptr_t>__cuStreamGetDevResource
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGreenCtxGetId_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8025, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8027
 *     data["__cuGreenCtxGetId"] = <intptr_t>__cuGreenCtxGetId
 *     global __cuStreamGetDevResource
 *     data["__cuStreamGetDevResource"] = <intptr_t>__cuStreamGetDevResource             # <<<<<<<<<<<<<<
 *     global __cuLogsRegisterCallback
 *     data["__cuLogsRegisterCallback"] = <intptr_t>__cuLogsRegisterCallback
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuStreamGetDevResource_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8027, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8029
 *     data["__cuStreamGetDevResource"] = <intptr_t>__cuStreamGetDevResource
 *     global __cuLogsRegisterCallback
 *     data["__cuLogsRegisterCallback"] = <intptr_t>__cuLogsRegisterCallback             # <<<<<<<<<<<<<<
 *     global __cuLogsUnregisterCallback
 *     data["__cuLogsUnregisterCallback"] = <intptr_t>__cuLogsUnregisterCallback
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLogsRegisterCallback_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8029, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8031
 *     data["__cuLogsRegisterCallback"] = <intptr_t>__cuLogsRegisterCallback
 *     global __cuLogsUnregisterCallback
 *     data["__cuLogsUnregisterCallback"] = <intptr_t>__cuLogsUnregisterCallback             # <<<<<<<<<<<<<<
 *     global __cuLogsCurrent
 *     data["__cuLogsCurrent"] = <intptr_t>__cuLogsCurrent
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8031, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLogsUnregisterCallback_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8031, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8033
 *     data["__cuLogsUnregisterCallback"] = <intptr_t>__cuLogsUnregisterCallback
 *     global __cuLogsCurrent
 *     data["__cuLogsCurrent"] = <intptr_t>__cuLogsCurrent             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToFile
 *     data["__cuLogsDumpToFile"] = <intptr_t>__cuLogsDumpToFile
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLogsCurrent_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8035
 *     data["__cuLogsCurrent"] = <intptr_t>__cuLogsCurrent
 *     global __cuLogsDumpToFile
 *     data["__cuLogsDumpToFile"] = <intptr_t>__cuLogsDumpToFile             # <<<<<<<<<<<<<<
 *     global __cuLogsDumpToMemory
 *     data["__cuLogsDumpToMemory"] = <intptr_t>__cuLogsDumpToMemory
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLogsDumpToFile_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8035, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8037
 *     data["__cuLogsDumpToFile"] = <intptr_t>__cuLogsDumpToFile
 *     global __cuLogsDumpToMemory
 *     data["__cuLogsDumpToMemory"] = <intptr_t>__cuLogsDumpToMemory             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     data["__cuCheckpointProcessGetRestoreThreadId"] = <intptr_t>__cuCheckpointProcessGetRestoreThreadId
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuLogsDumpToMemory_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8037, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8039
 *     data["__cuLogsDumpToMemory"] = <intptr_t>__cuLogsDumpToMemory
 *     global __cuCheckpointProcessGetRestoreThreadId
 *     data["__cuCheckpointProcessGetRestoreThreadId"] = <intptr_t>__cuCheckpointProcessGetRestoreThreadId             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessGetState
 *     data["__cuCheckpointProcessGetState"] = <intptr_t>__cuCheckpointProcessGetState
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessGetRestoreT, __pyx_t_3) < 0))) __PYX_ERR(0, 8039, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8041
 *     data["__cuCheckpointProcessGetRestoreThreadId"] = <intptr_t>__cuCheckpointProcessGetRestoreThreadId
 *     global __cuCheckpointProcessGetState
 *     data["__cuCheckpointProcessGetState"] = <intptr_t>__cuCheckpointProcessGetState             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessLock
 *     data["__cuCheckpointProcessLock"] = <intptr_t>__cuCheckpointProcessLock
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessGetState_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8043
 *     data["__cuCheckpointProcessGetState"] = <intptr_t>__cuCheckpointProcessGetState
 *     global __cuCheckpointProcessLock
 *     data["__cuCheckpointProcessLock"] = <intptr_t>__cuCheckpointProcessLock             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessCheckpoint
 *     data["__cuCheckpointProcessCheckpoint"] = <intptr_t>__cuCheckpointProcessCheckpoint
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessLock_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8043, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8045
 *     data["__cuCheckpointProcessLock"] = <intptr_t>__cuCheckpointProcessLock
 *     global __cuCheckpointProcessCheckpoint
 *     data["__cuCheckpointProcessCheckpoint"] = <intptr_t>__cuCheckpointProcessCheckpoint             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessRestore
 *     data["__cuCheckpointProcessRestore"] = <intptr_t>__cuCheckpointProcessRestore
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessCheckpoint_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8045, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8047
 *     data["__cuCheckpointProcessCheckpoint"] = <intptr_t>__cuCheckpointProcessCheckpoint
 *     global __cuCheckpointProcessRestore
 *     data["__cuCheckpointProcessRestore"] = <intptr_t>__cuCheckpointProcessRestore             # <<<<<<<<<<<<<<
 *     global __cuCheckpointProcessUnlock
 *     data["__cuCheckpointProcessUnlock"] = <intptr_t>__cuCheckpointProcessUnlock
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessRestore_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8047, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8049
 *     data["__cuCheckpointProcessRestore"] = <intptr_t>__cuCheckpointProcessRestore
 *     global __cuCheckpointProcessUnlock
 *     data["__cuCheckpointProcessUnlock"] = <intptr_t>__cuCheckpointProcessUnlock             # <<<<<<<<<<<<<<
 *     global __cuProfilerStart
 *     data["__cuProfilerStart"] = <intptr_t>__cuProfilerStart
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuCheckpointProcessUnlock_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8049, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8051
 *     data["__cuCheckpointProcessUnlock"] = <intptr_t>__cuCheckpointProcessUnlock
 *     global __cuProfilerStart
 *     data["__cuProfilerStart"] = <intptr_t>__cuProfilerStart             # <<<<<<<<<<<<<<
 *     global __cuProfilerStop
 *     data["__cuProfilerStop"] = <intptr_t>__cuProfilerStop
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuProfilerStart_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8051, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8053
 *     data["__cuProfilerStart"] = <intptr_t>__cuProfilerStart
 *     global __cuProfilerStop
 *     data["__cuProfilerStop"] = <intptr_t>__cuProfilerStop             # <<<<<<<<<<<<<<
 *     global __cuGraphicsEGLRegisterImage
 *     data["__cuGraphicsEGLRegisterImage"] = <intptr_t>__cuGraphicsEGLRegisterImage
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuProfilerStop_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8053, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8055
 *     data["__cuProfilerStop"] = <intptr_t>__cuProfilerStop
 *     global __cuGraphicsEGLRegisterImage
 *     data["__cuGraphicsEGLRegisterImage"] = <intptr_t>__cuGraphicsEGLRegisterImage             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnect
 *     data["__cuEGLStreamConsumerConnect"] = <intptr_t>__cuEGLStreamConsumerConnect
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsEGLRegisterImage_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8055, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8057
 *     data["__cuGraphicsEGLRegisterImage"] = <intptr_t>__cuGraphicsEGLRegisterImage
 *     global __cuEGLStreamConsumerConnect
 *     data["__cuEGLStreamConsumerConnect"] = <intptr_t>__cuEGLStreamConsumerConnect             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     data["__cuEGLStreamConsumerConnectWithFlags"] = <intptr_t>__cuEGLStreamConsumerConnectWithFlags
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamConsumerConnect_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8057, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8059
 *     data["__cuEGLStreamConsumerConnect"] = <intptr_t>__cuEGLStreamConsumerConnect
 *     global __cuEGLStreamConsumerConnectWithFlags
 *     data["__cuEGLStreamConsumerConnectWithFlags"] = <intptr_t>__cuEGLStreamConsumerConnectWithFlags             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerDisconnect
 *     data["__cuEGLStreamConsumerDisconnect"] = <intptr_t>__cuEGLStreamConsumerDisconnect
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamConsumerConnectWith, __pyx_t_3) < 0))) __PYX_ERR(0, 8059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8061
 *     data["__cuEGLStreamConsumerConnectWithFlags"] = <intptr_t>__cuEGLStreamConsumerConnectWithFlags
 *     global __cuEGLStreamConsumerDisconnect
 *     data["__cuEGLStreamConsumerDisconnect"] = <intptr_t>__cuEGLStreamConsumerDisconnect             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerAcquireFrame
 *     data["__cuEGLStreamConsumerAcquireFrame"] = <intptr_t>__cuEGLStreamConsumerAcquireFrame
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamConsumerDisconnect_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8061, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8063
 *     data["__cuEGLStreamConsumerDisconnect"] = <intptr_t>__cuEGLStreamConsumerDisconnect
 *     global __cuEGLStreamConsumerAcquireFrame
 *     data["__cuEGLStreamConsumerAcquireFrame"] = <intptr_t>__cuEGLStreamConsumerAcquireFrame             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamConsumerReleaseFrame
 *     data["__cuEGLStreamConsumerReleaseFrame"] = <intptr_t>__cuEGLStreamConsumerReleaseFrame
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamConsumerAcquireFram, __pyx_t_3) < 0))) __PYX_ERR(0, 8063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8065
 *     data["__cuEGLStreamConsumerAcquireFrame"] = <intptr_t>__cuEGLStreamConsumerAcquireFrame
 *     global __cuEGLStreamConsumerReleaseFrame
 *     data["__cuEGLStreamConsumerReleaseFrame"] = <intptr_t>__cuEGLStreamConsumerReleaseFrame             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerConnect
 *     data["__cuEGLStreamProducerConnect"] = <intptr_t>__cuEGLStreamProducerConnect
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamConsumerReleaseFram, __pyx_t_3) < 0))) __PYX_ERR(0, 8065, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8067
 *     data["__cuEGLStreamConsumerReleaseFrame"] = <intptr_t>__cuEGLStreamConsumerReleaseFrame
 *     global __cuEGLStreamProducerConnect
 *     data["__cuEGLStreamProducerConnect"] = <intptr_t>__cuEGLStreamProducerConnect             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerDisconnect
 *     data["__cuEGLStreamProducerDisconnect"] = <intptr_t>__cuEGLStreamProducerDisconnect
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamProducerConnect_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8067, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8069
 *     data["__cuEGLStreamProducerConnect"] = <intptr_t>__cuEGLStreamProducerConnect
 *     global __cuEGLStreamProducerDisconnect
 *     data["__cuEGLStreamProducerDisconnect"] = <intptr_t>__cuEGLStreamProducerDisconnect             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerPresentFrame
 *     data["__cuEGLStreamProducerPresentFrame"] = <intptr_t>__cuEGLStreamProducerPresentFrame
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamProducerDisconnect_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8071
 *     data["__cuEGLStreamProducerDisconnect"] = <intptr_t>__cuEGLStreamProducerDisconnect
 *     global __cuEGLStreamProducerPresentFrame
 *     data["__cuEGLStreamProducerPresentFrame"] = <intptr_t>__cuEGLStreamProducerPresentFrame             # <<<<<<<<<<<<<<
 *     global __cuEGLStreamProducerReturnFrame
 *     data["__cuEGLStreamProducerReturnFrame"] = <intptr_t>__cuEGLStreamProducerReturnFrame
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamProducerPresentFram, __pyx_t_3) < 0))) __PYX_ERR(0, 8071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8073
 *     data["__cuEGLStreamProducerPresentFrame"] = <intptr_t>__cuEGLStreamProducerPresentFrame
 *     global __cuEGLStreamProducerReturnFrame
 *     data["__cuEGLStreamProducerReturnFrame"] = <intptr_t>__cuEGLStreamProducerReturnFrame             # <<<<<<<<<<<<<<
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     data["__cuGraphicsResourceGetMappedEglFrame"] = <intptr_t>__cuGraphicsResourceGetMappedEglFrame
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEGLStreamProducerReturnFrame_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8073, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8075
 *     data["__cuEGLStreamProducerReturnFrame"] = <intptr_t>__cuEGLStreamProducerReturnFrame
 *     global __cuGraphicsResourceGetMappedEglFrame
 *     data["__cuGraphicsResourceGetMappedEglFrame"] = <intptr_t>__cuGraphicsResourceGetMappedEglFrame             # <<<<<<<<<<<<<<
 *     global __cuEventCreateFromEGLSync
 *     data["__cuEventCreateFromEGLSync"] = <intptr_t>__cuEventCreateFromEGLSync
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsResourceGetMappedEgl, __pyx_t_3) < 0))) __PYX_ERR(0, 8075, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8077
 *     data["__cuGraphicsResourceGetMappedEglFrame"] = <intptr_t>__cuGraphicsResourceGetMappedEglFrame
 *     global __cuEventCreateFromEGLSync
 *     data["__cuEventCreateFromEGLSync"] = <intptr_t>__cuEventCreateFromEGLSync             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterBuffer
 *     data["__cuGraphicsGLRegisterBuffer"] = <intptr_t>__cuGraphicsGLRegisterBuffer
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuEventCreateFromEGLSync_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8077, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8079
 *     data["__cuEventCreateFromEGLSync"] = <intptr_t>__cuEventCreateFromEGLSync
 *     global __cuGraphicsGLRegisterBuffer
 *     data["__cuGraphicsGLRegisterBuffer"] = <intptr_t>__cuGraphicsGLRegisterBuffer             # <<<<<<<<<<<<<<
 *     global __cuGraphicsGLRegisterImage
 *     data["__cuGraphicsGLRegisterImage"] = <intptr_t>__cuGraphicsGLRegisterImage
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsGLRegisterBuffer_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8079, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8081
 *     data["__cuGraphicsGLRegisterBuffer"] = <intptr_t>__cuGraphicsGLRegisterBuffer
 *     global __cuGraphicsGLRegisterImage
 *     data["__cuGraphicsGLRegisterImage"] = <intptr_t>__cuGraphicsGLRegisterImage             # <<<<<<<<<<<<<<
 *     global __cuGLGetDevices_v2
 *     data["__cuGLGetDevices_v2"] = <intptr_t>__cuGLGetDevices_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsGLRegisterImage_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8083
 *     data["__cuGraphicsGLRegisterImage"] = <intptr_t>__cuGraphicsGLRegisterImage
 *     global __cuGLGetDevices_v2
 *     data["__cuGLGetDevices_v2"] = <intptr_t>__cuGLGetDevices_v2             # <<<<<<<<<<<<<<
 *     global __cuVDPAUGetDevice
 *     data["__cuVDPAUGetDevice"] = <intptr_t>__cuVDPAUGetDevice
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGLGetDevices_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8083, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8085
 *     data["__cuGLGetDevices_v2"] = <intptr_t>__cuGLGetDevices_v2
 *     global __cuVDPAUGetDevice
 *     data["__cuVDPAUGetDevice"] = <intptr_t>__cuVDPAUGetDevice             # <<<<<<<<<<<<<<
 *     global __cuVDPAUCtxCreate_v2
 *     data["__cuVDPAUCtxCreate_v2"] = <intptr_t>__cuVDPAUCtxCreate_v2
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuVDPAUGetDevice_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8085, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8087
 *     data["__cuVDPAUGetDevice"] = <intptr_t>__cuVDPAUGetDevice
 *     global __cuVDPAUCtxCreate_v2
 *     data["__cuVDPAUCtxCreate_v2"] = <intptr_t>__cuVDPAUCtxCreate_v2             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     data["__cuGraphicsVDPAURegisterVideoSurface"] = <intptr_t>__cuGraphicsVDPAURegisterVideoSurface
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuVDPAUCtxCreate_v2_2, __pyx_t_3) < 0))) __PYX_ERR(0, 8087, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8089
 *     data["__cuVDPAUCtxCreate_v2"] = <intptr_t>__cuVDPAUCtxCreate_v2
 *     global __cuGraphicsVDPAURegisterVideoSurface
 *     data["__cuGraphicsVDPAURegisterVideoSurface"] = <intptr_t>__cuGraphicsVDPAURegisterVideoSurface             # <<<<<<<<<<<<<<
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     data["__cuGraphicsVDPAURegisterOutputSurface"] = <intptr_t>__cuGraphicsVDPAURegisterOutputSurface
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsVDPAURegisterVideoSu, __pyx_t_3) < 0))) __PYX_ERR(0, 8089, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8091
 *     data["__cuGraphicsVDPAURegisterVideoSurface"] = <intptr_t>__cuGraphicsVDPAURegisterVideoSurface
 *     global __cuGraphicsVDPAURegisterOutputSurface
 *     data["__cuGraphicsVDPAURegisterOutputSurface"] = <intptr_t>__cuGraphicsVDPAURegisterOutputSurface             # <<<<<<<<<<<<<<
 * 
 *     func_ptrs = data
*/
  __pyx_t_3 = PyLong_FromSsize_t(((intptr_t)__pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_mstate_global->__pyx_n_u_cuGraphicsVDPAURegisterOutputS, __pyx_t_3) < 0))) __PYX_ERR(0, 8091, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8093
 *     data["__cuGraphicsVDPAURegisterOutputSurface"] = <intptr_t>__cuGraphicsVDPAURegisterOutputSurface
 * 
 *     func_ptrs = data             # <<<<<<<<<<<<<<
 *     return data
 * 
*/
  __Pyx_INCREF(__pyx_v_data);
  __Pyx_XGOTREF(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs);
  __Pyx_DECREF_SET(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs, __pyx_v_data);
  __Pyx_GIVEREF(__pyx_v_data);

  /* "cuda/bindings/_bindings/cydriver.pyx":8094
 * 
 *     func_ptrs = data
 *     return data             # <<<<<<<<<<<<<<
 * 
 * cpdef _inspect_function_pointer(str name):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_data);
  __pyx_r = __pyx_v_data;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":7126
 * cdef dict func_ptrs = None
 * 
 * cpdef dict _inspect_function_pointers():             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is not None:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._inspect_function_pointers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers, "_inspect_function_pointers() -> dict");
static PyMethodDef __pyx_mdef_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers = {"_inspect_function_pointers", (PyCFunction)__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers, METH_NOARGS, __pyx_doc_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers};
static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_inspect_function_pointers (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_inspect_function_pointers", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._inspect_function_pointers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_bindings/cydriver.pyx":8096
 *     return data
 * 
 * cpdef _inspect_function_pointer(str name):             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is None:
*/

static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointer(PyObject *__pyx_v_name, CYTHON_UNUSED int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_inspect_function_pointer", 0);

  /* "cuda/bindings/_bindings/cydriver.pyx":8098
 * cpdef _inspect_function_pointer(str name):
 *     global func_ptrs
 *     if func_ptrs is None:             # <<<<<<<<<<<<<<
 *         func_ptrs = _inspect_function_pointers()
 *     return func_ptrs[name]
*/
  __pyx_t_1 = (__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs == ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "cuda/bindings/_bindings/cydriver.pyx":8099
 *     global func_ptrs
 *     if func_ptrs is None:
 *         func_ptrs = _inspect_function_pointers()             # <<<<<<<<<<<<<<
 *     return func_ptrs[name]
*/
    __pyx_t_2 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointers(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs);
    __Pyx_DECREF_SET(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs, ((PyObject*)__pyx_t_2));
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/_bindings/cydriver.pyx":8098
 * cpdef _inspect_function_pointer(str name):
 *     global func_ptrs
 *     if func_ptrs is None:             # <<<<<<<<<<<<<<
 *         func_ptrs = _inspect_function_pointers()
 *     return func_ptrs[name]
*/
  }

  /* "cuda/bindings/_bindings/cydriver.pyx":8100
 *     if func_ptrs is None:
 *         func_ptrs = _inspect_function_pointers()
 *     return func_ptrs[name]             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 8100, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs, __pyx_v_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8096
 *     return data
 * 
 * cpdef _inspect_function_pointer(str name):             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is None:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._inspect_function_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_9_bindings_8cydriver_2_inspect_function_pointer, "_inspect_function_pointer(str name)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer = {"_inspect_function_pointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_9_bindings_8cydriver_2_inspect_function_pointer};
static PyObject *__pyx_pw_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_inspect_function_pointer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8096, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8096, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_inspect_function_pointer", 0) < (0)) __PYX_ERR(0, 8096, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_inspect_function_pointer", 1, 1, 1, i); __PYX_ERR(0, 8096, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8096, __pyx_L3_error)
    }
    __pyx_v_name = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_inspect_function_pointer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8096, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._inspect_function_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 1, "name", 1))) __PYX_ERR(0, 8096, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_9_bindings_8cydriver_2_inspect_function_pointer(__pyx_self, __pyx_v_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_9_bindings_8cydriver_2_inspect_function_pointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_inspect_function_pointer", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9_bindings_8cydriver__inspect_function_pointer(__pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings._bindings.cydriver._inspect_function_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock = Py_None; Py_INCREF(Py_None);
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  {
    __pyx_t_1 = __Pyx_ApiExport_GetApiDict(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_export_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_CUresult_CUDA_ARRAY3D_DESCRIPTOR);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_export_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_export_name = __pyx_export_signature + 23893;
    void (*const __pyx_export_pointers[])(void) = {(void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArray3DGetDescriptor_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetDescriptor_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetMemoryRequirements, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetMemoryRequirements, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetSparseProperties, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetSparseProperties, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchCooperativeKernelMultiDevice, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2DUnaligned_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2D_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy2DAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3D_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DPeer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DPeerAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectGetResourceDesc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetResourceDesc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetResourceViewDesc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectGetTextureDesc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetAddressMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArray3DCreate_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayCreate_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayGetPlane, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsSubResourceGetMappedArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayGetLevel, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfRefGetArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuArrayDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoA_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoA_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoA_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoAAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemMapArrayAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFormat, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetCurrent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxPopCurrent_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxCreate_v4, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxRetain, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxFromGreenCtx, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxAttach, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuVDPAUCtxCreate_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDestroy_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDetach, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxDisablePeerAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxPushCurrent_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetCurrent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSynchronize_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevResource, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxRecordEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxWaitEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetApiVersion, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxEnablePeerAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpGetAttributeGlobal, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCoredumpSetAttributeGlobal, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevSmResourceSplitByCount, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevSmResourceSplit, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevResourceGenerateDesc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevice, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetDevice_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuVDPAUGetDevice, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetByPCIBusId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGet, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGraphMemTrim, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxRelease_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxReset_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceRegisterAsyncNotification, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceUnregisterAsyncNotification, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetDevResource, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetGraphMemAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceSetGraphMemAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceSetMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxGetState, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDevicePrimaryCtxSetFlags_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyBatchAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuExternalMemoryGetMappedBuffer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcOpenMemHandle_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolImportPointer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetAddress_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAddressRange_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedPointer_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetGlobal, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetManaged, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetGlobal_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemDiscardAndPrefetchBatchAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPrefetchBatchAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocPitch_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemDiscardBatchAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAlloc_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocFromPoolAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAddressReserve, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocManaged, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostGetDevicePointer_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcCloseMemHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFree_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoD_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyPeer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyPeerAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoD_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoDAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFreeAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAddressFree, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemUnmap, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemSetAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPrefetchAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAdvise_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemMap, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D8_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D8Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D32_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D32Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D16_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD2D16Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD8_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD8Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD32_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD32Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD16_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemsetD16Async, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoD_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyHtoDAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetProperties, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcOpenEventHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventCreateFromEGLSync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventDestroy_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventQuery, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventSynchronize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventRecord, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventRecordWithFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetExecAffinity, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuImportExternalMemory, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDestroyExternalMemory, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuImportExternalSemaphore, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSignalExternalSemaphoresAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuWaitExternalSemaphoresAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDestroyExternalSemaphore, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFilterMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapFilterMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFlushGPUDirectRDMAWrites, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetCacheConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetCacheConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetFunction, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetFunction, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleEnumerateFunctions, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncLoad, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunch, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetCacheConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetSharedMemConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetTexRef, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetf, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchGrid, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchGridAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetBlockShape, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSeti, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetv, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetParamInfo, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncSetSharedSize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuParamSetSize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchCooperativeKernel, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchKernel, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncIsLoaded, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphClone, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetEdges_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetNodes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetRootNodes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddDependencies_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphRemoveDependencies_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphReleaseUserObject, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphRetainUserObject, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDebugDotPrint, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphGetId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphConditionalHandleCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphInstantiateWithParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphInstantiateWithFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecUpdate_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecBatchMemOpNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecExternalSemaphoresSignalNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecExternalSemaphoresWaitNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecHostNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecKernelNodeSetParams_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecMemcpyNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecMemsetNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecEventRecordNodeSetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecEventWaitNodeSetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecChildGraphNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetEnabled, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeSetEnabled, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphLaunch, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphUpload, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecGetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExecGetId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddNode_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEmptyNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddBatchMemOpNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddExternalSemaphoresSignalNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddExternalSemaphoresWaitNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddHostNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddKernelNode_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemcpyNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemsetNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemAllocNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddMemFreeNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEventRecordNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddEventWaitNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphAddChildGraphNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeFindInClone, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphDestroyNode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphBatchMemOpNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphBatchMemOpNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresSignalNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresSignalNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresWaitNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphExternalSemaphoresWaitNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphHostNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphHostNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeGetParams_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeSetParams_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemcpyNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemcpyNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemsetNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemsetNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemAllocNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphMemFreeNodeGetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventRecordNodeGetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventWaitNodeGetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventRecordNodeSetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphEventWaitNodeSetEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphChildGraphNodeGetGraph, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetContainingGraph, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetDependencies_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetDependentNodes_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeCopyAttributes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeSetParams, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetType, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphKernelNodeSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetToolsId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphNodeGetLocalId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsEGLRegisterImage, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsGLRegisterImage, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsGLRegisterBuffer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsVDPAURegisterOutputSurface, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsVDPAURegisterVideoSurface, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsUnregisterResource, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceSetMapFlags_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxGetDevResource, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxRecordEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxWaitEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxGetId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcGetEventHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuIpcGetMemHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetKernel, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryEnumerateKernels, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelSetCacheConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetParamInfo, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchKernelEx, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetLibrary, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryLoadFromFile, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryLoadData, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryUnload, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetLimit, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkAddFile_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkAddData_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkComplete, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsDumpToMemory, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsDumpToFile, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsCurrent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsRegisterCallback, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLogsUnregisterCallback, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolGetAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAllocationPropertiesFromHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemBatchDecompressAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRetainAllocationHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemImportFromShareableHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRelease, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastAddDevice, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindAddr_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindMem_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastUnbind, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindAddr, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastBindMem, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemSetMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolExportPointer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetDefaultMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetDefaultMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetMemPool, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolImportFromShareableHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolSetAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolTrimTo, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuExternalMemoryGetMappedMipmappedArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedMipmappedArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmappedArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMipmappedArrayDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetModule, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetModule, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoad, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadData, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadFatBinary, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleLoadDataEx, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleUnload, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetLoadingMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetErrorName, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetErrorString, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetSharedMemConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetSharedMemConfig, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGreenCtxStreamCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCreateWithPriority, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamDestroy_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamQuery, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamSynchronize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCtx, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCtx_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetDevResource, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetDevice, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitValue32_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWriteValue32_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitValue64_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWriteValue64_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamAttachMemAsync, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamWaitEvent, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamEndCapture, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBeginCaptureToGraph, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamUpdateCaptureDependencies_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetGreenCtx, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLaunchHostFunc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamCopyAttributes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamAddCallback, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBeginCapture_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamIsCapturing, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetCaptureInfo_v3, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetPriority, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamGetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuStreamBatchMemOp_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuThreadExchangeStreamCaptureMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfObjectDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetSurfRef, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuSurfRefSetArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeTiled, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeIm2col, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapEncodeIm2colWide, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTensorMapReplaceAddress, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexObjectDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetTexRef, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefDestroy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddress2D_v3, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFormat, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFilterMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapFilterMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmappedArray, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetBorderColor, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapLevelBias, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMipmapLevelClamp, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddressMode, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetMaxAnisotropy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectCreate, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectRelease, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuUserObjectRetain, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetUuid_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsResourceGetMappedEglFrame, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerDisconnect, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerDisconnect, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerAcquireFrame, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerReleaseFrame, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerReturnFrame, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerPresentFrame, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerConnect, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamProducerConnect, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEGLStreamConsumerConnectWithFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetName, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetPCIBusId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetLuid, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetName, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetName, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetProcAddress_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuEventElapsedTime_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetBorderColor, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapLevelBias, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMipmapLevelClamp, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetCount, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDriverGetVersion, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceCanAccessPeer, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetP2PAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetExecAffinitySupport, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveClusters, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialClusterSize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveBlocksPerMultiprocessor, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuFuncGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuKernelGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetMaxAnisotropy, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetStreamPriorityRange, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceComputeCapability, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialBlockSize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyMaxPotentialBlockSizeWithFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessCheckpoint, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessLock, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessRestore, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessUnlock, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessGetState, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCheckpointProcessGetRestoreThreadId, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetTexture1DLinearMaxWidth, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceTotalMem_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuOccupancyAvailableDynamicSMemPerBlock, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetLimit, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAllocationGranularity, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMulticastGetGranularity, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefSetAddress_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetInfo_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpy3DBatchAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetAccess, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxGetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetHostAtomicCapabilities, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetP2PAtomicCapabilities, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGLGetDevices_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetKernelCount, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuModuleGetFunctionCount, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuTexRefGetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostGetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSetFlags, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuInit, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsMapResources, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGraphicsUnmapResources, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLinkCreate_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerGetAttributes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemFreeHost, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostUnregister, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuLibraryGetUnifiedFunction, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRangeGetAttributes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemAllocHost_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostAlloc, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoH_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyAtoHAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuDeviceGetNvSciSyncAttributes, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoH_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemGetHandleForAddressRange, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemcpyDtoHAsync_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemExportToShareableHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemPoolExportToShareableHandle, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemRangeGetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuMemHostRegister_v2, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuGetExportTable, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuPointerSetAttribute, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxResetPersistingL2Cache, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuCtxSynchronize, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuProfilerStart, (void (*)(void))&__pyx_f_4cuda_8bindings_9_bindings_8cydriver__cuProfilerStop, (void (*)(void)) NULL};
    void (*const *__pyx_export_pointer)(void) = __pyx_export_pointers;
    const char *__pyx_export_current_signature = __pyx_export_signature;
    while (*__pyx_export_pointer) {
      if (__Pyx_ExportFunction(__pyx_t_1, __pyx_export_name, *__pyx_export_pointer, __pyx_export_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_export_pointer;
      __pyx_export_name = strchr(__pyx_export_name, '\0') + 1;
      __pyx_export_signature = strchr(__pyx_export_signature, '\0') + 1;
      if (*__pyx_export_signature != '\0') __pyx_export_current_signature = __pyx_export_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_cydriver(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_cydriver},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, Py_MOD_GIL_NOT_USED},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "cydriver",
      0, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit_cydriver(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_cydriver(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_cydriver(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'cydriver' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "cydriver" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_NOT_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    PyErr_Clear();
    __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit_cydriver", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_cuda__bindings___bindings__cydriver) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "cuda.bindings._bindings.cydriver")) {
      if (unlikely((PyDict_SetItemString(modules, "cuda.bindings._bindings.cydriver", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_function_export_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_init_code(__pyx_mstate);
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
  /*--- Execution code ---*/

  /* "cuda/bindings/_bindings/cydriver.pyx":7
 * cimport cuda.bindings._lib.dlfcn as dlfcn
 * from libc.stdint cimport intptr_t, uintptr_t
 * import os             # <<<<<<<<<<<<<<
 * import sys
 * cimport cuda.bindings._bindings.loader as loader
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_os, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_os, __pyx_t_2) < (0)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8
 * from libc.stdint cimport intptr_t, uintptr_t
 * import os
 * import sys             # <<<<<<<<<<<<<<
 * cimport cuda.bindings._bindings.loader as loader
 * import threading
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sys, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sys, __pyx_t_2) < (0)) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":10
 * import sys
 * cimport cuda.bindings._bindings.loader as loader
 * import threading             # <<<<<<<<<<<<<<
 * 
 * cdef object __symbol_lock = threading.Lock()
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_threading, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_threading, __pyx_t_2) < (0)) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":12
 * import threading
 * 
 * cdef object __symbol_lock = threading.Lock()             # <<<<<<<<<<<<<<
 * cdef bint __cuPythonInit = False
 * cdef void *__cuGetErrorString = NULL
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_threading); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Lock); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_XGOTREF(__pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock);
  __Pyx_DECREF_SET(__pyx_v_4cuda_8bindings_9_bindings_8cydriver___symbol_lock, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":13
 * 
 * cdef object __symbol_lock = threading.Lock()
 * cdef bint __cuPythonInit = False             # <<<<<<<<<<<<<<
 * cdef void *__cuGetErrorString = NULL
 * cdef void *__cuGetErrorName = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPythonInit = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":14
 * cdef object __symbol_lock = threading.Lock()
 * cdef bint __cuPythonInit = False
 * cdef void *__cuGetErrorString = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGetErrorName = NULL
 * cdef void *__cuInit = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorString = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":15
 * cdef bint __cuPythonInit = False
 * cdef void *__cuGetErrorString = NULL
 * cdef void *__cuGetErrorName = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuInit = NULL
 * cdef void *__cuDriverGetVersion = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetErrorName = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":16
 * cdef void *__cuGetErrorString = NULL
 * cdef void *__cuGetErrorName = NULL
 * cdef void *__cuInit = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDriverGetVersion = NULL
 * cdef void *__cuDeviceGet = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuInit = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":17
 * cdef void *__cuGetErrorName = NULL
 * cdef void *__cuInit = NULL
 * cdef void *__cuDriverGetVersion = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGet = NULL
 * cdef void *__cuDeviceGetCount = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDriverGetVersion = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":18
 * cdef void *__cuInit = NULL
 * cdef void *__cuDriverGetVersion = NULL
 * cdef void *__cuDeviceGet = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetCount = NULL
 * cdef void *__cuDeviceGetName = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGet = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":19
 * cdef void *__cuDriverGetVersion = NULL
 * cdef void *__cuDeviceGet = NULL
 * cdef void *__cuDeviceGetCount = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetName = NULL
 * cdef void *__cuDeviceGetUuid_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetCount = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":20
 * cdef void *__cuDeviceGet = NULL
 * cdef void *__cuDeviceGetCount = NULL
 * cdef void *__cuDeviceGetName = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetUuid_v2 = NULL
 * cdef void *__cuDeviceGetLuid = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetName = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":21
 * cdef void *__cuDeviceGetCount = NULL
 * cdef void *__cuDeviceGetName = NULL
 * cdef void *__cuDeviceGetUuid_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetLuid = NULL
 * cdef void *__cuDeviceTotalMem_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetUuid_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":22
 * cdef void *__cuDeviceGetName = NULL
 * cdef void *__cuDeviceGetUuid_v2 = NULL
 * cdef void *__cuDeviceGetLuid = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceTotalMem_v2 = NULL
 * cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetLuid = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":23
 * cdef void *__cuDeviceGetUuid_v2 = NULL
 * cdef void *__cuDeviceGetLuid = NULL
 * cdef void *__cuDeviceTotalMem_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL
 * cdef void *__cuDeviceGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceTotalMem_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":24
 * cdef void *__cuDeviceGetLuid = NULL
 * cdef void *__cuDeviceTotalMem_v2 = NULL
 * cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetAttribute = NULL
 * cdef void *__cuDeviceGetHostAtomicCapabilities = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetTexture1DLinearMaxWidth = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":25
 * cdef void *__cuDeviceTotalMem_v2 = NULL
 * cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL
 * cdef void *__cuDeviceGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetHostAtomicCapabilities = NULL
 * cdef void *__cuDeviceGetNvSciSyncAttributes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":26
 * cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL
 * cdef void *__cuDeviceGetAttribute = NULL
 * cdef void *__cuDeviceGetHostAtomicCapabilities = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetNvSciSyncAttributes = NULL
 * cdef void *__cuDeviceSetMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetHostAtomicCapabilities = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":27
 * cdef void *__cuDeviceGetAttribute = NULL
 * cdef void *__cuDeviceGetHostAtomicCapabilities = NULL
 * cdef void *__cuDeviceGetNvSciSyncAttributes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceSetMemPool = NULL
 * cdef void *__cuDeviceGetMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetNvSciSyncAttributes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":28
 * cdef void *__cuDeviceGetHostAtomicCapabilities = NULL
 * cdef void *__cuDeviceGetNvSciSyncAttributes = NULL
 * cdef void *__cuDeviceSetMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetMemPool = NULL
 * cdef void *__cuDeviceGetDefaultMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":29
 * cdef void *__cuDeviceGetNvSciSyncAttributes = NULL
 * cdef void *__cuDeviceSetMemPool = NULL
 * cdef void *__cuDeviceGetMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetDefaultMemPool = NULL
 * cdef void *__cuDeviceGetExecAffinitySupport = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":30
 * cdef void *__cuDeviceSetMemPool = NULL
 * cdef void *__cuDeviceGetMemPool = NULL
 * cdef void *__cuDeviceGetDefaultMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetExecAffinitySupport = NULL
 * cdef void *__cuFlushGPUDirectRDMAWrites = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDefaultMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":31
 * cdef void *__cuDeviceGetMemPool = NULL
 * cdef void *__cuDeviceGetDefaultMemPool = NULL
 * cdef void *__cuDeviceGetExecAffinitySupport = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFlushGPUDirectRDMAWrites = NULL
 * cdef void *__cuDeviceGetProperties = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetExecAffinitySupport = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":32
 * cdef void *__cuDeviceGetDefaultMemPool = NULL
 * cdef void *__cuDeviceGetExecAffinitySupport = NULL
 * cdef void *__cuFlushGPUDirectRDMAWrites = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetProperties = NULL
 * cdef void *__cuDeviceComputeCapability = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFlushGPUDirectRDMAWrites = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":33
 * cdef void *__cuDeviceGetExecAffinitySupport = NULL
 * cdef void *__cuFlushGPUDirectRDMAWrites = NULL
 * cdef void *__cuDeviceGetProperties = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceComputeCapability = NULL
 * cdef void *__cuDevicePrimaryCtxRetain = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetProperties = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":34
 * cdef void *__cuFlushGPUDirectRDMAWrites = NULL
 * cdef void *__cuDeviceGetProperties = NULL
 * cdef void *__cuDeviceComputeCapability = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevicePrimaryCtxRetain = NULL
 * cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceComputeCapability = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":35
 * cdef void *__cuDeviceGetProperties = NULL
 * cdef void *__cuDeviceComputeCapability = NULL
 * cdef void *__cuDevicePrimaryCtxRetain = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRetain = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":36
 * cdef void *__cuDeviceComputeCapability = NULL
 * cdef void *__cuDevicePrimaryCtxRetain = NULL
 * cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxGetState = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxRelease_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":37
 * cdef void *__cuDevicePrimaryCtxRetain = NULL
 * cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevicePrimaryCtxGetState = NULL
 * cdef void *__cuDevicePrimaryCtxReset_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxSetFlags_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":38
 * cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxGetState = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevicePrimaryCtxReset_v2 = NULL
 * cdef void *__cuCtxCreate_v4 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxGetState = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":39
 * cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL
 * cdef void *__cuDevicePrimaryCtxGetState = NULL
 * cdef void *__cuDevicePrimaryCtxReset_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxCreate_v4 = NULL
 * cdef void *__cuCtxDestroy_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevicePrimaryCtxReset_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":40
 * cdef void *__cuDevicePrimaryCtxGetState = NULL
 * cdef void *__cuDevicePrimaryCtxReset_v2 = NULL
 * cdef void *__cuCtxCreate_v4 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxDestroy_v2 = NULL
 * cdef void *__cuCtxPushCurrent_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxCreate_v4 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":41
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDestroy_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":42
 * cdef void *__cuCtxCreate_v4 = NULL
 * cdef void *__cuCtxDestroy_v2 = NULL
 * cdef void *__cuCtxPushCurrent_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxPopCurrent_v2 = NULL
 * cdef void *__cuCtxSetCurrent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPushCurrent_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":43
 * cdef void *__cuCtxDestroy_v2 = NULL
 * cdef void *__cuCtxPushCurrent_v2 = NULL
 * cdef void *__cuCtxPopCurrent_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSetCurrent = NULL
 * cdef void *__cuCtxGetCurrent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxPopCurrent_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":44
 * cdef void *__cuCtxPushCurrent_v2 = NULL
 * cdef void *__cuCtxPopCurrent_v2 = NULL
 * cdef void *__cuCtxSetCurrent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetCurrent = NULL
 * cdef void *__cuCtxGetDevice = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCurrent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":45
 * cdef void *__cuCtxPopCurrent_v2 = NULL
 * cdef void *__cuCtxSetCurrent = NULL
 * cdef void *__cuCtxGetCurrent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetDevice = NULL
 * cdef void *__cuCtxGetDevice_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCurrent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":46
 * cdef void *__cuCtxSetCurrent = NULL
 * cdef void *__cuCtxGetCurrent = NULL
 * cdef void *__cuCtxGetDevice = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetDevice_v2 = NULL
 * cdef void *__cuCtxGetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":47
 * cdef void *__cuCtxGetCurrent = NULL
 * cdef void *__cuCtxGetDevice = NULL
 * cdef void *__cuCtxGetDevice_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetFlags = NULL
 * cdef void *__cuCtxSetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevice_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":48
 * cdef void *__cuCtxGetDevice = NULL
 * cdef void *__cuCtxGetDevice_v2 = NULL
 * cdef void *__cuCtxGetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSetFlags = NULL
 * cdef void *__cuCtxGetId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":49
 * cdef void *__cuCtxGetDevice_v2 = NULL
 * cdef void *__cuCtxGetFlags = NULL
 * cdef void *__cuCtxSetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetId = NULL
 * cdef void *__cuCtxSynchronize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":50
 * cdef void *__cuCtxGetFlags = NULL
 * cdef void *__cuCtxSetFlags = NULL
 * cdef void *__cuCtxGetId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSynchronize = NULL
 * cdef void *__cuCtxSynchronize_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":51
 * cdef void *__cuCtxSetFlags = NULL
 * cdef void *__cuCtxGetId = NULL
 * cdef void *__cuCtxSynchronize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSynchronize_v2 = NULL
 * cdef void *__cuCtxSetLimit = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":52
 * cdef void *__cuCtxGetId = NULL
 * cdef void *__cuCtxSynchronize = NULL
 * cdef void *__cuCtxSynchronize_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSetLimit = NULL
 * cdef void *__cuCtxGetLimit = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSynchronize_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":53
 * cdef void *__cuCtxSynchronize = NULL
 * cdef void *__cuCtxSynchronize_v2 = NULL
 * cdef void *__cuCtxSetLimit = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetLimit = NULL
 * cdef void *__cuCtxGetCacheConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetLimit = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":54
 * cdef void *__cuCtxSynchronize_v2 = NULL
 * cdef void *__cuCtxSetLimit = NULL
 * cdef void *__cuCtxGetLimit = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetCacheConfig = NULL
 * cdef void *__cuCtxSetCacheConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetLimit = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":55
 * cdef void *__cuCtxSetLimit = NULL
 * cdef void *__cuCtxGetLimit = NULL
 * cdef void *__cuCtxGetCacheConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSetCacheConfig = NULL
 * cdef void *__cuCtxGetApiVersion = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetCacheConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":56
 * cdef void *__cuCtxGetLimit = NULL
 * cdef void *__cuCtxGetCacheConfig = NULL
 * cdef void *__cuCtxSetCacheConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetApiVersion = NULL
 * cdef void *__cuCtxGetStreamPriorityRange = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetCacheConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":57
 * cdef void *__cuCtxGetCacheConfig = NULL
 * cdef void *__cuCtxSetCacheConfig = NULL
 * cdef void *__cuCtxGetApiVersion = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetStreamPriorityRange = NULL
 * cdef void *__cuCtxResetPersistingL2Cache = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetApiVersion = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":58
 * cdef void *__cuCtxSetCacheConfig = NULL
 * cdef void *__cuCtxGetApiVersion = NULL
 * cdef void *__cuCtxGetStreamPriorityRange = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxResetPersistingL2Cache = NULL
 * cdef void *__cuCtxGetExecAffinity = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetStreamPriorityRange = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":59
 * cdef void *__cuCtxGetApiVersion = NULL
 * cdef void *__cuCtxGetStreamPriorityRange = NULL
 * cdef void *__cuCtxResetPersistingL2Cache = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetExecAffinity = NULL
 * cdef void *__cuCtxRecordEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxResetPersistingL2Cache = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":60
 * cdef void *__cuCtxGetStreamPriorityRange = NULL
 * cdef void *__cuCtxResetPersistingL2Cache = NULL
 * cdef void *__cuCtxGetExecAffinity = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxRecordEvent = NULL
 * cdef void *__cuCtxWaitEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetExecAffinity = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":61
 * cdef void *__cuCtxResetPersistingL2Cache = NULL
 * cdef void *__cuCtxGetExecAffinity = NULL
 * cdef void *__cuCtxRecordEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxWaitEvent = NULL
 * cdef void *__cuCtxAttach = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxRecordEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":62
 * cdef void *__cuCtxGetExecAffinity = NULL
 * cdef void *__cuCtxRecordEvent = NULL
 * cdef void *__cuCtxWaitEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxAttach = NULL
 * cdef void *__cuCtxDetach = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxWaitEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":63
 * cdef void *__cuCtxRecordEvent = NULL
 * cdef void *__cuCtxWaitEvent = NULL
 * cdef void *__cuCtxAttach = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxDetach = NULL
 * cdef void *__cuCtxGetSharedMemConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxAttach = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":64
 * cdef void *__cuCtxWaitEvent = NULL
 * cdef void *__cuCtxAttach = NULL
 * cdef void *__cuCtxDetach = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetSharedMemConfig = NULL
 * cdef void *__cuCtxSetSharedMemConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDetach = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":65
 * cdef void *__cuCtxAttach = NULL
 * cdef void *__cuCtxDetach = NULL
 * cdef void *__cuCtxGetSharedMemConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxSetSharedMemConfig = NULL
 * cdef void *__cuModuleLoad = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetSharedMemConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":66
 * cdef void *__cuCtxDetach = NULL
 * cdef void *__cuCtxGetSharedMemConfig = NULL
 * cdef void *__cuCtxSetSharedMemConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleLoad = NULL
 * cdef void *__cuModuleLoadData = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxSetSharedMemConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":67
 * cdef void *__cuCtxGetSharedMemConfig = NULL
 * cdef void *__cuCtxSetSharedMemConfig = NULL
 * cdef void *__cuModuleLoad = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleLoadData = NULL
 * cdef void *__cuModuleLoadDataEx = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoad = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":68
 * cdef void *__cuCtxSetSharedMemConfig = NULL
 * cdef void *__cuModuleLoad = NULL
 * cdef void *__cuModuleLoadData = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleLoadDataEx = NULL
 * cdef void *__cuModuleLoadFatBinary = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadData = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":69
 * cdef void *__cuModuleLoad = NULL
 * cdef void *__cuModuleLoadData = NULL
 * cdef void *__cuModuleLoadDataEx = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleLoadFatBinary = NULL
 * cdef void *__cuModuleUnload = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadDataEx = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":70
 * cdef void *__cuModuleLoadData = NULL
 * cdef void *__cuModuleLoadDataEx = NULL
 * cdef void *__cuModuleLoadFatBinary = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleUnload = NULL
 * cdef void *__cuModuleGetLoadingMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleLoadFatBinary = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":71
 * cdef void *__cuModuleLoadDataEx = NULL
 * cdef void *__cuModuleLoadFatBinary = NULL
 * cdef void *__cuModuleUnload = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetLoadingMode = NULL
 * cdef void *__cuModuleGetFunction = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleUnload = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":72
 * cdef void *__cuModuleLoadFatBinary = NULL
 * cdef void *__cuModuleUnload = NULL
 * cdef void *__cuModuleGetLoadingMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetFunction = NULL
 * cdef void *__cuModuleGetFunctionCount = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetLoadingMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":73
 * cdef void *__cuModuleUnload = NULL
 * cdef void *__cuModuleGetLoadingMode = NULL
 * cdef void *__cuModuleGetFunction = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetFunctionCount = NULL
 * cdef void *__cuModuleEnumerateFunctions = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunction = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":74
 * cdef void *__cuModuleGetLoadingMode = NULL
 * cdef void *__cuModuleGetFunction = NULL
 * cdef void *__cuModuleGetFunctionCount = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleEnumerateFunctions = NULL
 * cdef void *__cuModuleGetGlobal_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetFunctionCount = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":75
 * cdef void *__cuModuleGetFunction = NULL
 * cdef void *__cuModuleGetFunctionCount = NULL
 * cdef void *__cuModuleEnumerateFunctions = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetGlobal_v2 = NULL
 * cdef void *__cuLinkCreate_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleEnumerateFunctions = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":76
 * cdef void *__cuModuleGetFunctionCount = NULL
 * cdef void *__cuModuleEnumerateFunctions = NULL
 * cdef void *__cuModuleGetGlobal_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLinkCreate_v2 = NULL
 * cdef void *__cuLinkAddData_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetGlobal_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":77
 * cdef void *__cuModuleEnumerateFunctions = NULL
 * cdef void *__cuModuleGetGlobal_v2 = NULL
 * cdef void *__cuLinkCreate_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLinkAddData_v2 = NULL
 * cdef void *__cuLinkAddFile_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkCreate_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":78
 * cdef void *__cuModuleGetGlobal_v2 = NULL
 * cdef void *__cuLinkCreate_v2 = NULL
 * cdef void *__cuLinkAddData_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLinkAddFile_v2 = NULL
 * cdef void *__cuLinkComplete = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddData_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":79
 * cdef void *__cuLinkCreate_v2 = NULL
 * cdef void *__cuLinkAddData_v2 = NULL
 * cdef void *__cuLinkAddFile_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLinkComplete = NULL
 * cdef void *__cuLinkDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkAddFile_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":80
 * cdef void *__cuLinkAddData_v2 = NULL
 * cdef void *__cuLinkAddFile_v2 = NULL
 * cdef void *__cuLinkComplete = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLinkDestroy = NULL
 * cdef void *__cuModuleGetTexRef = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkComplete = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":81
 * cdef void *__cuLinkAddFile_v2 = NULL
 * cdef void *__cuLinkComplete = NULL
 * cdef void *__cuLinkDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetTexRef = NULL
 * cdef void *__cuModuleGetSurfRef = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLinkDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":82
 * cdef void *__cuLinkComplete = NULL
 * cdef void *__cuLinkDestroy = NULL
 * cdef void *__cuModuleGetTexRef = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuModuleGetSurfRef = NULL
 * cdef void *__cuLibraryLoadData = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetTexRef = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":83
 * cdef void *__cuLinkDestroy = NULL
 * cdef void *__cuModuleGetTexRef = NULL
 * cdef void *__cuModuleGetSurfRef = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryLoadData = NULL
 * cdef void *__cuLibraryLoadFromFile = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuModuleGetSurfRef = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":84
 * cdef void *__cuModuleGetTexRef = NULL
 * cdef void *__cuModuleGetSurfRef = NULL
 * cdef void *__cuLibraryLoadData = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryLoadFromFile = NULL
 * cdef void *__cuLibraryUnload = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadData = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":85
 * cdef void *__cuModuleGetSurfRef = NULL
 * cdef void *__cuLibraryLoadData = NULL
 * cdef void *__cuLibraryLoadFromFile = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryUnload = NULL
 * cdef void *__cuLibraryGetKernel = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryLoadFromFile = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":86
 * cdef void *__cuLibraryLoadData = NULL
 * cdef void *__cuLibraryLoadFromFile = NULL
 * cdef void *__cuLibraryUnload = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetKernel = NULL
 * cdef void *__cuLibraryGetKernelCount = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryUnload = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":87
 * cdef void *__cuLibraryLoadFromFile = NULL
 * cdef void *__cuLibraryUnload = NULL
 * cdef void *__cuLibraryGetKernel = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetKernelCount = NULL
 * cdef void *__cuLibraryEnumerateKernels = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernel = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":88
 * cdef void *__cuLibraryUnload = NULL
 * cdef void *__cuLibraryGetKernel = NULL
 * cdef void *__cuLibraryGetKernelCount = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryEnumerateKernels = NULL
 * cdef void *__cuLibraryGetModule = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetKernelCount = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":89
 * cdef void *__cuLibraryGetKernel = NULL
 * cdef void *__cuLibraryGetKernelCount = NULL
 * cdef void *__cuLibraryEnumerateKernels = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetModule = NULL
 * cdef void *__cuKernelGetFunction = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryEnumerateKernels = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":90
 * cdef void *__cuLibraryGetKernelCount = NULL
 * cdef void *__cuLibraryEnumerateKernels = NULL
 * cdef void *__cuLibraryGetModule = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelGetFunction = NULL
 * cdef void *__cuKernelGetLibrary = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetModule = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":91
 * cdef void *__cuLibraryEnumerateKernels = NULL
 * cdef void *__cuLibraryGetModule = NULL
 * cdef void *__cuKernelGetFunction = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelGetLibrary = NULL
 * cdef void *__cuLibraryGetGlobal = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetFunction = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":92
 * cdef void *__cuLibraryGetModule = NULL
 * cdef void *__cuKernelGetFunction = NULL
 * cdef void *__cuKernelGetLibrary = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetGlobal = NULL
 * cdef void *__cuLibraryGetManaged = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetLibrary = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":93
 * cdef void *__cuKernelGetFunction = NULL
 * cdef void *__cuKernelGetLibrary = NULL
 * cdef void *__cuLibraryGetGlobal = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetManaged = NULL
 * cdef void *__cuLibraryGetUnifiedFunction = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetGlobal = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":94
 * cdef void *__cuKernelGetLibrary = NULL
 * cdef void *__cuLibraryGetGlobal = NULL
 * cdef void *__cuLibraryGetManaged = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLibraryGetUnifiedFunction = NULL
 * cdef void *__cuKernelGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetManaged = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":95
 * cdef void *__cuLibraryGetGlobal = NULL
 * cdef void *__cuLibraryGetManaged = NULL
 * cdef void *__cuLibraryGetUnifiedFunction = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelGetAttribute = NULL
 * cdef void *__cuKernelSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLibraryGetUnifiedFunction = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":96
 * cdef void *__cuLibraryGetManaged = NULL
 * cdef void *__cuLibraryGetUnifiedFunction = NULL
 * cdef void *__cuKernelGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelSetAttribute = NULL
 * cdef void *__cuKernelSetCacheConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":97
 * cdef void *__cuLibraryGetUnifiedFunction = NULL
 * cdef void *__cuKernelGetAttribute = NULL
 * cdef void *__cuKernelSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelSetCacheConfig = NULL
 * cdef void *__cuKernelGetName = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":98
 * cdef void *__cuKernelGetAttribute = NULL
 * cdef void *__cuKernelSetAttribute = NULL
 * cdef void *__cuKernelSetCacheConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelGetName = NULL
 * cdef void *__cuKernelGetParamInfo = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelSetCacheConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":99
 * cdef void *__cuKernelSetAttribute = NULL
 * cdef void *__cuKernelSetCacheConfig = NULL
 * cdef void *__cuKernelGetName = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuKernelGetParamInfo = NULL
 * cdef void *__cuMemGetInfo_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetName = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":100
 * cdef void *__cuKernelSetCacheConfig = NULL
 * cdef void *__cuKernelGetName = NULL
 * cdef void *__cuKernelGetParamInfo = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetInfo_v2 = NULL
 * cdef void *__cuMemAlloc_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuKernelGetParamInfo = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":101
 * cdef void *__cuKernelGetName = NULL
 * cdef void *__cuKernelGetParamInfo = NULL
 * cdef void *__cuMemGetInfo_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAlloc_v2 = NULL
 * cdef void *__cuMemAllocPitch_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetInfo_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":102
 * cdef void *__cuKernelGetParamInfo = NULL
 * cdef void *__cuMemGetInfo_v2 = NULL
 * cdef void *__cuMemAlloc_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAllocPitch_v2 = NULL
 * cdef void *__cuMemFree_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAlloc_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":103
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocPitch_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":104
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFree_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":105
 * cdef void *__cuMemAllocPitch_v2 = NULL
 * cdef void *__cuMemFree_v2 = NULL
 * cdef void *__cuMemGetAddressRange_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAllocHost_v2 = NULL
 * cdef void *__cuMemFreeHost = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAddressRange_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":106
 * cdef void *__cuMemFree_v2 = NULL
 * cdef void *__cuMemGetAddressRange_v2 = NULL
 * cdef void *__cuMemAllocHost_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemFreeHost = NULL
 * cdef void *__cuMemHostAlloc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocHost_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":107
 * cdef void *__cuMemGetAddressRange_v2 = NULL
 * cdef void *__cuMemAllocHost_v2 = NULL
 * cdef void *__cuMemFreeHost = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemHostAlloc = NULL
 * cdef void *__cuMemHostGetDevicePointer_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeHost = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":108
 * cdef void *__cuMemAllocHost_v2 = NULL
 * cdef void *__cuMemFreeHost = NULL
 * cdef void *__cuMemHostAlloc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemHostGetDevicePointer_v2 = NULL
 * cdef void *__cuMemHostGetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostAlloc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":109
 * cdef void *__cuMemFreeHost = NULL
 * cdef void *__cuMemHostAlloc = NULL
 * cdef void *__cuMemHostGetDevicePointer_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemHostGetFlags = NULL
 * cdef void *__cuMemAllocManaged = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetDevicePointer_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":110
 * cdef void *__cuMemHostAlloc = NULL
 * cdef void *__cuMemHostGetDevicePointer_v2 = NULL
 * cdef void *__cuMemHostGetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAllocManaged = NULL
 * cdef void *__cuDeviceRegisterAsyncNotification = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostGetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":111
 * cdef void *__cuMemHostGetDevicePointer_v2 = NULL
 * cdef void *__cuMemHostGetFlags = NULL
 * cdef void *__cuMemAllocManaged = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceRegisterAsyncNotification = NULL
 * cdef void *__cuDeviceUnregisterAsyncNotification = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocManaged = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":112
 * cdef void *__cuMemHostGetFlags = NULL
 * cdef void *__cuMemAllocManaged = NULL
 * cdef void *__cuDeviceRegisterAsyncNotification = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceUnregisterAsyncNotification = NULL
 * cdef void *__cuDeviceGetByPCIBusId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceRegisterAsyncNotification = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":113
 * cdef void *__cuMemAllocManaged = NULL
 * cdef void *__cuDeviceRegisterAsyncNotification = NULL
 * cdef void *__cuDeviceUnregisterAsyncNotification = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetByPCIBusId = NULL
 * cdef void *__cuDeviceGetPCIBusId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceUnregisterAsyncNotification = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":114
 * cdef void *__cuDeviceRegisterAsyncNotification = NULL
 * cdef void *__cuDeviceUnregisterAsyncNotification = NULL
 * cdef void *__cuDeviceGetByPCIBusId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetPCIBusId = NULL
 * cdef void *__cuIpcGetEventHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetByPCIBusId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":115
 * cdef void *__cuDeviceUnregisterAsyncNotification = NULL
 * cdef void *__cuDeviceGetByPCIBusId = NULL
 * cdef void *__cuDeviceGetPCIBusId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuIpcGetEventHandle = NULL
 * cdef void *__cuIpcOpenEventHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetPCIBusId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":116
 * cdef void *__cuDeviceGetByPCIBusId = NULL
 * cdef void *__cuDeviceGetPCIBusId = NULL
 * cdef void *__cuIpcGetEventHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuIpcOpenEventHandle = NULL
 * cdef void *__cuIpcGetMemHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetEventHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":117
 * cdef void *__cuDeviceGetPCIBusId = NULL
 * cdef void *__cuIpcGetEventHandle = NULL
 * cdef void *__cuIpcOpenEventHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuIpcGetMemHandle = NULL
 * cdef void *__cuIpcOpenMemHandle_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenEventHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":118
 * cdef void *__cuIpcGetEventHandle = NULL
 * cdef void *__cuIpcOpenEventHandle = NULL
 * cdef void *__cuIpcGetMemHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuIpcOpenMemHandle_v2 = NULL
 * cdef void *__cuIpcCloseMemHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcGetMemHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":119
 * cdef void *__cuIpcOpenEventHandle = NULL
 * cdef void *__cuIpcGetMemHandle = NULL
 * cdef void *__cuIpcOpenMemHandle_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuIpcCloseMemHandle = NULL
 * cdef void *__cuMemHostRegister_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcOpenMemHandle_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":120
 * cdef void *__cuIpcGetMemHandle = NULL
 * cdef void *__cuIpcOpenMemHandle_v2 = NULL
 * cdef void *__cuIpcCloseMemHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemHostRegister_v2 = NULL
 * cdef void *__cuMemHostUnregister = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuIpcCloseMemHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":121
 * cdef void *__cuIpcOpenMemHandle_v2 = NULL
 * cdef void *__cuIpcCloseMemHandle = NULL
 * cdef void *__cuMemHostRegister_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemHostUnregister = NULL
 * cdef void *__cuMemcpy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostRegister_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":122
 * cdef void *__cuIpcCloseMemHandle = NULL
 * cdef void *__cuMemHostRegister_v2 = NULL
 * cdef void *__cuMemHostUnregister = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy = NULL
 * cdef void *__cuMemcpyPeer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemHostUnregister = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":123
 * cdef void *__cuMemHostRegister_v2 = NULL
 * cdef void *__cuMemHostUnregister = NULL
 * cdef void *__cuMemcpy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyPeer = NULL
 * cdef void *__cuMemcpyHtoD_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":124
 * cdef void *__cuMemHostUnregister = NULL
 * cdef void *__cuMemcpy = NULL
 * cdef void *__cuMemcpyPeer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyHtoD_v2 = NULL
 * cdef void *__cuMemcpyDtoH_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":125
 * cdef void *__cuMemcpy = NULL
 * cdef void *__cuMemcpyPeer = NULL
 * cdef void *__cuMemcpyHtoD_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyDtoH_v2 = NULL
 * cdef void *__cuMemcpyDtoD_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoD_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":126
 * cdef void *__cuMemcpyPeer = NULL
 * cdef void *__cuMemcpyHtoD_v2 = NULL
 * cdef void *__cuMemcpyDtoH_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyDtoD_v2 = NULL
 * cdef void *__cuMemcpyDtoA_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoH_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":127
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoD_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":128
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoA_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":129
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoD_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":130
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoA_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":131
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoH_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":132
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoA_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":133
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2D_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":134
 * cdef void *__cuMemcpyAtoA_v2 = NULL
 * cdef void *__cuMemcpy2D_v2 = NULL
 * cdef void *__cuMemcpy2DUnaligned_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy3D_v2 = NULL
 * cdef void *__cuMemcpy3DPeer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DUnaligned_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":135
 * cdef void *__cuMemcpy2D_v2 = NULL
 * cdef void *__cuMemcpy2DUnaligned_v2 = NULL
 * cdef void *__cuMemcpy3D_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy3DPeer = NULL
 * cdef void *__cuMemcpyAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3D_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":136
 * cdef void *__cuMemcpy2DUnaligned_v2 = NULL
 * cdef void *__cuMemcpy3D_v2 = NULL
 * cdef void *__cuMemcpy3DPeer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyAsync = NULL
 * cdef void *__cuMemcpyPeerAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":137
 * cdef void *__cuMemcpy3D_v2 = NULL
 * cdef void *__cuMemcpy3DPeer = NULL
 * cdef void *__cuMemcpyAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyPeerAsync = NULL
 * cdef void *__cuMemcpyHtoDAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":138
 * cdef void *__cuMemcpy3DPeer = NULL
 * cdef void *__cuMemcpyAsync = NULL
 * cdef void *__cuMemcpyPeerAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyHtoDAsync_v2 = NULL
 * cdef void *__cuMemcpyDtoHAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyPeerAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":139
 * cdef void *__cuMemcpyAsync = NULL
 * cdef void *__cuMemcpyPeerAsync = NULL
 * cdef void *__cuMemcpyHtoDAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyDtoHAsync_v2 = NULL
 * cdef void *__cuMemcpyDtoDAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoDAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":140
 * cdef void *__cuMemcpyPeerAsync = NULL
 * cdef void *__cuMemcpyHtoDAsync_v2 = NULL
 * cdef void *__cuMemcpyDtoHAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyDtoDAsync_v2 = NULL
 * cdef void *__cuMemcpyHtoAAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoHAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":141
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyDtoDAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":142
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyHtoAAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":143
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyAtoHAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":144
 * cdef void *__cuMemcpyHtoAAsync_v2 = NULL
 * cdef void *__cuMemcpyAtoHAsync_v2 = NULL
 * cdef void *__cuMemcpy2DAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy3DAsync_v2 = NULL
 * cdef void *__cuMemcpy3DPeerAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy2DAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":145
 * cdef void *__cuMemcpyAtoHAsync_v2 = NULL
 * cdef void *__cuMemcpy2DAsync_v2 = NULL
 * cdef void *__cuMemcpy3DAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy3DPeerAsync = NULL
 * cdef void *__cuMemcpyBatchAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":146
 * cdef void *__cuMemcpy2DAsync_v2 = NULL
 * cdef void *__cuMemcpy3DAsync_v2 = NULL
 * cdef void *__cuMemcpy3DPeerAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpyBatchAsync_v2 = NULL
 * cdef void *__cuMemcpy3DBatchAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DPeerAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":147
 * cdef void *__cuMemcpy3DAsync_v2 = NULL
 * cdef void *__cuMemcpy3DPeerAsync = NULL
 * cdef void *__cuMemcpyBatchAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemcpy3DBatchAsync_v2 = NULL
 * cdef void *__cuMemsetD8_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpyBatchAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":148
 * cdef void *__cuMemcpy3DPeerAsync = NULL
 * cdef void *__cuMemcpyBatchAsync_v2 = NULL
 * cdef void *__cuMemcpy3DBatchAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD8_v2 = NULL
 * cdef void *__cuMemsetD16_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemcpy3DBatchAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":149
 * cdef void *__cuMemcpyBatchAsync_v2 = NULL
 * cdef void *__cuMemcpy3DBatchAsync_v2 = NULL
 * cdef void *__cuMemsetD8_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD16_v2 = NULL
 * cdef void *__cuMemsetD32_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":150
 * cdef void *__cuMemcpy3DBatchAsync_v2 = NULL
 * cdef void *__cuMemsetD8_v2 = NULL
 * cdef void *__cuMemsetD16_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD32_v2 = NULL
 * cdef void *__cuMemsetD2D8_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":151
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":152
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":153
 * cdef void *__cuMemsetD32_v2 = NULL
 * cdef void *__cuMemsetD2D8_v2 = NULL
 * cdef void *__cuMemsetD2D16_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD2D32_v2 = NULL
 * cdef void *__cuMemsetD8Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":154
 * cdef void *__cuMemsetD2D8_v2 = NULL
 * cdef void *__cuMemsetD2D16_v2 = NULL
 * cdef void *__cuMemsetD2D32_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD8Async = NULL
 * cdef void *__cuMemsetD16Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":155
 * cdef void *__cuMemsetD2D16_v2 = NULL
 * cdef void *__cuMemsetD2D32_v2 = NULL
 * cdef void *__cuMemsetD8Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD16Async = NULL
 * cdef void *__cuMemsetD32Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD8Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":156
 * cdef void *__cuMemsetD2D32_v2 = NULL
 * cdef void *__cuMemsetD8Async = NULL
 * cdef void *__cuMemsetD16Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD32Async = NULL
 * cdef void *__cuMemsetD2D8Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD16Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":157
 * cdef void *__cuMemsetD8Async = NULL
 * cdef void *__cuMemsetD16Async = NULL
 * cdef void *__cuMemsetD32Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD2D8Async = NULL
 * cdef void *__cuMemsetD2D16Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD32Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":158
 * cdef void *__cuMemsetD16Async = NULL
 * cdef void *__cuMemsetD32Async = NULL
 * cdef void *__cuMemsetD2D8Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD2D16Async = NULL
 * cdef void *__cuMemsetD2D32Async = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D8Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":159
 * cdef void *__cuMemsetD32Async = NULL
 * cdef void *__cuMemsetD2D8Async = NULL
 * cdef void *__cuMemsetD2D16Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemsetD2D32Async = NULL
 * cdef void *__cuArrayCreate_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D16Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":160
 * cdef void *__cuMemsetD2D8Async = NULL
 * cdef void *__cuMemsetD2D16Async = NULL
 * cdef void *__cuMemsetD2D32Async = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayCreate_v2 = NULL
 * cdef void *__cuArrayGetDescriptor_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemsetD2D32Async = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":161
 * cdef void *__cuMemsetD2D16Async = NULL
 * cdef void *__cuMemsetD2D32Async = NULL
 * cdef void *__cuArrayCreate_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayGetDescriptor_v2 = NULL
 * cdef void *__cuArrayGetSparseProperties = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayCreate_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":162
 * cdef void *__cuMemsetD2D32Async = NULL
 * cdef void *__cuArrayCreate_v2 = NULL
 * cdef void *__cuArrayGetDescriptor_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayGetSparseProperties = NULL
 * cdef void *__cuMipmappedArrayGetSparseProperties = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetDescriptor_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":163
 * cdef void *__cuArrayCreate_v2 = NULL
 * cdef void *__cuArrayGetDescriptor_v2 = NULL
 * cdef void *__cuArrayGetSparseProperties = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMipmappedArrayGetSparseProperties = NULL
 * cdef void *__cuArrayGetMemoryRequirements = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetSparseProperties = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":164
 * cdef void *__cuArrayGetDescriptor_v2 = NULL
 * cdef void *__cuArrayGetSparseProperties = NULL
 * cdef void *__cuMipmappedArrayGetSparseProperties = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayGetMemoryRequirements = NULL
 * cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetSparseProperties = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":165
 * cdef void *__cuArrayGetSparseProperties = NULL
 * cdef void *__cuMipmappedArrayGetSparseProperties = NULL
 * cdef void *__cuArrayGetMemoryRequirements = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL
 * cdef void *__cuArrayGetPlane = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetMemoryRequirements = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":166
 * cdef void *__cuMipmappedArrayGetSparseProperties = NULL
 * cdef void *__cuArrayGetMemoryRequirements = NULL
 * cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayGetPlane = NULL
 * cdef void *__cuArrayDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetMemoryRequirements = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":167
 * cdef void *__cuArrayGetMemoryRequirements = NULL
 * cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL
 * cdef void *__cuArrayGetPlane = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArrayDestroy = NULL
 * cdef void *__cuArray3DCreate_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayGetPlane = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":168
 * cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL
 * cdef void *__cuArrayGetPlane = NULL
 * cdef void *__cuArrayDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArray3DCreate_v2 = NULL
 * cdef void *__cuArray3DGetDescriptor_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArrayDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":169
 * cdef void *__cuArrayGetPlane = NULL
 * cdef void *__cuArrayDestroy = NULL
 * cdef void *__cuArray3DCreate_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuArray3DGetDescriptor_v2 = NULL
 * cdef void *__cuMipmappedArrayCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DCreate_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":170
 * cdef void *__cuArrayDestroy = NULL
 * cdef void *__cuArray3DCreate_v2 = NULL
 * cdef void *__cuArray3DGetDescriptor_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMipmappedArrayCreate = NULL
 * cdef void *__cuMipmappedArrayGetLevel = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuArray3DGetDescriptor_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":171
 * cdef void *__cuArray3DCreate_v2 = NULL
 * cdef void *__cuArray3DGetDescriptor_v2 = NULL
 * cdef void *__cuMipmappedArrayCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMipmappedArrayGetLevel = NULL
 * cdef void *__cuMipmappedArrayDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":172
 * cdef void *__cuArray3DGetDescriptor_v2 = NULL
 * cdef void *__cuMipmappedArrayCreate = NULL
 * cdef void *__cuMipmappedArrayGetLevel = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMipmappedArrayDestroy = NULL
 * cdef void *__cuMemGetHandleForAddressRange = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayGetLevel = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":173
 * cdef void *__cuMipmappedArrayCreate = NULL
 * cdef void *__cuMipmappedArrayGetLevel = NULL
 * cdef void *__cuMipmappedArrayDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetHandleForAddressRange = NULL
 * cdef void *__cuMemBatchDecompressAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMipmappedArrayDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":174
 * cdef void *__cuMipmappedArrayGetLevel = NULL
 * cdef void *__cuMipmappedArrayDestroy = NULL
 * cdef void *__cuMemGetHandleForAddressRange = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemBatchDecompressAsync = NULL
 * cdef void *__cuMemAddressReserve = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetHandleForAddressRange = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":175
 * cdef void *__cuMipmappedArrayDestroy = NULL
 * cdef void *__cuMemGetHandleForAddressRange = NULL
 * cdef void *__cuMemBatchDecompressAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAddressReserve = NULL
 * cdef void *__cuMemAddressFree = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemBatchDecompressAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":176
 * cdef void *__cuMemGetHandleForAddressRange = NULL
 * cdef void *__cuMemBatchDecompressAsync = NULL
 * cdef void *__cuMemAddressReserve = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAddressFree = NULL
 * cdef void *__cuMemCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressReserve = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":177
 * cdef void *__cuMemBatchDecompressAsync = NULL
 * cdef void *__cuMemAddressReserve = NULL
 * cdef void *__cuMemAddressFree = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemCreate = NULL
 * cdef void *__cuMemRelease = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAddressFree = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":178
 * cdef void *__cuMemAddressReserve = NULL
 * cdef void *__cuMemAddressFree = NULL
 * cdef void *__cuMemCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemRelease = NULL
 * cdef void *__cuMemMap = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":179
 * cdef void *__cuMemAddressFree = NULL
 * cdef void *__cuMemCreate = NULL
 * cdef void *__cuMemRelease = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemMap = NULL
 * cdef void *__cuMemMapArrayAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRelease = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":180
 * cdef void *__cuMemCreate = NULL
 * cdef void *__cuMemRelease = NULL
 * cdef void *__cuMemMap = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemMapArrayAsync = NULL
 * cdef void *__cuMemUnmap = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMap = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":181
 * cdef void *__cuMemRelease = NULL
 * cdef void *__cuMemMap = NULL
 * cdef void *__cuMemMapArrayAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemUnmap = NULL
 * cdef void *__cuMemSetAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemMapArrayAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":182
 * cdef void *__cuMemMap = NULL
 * cdef void *__cuMemMapArrayAsync = NULL
 * cdef void *__cuMemUnmap = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemSetAccess = NULL
 * cdef void *__cuMemGetAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemUnmap = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":183
 * cdef void *__cuMemMapArrayAsync = NULL
 * cdef void *__cuMemUnmap = NULL
 * cdef void *__cuMemSetAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetAccess = NULL
 * cdef void *__cuMemExportToShareableHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":184
 * cdef void *__cuMemUnmap = NULL
 * cdef void *__cuMemSetAccess = NULL
 * cdef void *__cuMemGetAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemExportToShareableHandle = NULL
 * cdef void *__cuMemImportFromShareableHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":185
 * cdef void *__cuMemSetAccess = NULL
 * cdef void *__cuMemGetAccess = NULL
 * cdef void *__cuMemExportToShareableHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemImportFromShareableHandle = NULL
 * cdef void *__cuMemGetAllocationGranularity = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemExportToShareableHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":186
 * cdef void *__cuMemGetAccess = NULL
 * cdef void *__cuMemExportToShareableHandle = NULL
 * cdef void *__cuMemImportFromShareableHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetAllocationGranularity = NULL
 * cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemImportFromShareableHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":187
 * cdef void *__cuMemExportToShareableHandle = NULL
 * cdef void *__cuMemImportFromShareableHandle = NULL
 * cdef void *__cuMemGetAllocationGranularity = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL
 * cdef void *__cuMemRetainAllocationHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationGranularity = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":188
 * cdef void *__cuMemImportFromShareableHandle = NULL
 * cdef void *__cuMemGetAllocationGranularity = NULL
 * cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemRetainAllocationHandle = NULL
 * cdef void *__cuMemFreeAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetAllocationPropertiesFromHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":189
 * cdef void *__cuMemGetAllocationGranularity = NULL
 * cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL
 * cdef void *__cuMemRetainAllocationHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemFreeAsync = NULL
 * cdef void *__cuMemAllocAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRetainAllocationHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":190
 * cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL
 * cdef void *__cuMemRetainAllocationHandle = NULL
 * cdef void *__cuMemFreeAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAllocAsync = NULL
 * cdef void *__cuMemPoolTrimTo = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemFreeAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":191
 * cdef void *__cuMemRetainAllocationHandle = NULL
 * cdef void *__cuMemFreeAsync = NULL
 * cdef void *__cuMemAllocAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolTrimTo = NULL
 * cdef void *__cuMemPoolSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":192
 * cdef void *__cuMemFreeAsync = NULL
 * cdef void *__cuMemAllocAsync = NULL
 * cdef void *__cuMemPoolTrimTo = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolSetAttribute = NULL
 * cdef void *__cuMemPoolGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolTrimTo = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":193
 * cdef void *__cuMemAllocAsync = NULL
 * cdef void *__cuMemPoolTrimTo = NULL
 * cdef void *__cuMemPoolSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolGetAttribute = NULL
 * cdef void *__cuMemPoolSetAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":194
 * cdef void *__cuMemPoolTrimTo = NULL
 * cdef void *__cuMemPoolSetAttribute = NULL
 * cdef void *__cuMemPoolGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolSetAccess = NULL
 * cdef void *__cuMemPoolGetAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":195
 * cdef void *__cuMemPoolSetAttribute = NULL
 * cdef void *__cuMemPoolGetAttribute = NULL
 * cdef void *__cuMemPoolSetAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolGetAccess = NULL
 * cdef void *__cuMemPoolCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolSetAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":196
 * cdef void *__cuMemPoolGetAttribute = NULL
 * cdef void *__cuMemPoolSetAccess = NULL
 * cdef void *__cuMemPoolGetAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolCreate = NULL
 * cdef void *__cuMemPoolDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolGetAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":197
 * cdef void *__cuMemPoolSetAccess = NULL
 * cdef void *__cuMemPoolGetAccess = NULL
 * cdef void *__cuMemPoolCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolDestroy = NULL
 * cdef void *__cuMemGetDefaultMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":198
 * cdef void *__cuMemPoolGetAccess = NULL
 * cdef void *__cuMemPoolCreate = NULL
 * cdef void *__cuMemPoolDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetDefaultMemPool = NULL
 * cdef void *__cuMemGetMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":199
 * cdef void *__cuMemPoolCreate = NULL
 * cdef void *__cuMemPoolDestroy = NULL
 * cdef void *__cuMemGetDefaultMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemGetMemPool = NULL
 * cdef void *__cuMemSetMemPool = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetDefaultMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":200
 * cdef void *__cuMemPoolDestroy = NULL
 * cdef void *__cuMemGetDefaultMemPool = NULL
 * cdef void *__cuMemGetMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemSetMemPool = NULL
 * cdef void *__cuMemAllocFromPoolAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemGetMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":201
 * cdef void *__cuMemGetDefaultMemPool = NULL
 * cdef void *__cuMemGetMemPool = NULL
 * cdef void *__cuMemSetMemPool = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAllocFromPoolAsync = NULL
 * cdef void *__cuMemPoolExportToShareableHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemSetMemPool = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":202
 * cdef void *__cuMemGetMemPool = NULL
 * cdef void *__cuMemSetMemPool = NULL
 * cdef void *__cuMemAllocFromPoolAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolExportToShareableHandle = NULL
 * cdef void *__cuMemPoolImportFromShareableHandle = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAllocFromPoolAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":203
 * cdef void *__cuMemSetMemPool = NULL
 * cdef void *__cuMemAllocFromPoolAsync = NULL
 * cdef void *__cuMemPoolExportToShareableHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolImportFromShareableHandle = NULL
 * cdef void *__cuMemPoolExportPointer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportToShareableHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":204
 * cdef void *__cuMemAllocFromPoolAsync = NULL
 * cdef void *__cuMemPoolExportToShareableHandle = NULL
 * cdef void *__cuMemPoolImportFromShareableHandle = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolExportPointer = NULL
 * cdef void *__cuMemPoolImportPointer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportFromShareableHandle = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":205
 * cdef void *__cuMemPoolExportToShareableHandle = NULL
 * cdef void *__cuMemPoolImportFromShareableHandle = NULL
 * cdef void *__cuMemPoolExportPointer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPoolImportPointer = NULL
 * cdef void *__cuMulticastCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolExportPointer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":206
 * cdef void *__cuMemPoolImportFromShareableHandle = NULL
 * cdef void *__cuMemPoolExportPointer = NULL
 * cdef void *__cuMemPoolImportPointer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastCreate = NULL
 * cdef void *__cuMulticastAddDevice = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPoolImportPointer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":207
 * cdef void *__cuMemPoolExportPointer = NULL
 * cdef void *__cuMemPoolImportPointer = NULL
 * cdef void *__cuMulticastCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastAddDevice = NULL
 * cdef void *__cuMulticastBindMem = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":208
 * cdef void *__cuMemPoolImportPointer = NULL
 * cdef void *__cuMulticastCreate = NULL
 * cdef void *__cuMulticastAddDevice = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastBindMem = NULL
 * cdef void *__cuMulticastBindMem_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastAddDevice = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":209
 * cdef void *__cuMulticastCreate = NULL
 * cdef void *__cuMulticastAddDevice = NULL
 * cdef void *__cuMulticastBindMem = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastBindMem_v2 = NULL
 * cdef void *__cuMulticastBindAddr = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":210
 * cdef void *__cuMulticastAddDevice = NULL
 * cdef void *__cuMulticastBindMem = NULL
 * cdef void *__cuMulticastBindMem_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastBindAddr = NULL
 * cdef void *__cuMulticastBindAddr_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindMem_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":211
 * cdef void *__cuMulticastBindMem = NULL
 * cdef void *__cuMulticastBindMem_v2 = NULL
 * cdef void *__cuMulticastBindAddr = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastBindAddr_v2 = NULL
 * cdef void *__cuMulticastUnbind = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":212
 * cdef void *__cuMulticastBindMem_v2 = NULL
 * cdef void *__cuMulticastBindAddr = NULL
 * cdef void *__cuMulticastBindAddr_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastUnbind = NULL
 * cdef void *__cuMulticastGetGranularity = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastBindAddr_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":213
 * cdef void *__cuMulticastBindAddr = NULL
 * cdef void *__cuMulticastBindAddr_v2 = NULL
 * cdef void *__cuMulticastUnbind = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMulticastGetGranularity = NULL
 * cdef void *__cuPointerGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastUnbind = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":214
 * cdef void *__cuMulticastBindAddr_v2 = NULL
 * cdef void *__cuMulticastUnbind = NULL
 * cdef void *__cuMulticastGetGranularity = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuPointerGetAttribute = NULL
 * cdef void *__cuMemPrefetchAsync_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMulticastGetGranularity = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":215
 * cdef void *__cuMulticastUnbind = NULL
 * cdef void *__cuMulticastGetGranularity = NULL
 * cdef void *__cuPointerGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPrefetchAsync_v2 = NULL
 * cdef void *__cuMemAdvise_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":216
 * cdef void *__cuMulticastGetGranularity = NULL
 * cdef void *__cuPointerGetAttribute = NULL
 * cdef void *__cuMemPrefetchAsync_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemAdvise_v2 = NULL
 * cdef void *__cuMemPrefetchBatchAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchAsync_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":217
 * cdef void *__cuPointerGetAttribute = NULL
 * cdef void *__cuMemPrefetchAsync_v2 = NULL
 * cdef void *__cuMemAdvise_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemPrefetchBatchAsync = NULL
 * cdef void *__cuMemDiscardBatchAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemAdvise_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":218
 * cdef void *__cuMemPrefetchAsync_v2 = NULL
 * cdef void *__cuMemAdvise_v2 = NULL
 * cdef void *__cuMemPrefetchBatchAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemDiscardBatchAsync = NULL
 * cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemPrefetchBatchAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":219
 * cdef void *__cuMemAdvise_v2 = NULL
 * cdef void *__cuMemPrefetchBatchAsync = NULL
 * cdef void *__cuMemDiscardBatchAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL
 * cdef void *__cuMemRangeGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardBatchAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":220
 * cdef void *__cuMemPrefetchBatchAsync = NULL
 * cdef void *__cuMemDiscardBatchAsync = NULL
 * cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemRangeGetAttribute = NULL
 * cdef void *__cuMemRangeGetAttributes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemDiscardAndPrefetchBatchAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":221
 * cdef void *__cuMemDiscardBatchAsync = NULL
 * cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL
 * cdef void *__cuMemRangeGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuMemRangeGetAttributes = NULL
 * cdef void *__cuPointerSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":222
 * cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL
 * cdef void *__cuMemRangeGetAttribute = NULL
 * cdef void *__cuMemRangeGetAttributes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuPointerSetAttribute = NULL
 * cdef void *__cuPointerGetAttributes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuMemRangeGetAttributes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":223
 * cdef void *__cuMemRangeGetAttribute = NULL
 * cdef void *__cuMemRangeGetAttributes = NULL
 * cdef void *__cuPointerSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuPointerGetAttributes = NULL
 * cdef void *__cuStreamCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":224
 * cdef void *__cuMemRangeGetAttributes = NULL
 * cdef void *__cuPointerSetAttribute = NULL
 * cdef void *__cuPointerGetAttributes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamCreate = NULL
 * cdef void *__cuStreamCreateWithPriority = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuPointerGetAttributes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":225
 * cdef void *__cuPointerSetAttribute = NULL
 * cdef void *__cuPointerGetAttributes = NULL
 * cdef void *__cuStreamCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamCreateWithPriority = NULL
 * cdef void *__cuStreamGetPriority = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":226
 * cdef void *__cuPointerGetAttributes = NULL
 * cdef void *__cuStreamCreate = NULL
 * cdef void *__cuStreamCreateWithPriority = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetPriority = NULL
 * cdef void *__cuStreamGetDevice = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCreateWithPriority = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":227
 * cdef void *__cuStreamCreate = NULL
 * cdef void *__cuStreamCreateWithPriority = NULL
 * cdef void *__cuStreamGetPriority = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetDevice = NULL
 * cdef void *__cuStreamGetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetPriority = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":228
 * cdef void *__cuStreamCreateWithPriority = NULL
 * cdef void *__cuStreamGetPriority = NULL
 * cdef void *__cuStreamGetDevice = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetFlags = NULL
 * cdef void *__cuStreamGetId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevice = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":229
 * cdef void *__cuStreamGetPriority = NULL
 * cdef void *__cuStreamGetDevice = NULL
 * cdef void *__cuStreamGetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetId = NULL
 * cdef void *__cuStreamGetCtx = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":230
 * cdef void *__cuStreamGetDevice = NULL
 * cdef void *__cuStreamGetFlags = NULL
 * cdef void *__cuStreamGetId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetCtx = NULL
 * cdef void *__cuStreamGetCtx_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":231
 * cdef void *__cuStreamGetFlags = NULL
 * cdef void *__cuStreamGetId = NULL
 * cdef void *__cuStreamGetCtx = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetCtx_v2 = NULL
 * cdef void *__cuStreamWaitEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":232
 * cdef void *__cuStreamGetId = NULL
 * cdef void *__cuStreamGetCtx = NULL
 * cdef void *__cuStreamGetCtx_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamWaitEvent = NULL
 * cdef void *__cuStreamAddCallback = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCtx_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":233
 * cdef void *__cuStreamGetCtx = NULL
 * cdef void *__cuStreamGetCtx_v2 = NULL
 * cdef void *__cuStreamWaitEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamAddCallback = NULL
 * cdef void *__cuStreamBeginCapture_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":234
 * cdef void *__cuStreamGetCtx_v2 = NULL
 * cdef void *__cuStreamWaitEvent = NULL
 * cdef void *__cuStreamAddCallback = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamBeginCapture_v2 = NULL
 * cdef void *__cuStreamBeginCaptureToGraph = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAddCallback = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":235
 * cdef void *__cuStreamWaitEvent = NULL
 * cdef void *__cuStreamAddCallback = NULL
 * cdef void *__cuStreamBeginCapture_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamBeginCaptureToGraph = NULL
 * cdef void *__cuThreadExchangeStreamCaptureMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCapture_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":236
 * cdef void *__cuStreamAddCallback = NULL
 * cdef void *__cuStreamBeginCapture_v2 = NULL
 * cdef void *__cuStreamBeginCaptureToGraph = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuThreadExchangeStreamCaptureMode = NULL
 * cdef void *__cuStreamEndCapture = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBeginCaptureToGraph = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":237
 * cdef void *__cuStreamBeginCapture_v2 = NULL
 * cdef void *__cuStreamBeginCaptureToGraph = NULL
 * cdef void *__cuThreadExchangeStreamCaptureMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamEndCapture = NULL
 * cdef void *__cuStreamIsCapturing = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuThreadExchangeStreamCaptureMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":238
 * cdef void *__cuStreamBeginCaptureToGraph = NULL
 * cdef void *__cuThreadExchangeStreamCaptureMode = NULL
 * cdef void *__cuStreamEndCapture = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamIsCapturing = NULL
 * cdef void *__cuStreamGetCaptureInfo_v3 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamEndCapture = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":239
 * cdef void *__cuThreadExchangeStreamCaptureMode = NULL
 * cdef void *__cuStreamEndCapture = NULL
 * cdef void *__cuStreamIsCapturing = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetCaptureInfo_v3 = NULL
 * cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamIsCapturing = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":240
 * cdef void *__cuStreamEndCapture = NULL
 * cdef void *__cuStreamIsCapturing = NULL
 * cdef void *__cuStreamGetCaptureInfo_v3 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL
 * cdef void *__cuStreamAttachMemAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetCaptureInfo_v3 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":241
 * cdef void *__cuStreamIsCapturing = NULL
 * cdef void *__cuStreamGetCaptureInfo_v3 = NULL
 * cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamAttachMemAsync = NULL
 * cdef void *__cuStreamQuery = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamUpdateCaptureDependencies_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":242
 * cdef void *__cuStreamGetCaptureInfo_v3 = NULL
 * cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL
 * cdef void *__cuStreamAttachMemAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamQuery = NULL
 * cdef void *__cuStreamSynchronize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamAttachMemAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":243
 * cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL
 * cdef void *__cuStreamAttachMemAsync = NULL
 * cdef void *__cuStreamQuery = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamSynchronize = NULL
 * cdef void *__cuStreamDestroy_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamQuery = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":244
 * cdef void *__cuStreamAttachMemAsync = NULL
 * cdef void *__cuStreamQuery = NULL
 * cdef void *__cuStreamSynchronize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamDestroy_v2 = NULL
 * cdef void *__cuStreamCopyAttributes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSynchronize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":245
 * cdef void *__cuStreamQuery = NULL
 * cdef void *__cuStreamSynchronize = NULL
 * cdef void *__cuStreamDestroy_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamCopyAttributes = NULL
 * cdef void *__cuStreamGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamDestroy_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":246
 * cdef void *__cuStreamSynchronize = NULL
 * cdef void *__cuStreamDestroy_v2 = NULL
 * cdef void *__cuStreamCopyAttributes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetAttribute = NULL
 * cdef void *__cuStreamSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamCopyAttributes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":247
 * cdef void *__cuStreamDestroy_v2 = NULL
 * cdef void *__cuStreamCopyAttributes = NULL
 * cdef void *__cuStreamGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamSetAttribute = NULL
 * cdef void *__cuEventCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":248
 * cdef void *__cuStreamCopyAttributes = NULL
 * cdef void *__cuStreamGetAttribute = NULL
 * cdef void *__cuStreamSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventCreate = NULL
 * cdef void *__cuEventRecord = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":249
 * cdef void *__cuStreamGetAttribute = NULL
 * cdef void *__cuStreamSetAttribute = NULL
 * cdef void *__cuEventCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventRecord = NULL
 * cdef void *__cuEventRecordWithFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":250
 * cdef void *__cuStreamSetAttribute = NULL
 * cdef void *__cuEventCreate = NULL
 * cdef void *__cuEventRecord = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventRecordWithFlags = NULL
 * cdef void *__cuEventQuery = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecord = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":251
 * cdef void *__cuEventCreate = NULL
 * cdef void *__cuEventRecord = NULL
 * cdef void *__cuEventRecordWithFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventQuery = NULL
 * cdef void *__cuEventSynchronize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventRecordWithFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":252
 * cdef void *__cuEventRecord = NULL
 * cdef void *__cuEventRecordWithFlags = NULL
 * cdef void *__cuEventQuery = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventSynchronize = NULL
 * cdef void *__cuEventDestroy_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventQuery = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":253
 * cdef void *__cuEventRecordWithFlags = NULL
 * cdef void *__cuEventQuery = NULL
 * cdef void *__cuEventSynchronize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventDestroy_v2 = NULL
 * cdef void *__cuEventElapsedTime_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventSynchronize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":254
 * cdef void *__cuEventQuery = NULL
 * cdef void *__cuEventSynchronize = NULL
 * cdef void *__cuEventDestroy_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventElapsedTime_v2 = NULL
 * cdef void *__cuImportExternalMemory = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventDestroy_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":255
 * cdef void *__cuEventSynchronize = NULL
 * cdef void *__cuEventDestroy_v2 = NULL
 * cdef void *__cuEventElapsedTime_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuImportExternalMemory = NULL
 * cdef void *__cuExternalMemoryGetMappedBuffer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventElapsedTime_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":256
 * cdef void *__cuEventDestroy_v2 = NULL
 * cdef void *__cuEventElapsedTime_v2 = NULL
 * cdef void *__cuImportExternalMemory = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuExternalMemoryGetMappedBuffer = NULL
 * cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalMemory = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":257
 * cdef void *__cuEventElapsedTime_v2 = NULL
 * cdef void *__cuImportExternalMemory = NULL
 * cdef void *__cuExternalMemoryGetMappedBuffer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL
 * cdef void *__cuDestroyExternalMemory = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedBuffer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":258
 * cdef void *__cuImportExternalMemory = NULL
 * cdef void *__cuExternalMemoryGetMappedBuffer = NULL
 * cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDestroyExternalMemory = NULL
 * cdef void *__cuImportExternalSemaphore = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuExternalMemoryGetMappedMipmappedArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":259
 * cdef void *__cuExternalMemoryGetMappedBuffer = NULL
 * cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL
 * cdef void *__cuDestroyExternalMemory = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuImportExternalSemaphore = NULL
 * cdef void *__cuSignalExternalSemaphoresAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalMemory = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":260
 * cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL
 * cdef void *__cuDestroyExternalMemory = NULL
 * cdef void *__cuImportExternalSemaphore = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSignalExternalSemaphoresAsync = NULL
 * cdef void *__cuWaitExternalSemaphoresAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuImportExternalSemaphore = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":261
 * cdef void *__cuDestroyExternalMemory = NULL
 * cdef void *__cuImportExternalSemaphore = NULL
 * cdef void *__cuSignalExternalSemaphoresAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuWaitExternalSemaphoresAsync = NULL
 * cdef void *__cuDestroyExternalSemaphore = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSignalExternalSemaphoresAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":262
 * cdef void *__cuImportExternalSemaphore = NULL
 * cdef void *__cuSignalExternalSemaphoresAsync = NULL
 * cdef void *__cuWaitExternalSemaphoresAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDestroyExternalSemaphore = NULL
 * cdef void *__cuStreamWaitValue32_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuWaitExternalSemaphoresAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":263
 * cdef void *__cuSignalExternalSemaphoresAsync = NULL
 * cdef void *__cuWaitExternalSemaphoresAsync = NULL
 * cdef void *__cuDestroyExternalSemaphore = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamWaitValue32_v2 = NULL
 * cdef void *__cuStreamWaitValue64_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDestroyExternalSemaphore = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":264
 * cdef void *__cuWaitExternalSemaphoresAsync = NULL
 * cdef void *__cuDestroyExternalSemaphore = NULL
 * cdef void *__cuStreamWaitValue32_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamWaitValue64_v2 = NULL
 * cdef void *__cuStreamWriteValue32_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue32_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":265
 * cdef void *__cuDestroyExternalSemaphore = NULL
 * cdef void *__cuStreamWaitValue32_v2 = NULL
 * cdef void *__cuStreamWaitValue64_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamWriteValue32_v2 = NULL
 * cdef void *__cuStreamWriteValue64_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWaitValue64_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":266
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue32_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":267
 * cdef void *__cuStreamWaitValue64_v2 = NULL
 * cdef void *__cuStreamWriteValue32_v2 = NULL
 * cdef void *__cuStreamWriteValue64_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamBatchMemOp_v2 = NULL
 * cdef void *__cuFuncGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamWriteValue64_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":268
 * cdef void *__cuStreamWriteValue32_v2 = NULL
 * cdef void *__cuStreamWriteValue64_v2 = NULL
 * cdef void *__cuStreamBatchMemOp_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncGetAttribute = NULL
 * cdef void *__cuFuncSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamBatchMemOp_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":269
 * cdef void *__cuStreamWriteValue64_v2 = NULL
 * cdef void *__cuStreamBatchMemOp_v2 = NULL
 * cdef void *__cuFuncGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncSetAttribute = NULL
 * cdef void *__cuFuncSetCacheConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":270
 * cdef void *__cuStreamBatchMemOp_v2 = NULL
 * cdef void *__cuFuncGetAttribute = NULL
 * cdef void *__cuFuncSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncSetCacheConfig = NULL
 * cdef void *__cuFuncGetModule = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":271
 * cdef void *__cuFuncGetAttribute = NULL
 * cdef void *__cuFuncSetAttribute = NULL
 * cdef void *__cuFuncSetCacheConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncGetModule = NULL
 * cdef void *__cuFuncGetName = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetCacheConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":272
 * cdef void *__cuFuncSetAttribute = NULL
 * cdef void *__cuFuncSetCacheConfig = NULL
 * cdef void *__cuFuncGetModule = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncGetName = NULL
 * cdef void *__cuFuncGetParamInfo = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetModule = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":273
 * cdef void *__cuFuncSetCacheConfig = NULL
 * cdef void *__cuFuncGetModule = NULL
 * cdef void *__cuFuncGetName = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncGetParamInfo = NULL
 * cdef void *__cuFuncIsLoaded = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetName = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":274
 * cdef void *__cuFuncGetModule = NULL
 * cdef void *__cuFuncGetName = NULL
 * cdef void *__cuFuncGetParamInfo = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncIsLoaded = NULL
 * cdef void *__cuFuncLoad = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncGetParamInfo = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":275
 * cdef void *__cuFuncGetName = NULL
 * cdef void *__cuFuncGetParamInfo = NULL
 * cdef void *__cuFuncIsLoaded = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncLoad = NULL
 * cdef void *__cuLaunchKernel = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncIsLoaded = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":276
 * cdef void *__cuFuncGetParamInfo = NULL
 * cdef void *__cuFuncIsLoaded = NULL
 * cdef void *__cuFuncLoad = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchKernel = NULL
 * cdef void *__cuLaunchKernelEx = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncLoad = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":277
 * cdef void *__cuFuncIsLoaded = NULL
 * cdef void *__cuFuncLoad = NULL
 * cdef void *__cuLaunchKernel = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchKernelEx = NULL
 * cdef void *__cuLaunchCooperativeKernel = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernel = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":278
 * cdef void *__cuFuncLoad = NULL
 * cdef void *__cuLaunchKernel = NULL
 * cdef void *__cuLaunchKernelEx = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchCooperativeKernel = NULL
 * cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchKernelEx = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":279
 * cdef void *__cuLaunchKernel = NULL
 * cdef void *__cuLaunchKernelEx = NULL
 * cdef void *__cuLaunchCooperativeKernel = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL
 * cdef void *__cuLaunchHostFunc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernel = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":280
 * cdef void *__cuLaunchKernelEx = NULL
 * cdef void *__cuLaunchCooperativeKernel = NULL
 * cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchHostFunc = NULL
 * cdef void *__cuFuncSetBlockShape = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchCooperativeKernelMultiDevice = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":281
 * cdef void *__cuLaunchCooperativeKernel = NULL
 * cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL
 * cdef void *__cuLaunchHostFunc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncSetBlockShape = NULL
 * cdef void *__cuFuncSetSharedSize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchHostFunc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":282
 * cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL
 * cdef void *__cuLaunchHostFunc = NULL
 * cdef void *__cuFuncSetBlockShape = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncSetSharedSize = NULL
 * cdef void *__cuParamSetSize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetBlockShape = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":283
 * cdef void *__cuLaunchHostFunc = NULL
 * cdef void *__cuFuncSetBlockShape = NULL
 * cdef void *__cuFuncSetSharedSize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuParamSetSize = NULL
 * cdef void *__cuParamSeti = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedSize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":284
 * cdef void *__cuFuncSetBlockShape = NULL
 * cdef void *__cuFuncSetSharedSize = NULL
 * cdef void *__cuParamSetSize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuParamSeti = NULL
 * cdef void *__cuParamSetf = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetSize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":285
 * cdef void *__cuFuncSetSharedSize = NULL
 * cdef void *__cuParamSetSize = NULL
 * cdef void *__cuParamSeti = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuParamSetf = NULL
 * cdef void *__cuParamSetv = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSeti = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":286
 * cdef void *__cuParamSetSize = NULL
 * cdef void *__cuParamSeti = NULL
 * cdef void *__cuParamSetf = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuParamSetv = NULL
 * cdef void *__cuLaunch = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetf = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":287
 * cdef void *__cuParamSeti = NULL
 * cdef void *__cuParamSetf = NULL
 * cdef void *__cuParamSetv = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunch = NULL
 * cdef void *__cuLaunchGrid = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetv = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":288
 * cdef void *__cuParamSetf = NULL
 * cdef void *__cuParamSetv = NULL
 * cdef void *__cuLaunch = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchGrid = NULL
 * cdef void *__cuLaunchGridAsync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunch = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":289
 * cdef void *__cuParamSetv = NULL
 * cdef void *__cuLaunch = NULL
 * cdef void *__cuLaunchGrid = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLaunchGridAsync = NULL
 * cdef void *__cuParamSetTexRef = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGrid = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":290
 * cdef void *__cuLaunch = NULL
 * cdef void *__cuLaunchGrid = NULL
 * cdef void *__cuLaunchGridAsync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuParamSetTexRef = NULL
 * cdef void *__cuFuncSetSharedMemConfig = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLaunchGridAsync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":291
 * cdef void *__cuLaunchGrid = NULL
 * cdef void *__cuLaunchGridAsync = NULL
 * cdef void *__cuParamSetTexRef = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuFuncSetSharedMemConfig = NULL
 * cdef void *__cuGraphCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuParamSetTexRef = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":292
 * cdef void *__cuLaunchGridAsync = NULL
 * cdef void *__cuParamSetTexRef = NULL
 * cdef void *__cuFuncSetSharedMemConfig = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphCreate = NULL
 * cdef void *__cuGraphAddKernelNode_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuFuncSetSharedMemConfig = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":293
 * cdef void *__cuParamSetTexRef = NULL
 * cdef void *__cuFuncSetSharedMemConfig = NULL
 * cdef void *__cuGraphCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddKernelNode_v2 = NULL
 * cdef void *__cuGraphKernelNodeGetParams_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":294
 * cdef void *__cuFuncSetSharedMemConfig = NULL
 * cdef void *__cuGraphCreate = NULL
 * cdef void *__cuGraphAddKernelNode_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphKernelNodeGetParams_v2 = NULL
 * cdef void *__cuGraphKernelNodeSetParams_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddKernelNode_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":295
 * cdef void *__cuGraphCreate = NULL
 * cdef void *__cuGraphAddKernelNode_v2 = NULL
 * cdef void *__cuGraphKernelNodeGetParams_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphAddMemcpyNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetParams_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":296
 * cdef void *__cuGraphAddKernelNode_v2 = NULL
 * cdef void *__cuGraphKernelNodeGetParams_v2 = NULL
 * cdef void *__cuGraphKernelNodeSetParams_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddMemcpyNode = NULL
 * cdef void *__cuGraphMemcpyNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetParams_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":297
 * cdef void *__cuGraphKernelNodeGetParams_v2 = NULL
 * cdef void *__cuGraphKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphAddMemcpyNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemcpyNodeGetParams = NULL
 * cdef void *__cuGraphMemcpyNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemcpyNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":298
 * cdef void *__cuGraphKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphAddMemcpyNode = NULL
 * cdef void *__cuGraphMemcpyNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphAddMemsetNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":299
 * cdef void *__cuGraphAddMemcpyNode = NULL
 * cdef void *__cuGraphMemcpyNodeGetParams = NULL
 * cdef void *__cuGraphMemcpyNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddMemsetNode = NULL
 * cdef void *__cuGraphMemsetNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemcpyNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":300
 * cdef void *__cuGraphMemcpyNodeGetParams = NULL
 * cdef void *__cuGraphMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphAddMemsetNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemsetNodeGetParams = NULL
 * cdef void *__cuGraphMemsetNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemsetNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":301
 * cdef void *__cuGraphMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphAddMemsetNode = NULL
 * cdef void *__cuGraphMemsetNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemsetNodeSetParams = NULL
 * cdef void *__cuGraphAddHostNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":302
 * cdef void *__cuGraphAddMemsetNode = NULL
 * cdef void *__cuGraphMemsetNodeGetParams = NULL
 * cdef void *__cuGraphMemsetNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddHostNode = NULL
 * cdef void *__cuGraphHostNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemsetNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":303
 * cdef void *__cuGraphMemsetNodeGetParams = NULL
 * cdef void *__cuGraphMemsetNodeSetParams = NULL
 * cdef void *__cuGraphAddHostNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphHostNodeGetParams = NULL
 * cdef void *__cuGraphHostNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddHostNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":304
 * cdef void *__cuGraphMemsetNodeSetParams = NULL
 * cdef void *__cuGraphAddHostNode = NULL
 * cdef void *__cuGraphHostNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphHostNodeSetParams = NULL
 * cdef void *__cuGraphAddChildGraphNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":305
 * cdef void *__cuGraphAddHostNode = NULL
 * cdef void *__cuGraphHostNodeGetParams = NULL
 * cdef void *__cuGraphHostNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddChildGraphNode = NULL
 * cdef void *__cuGraphChildGraphNodeGetGraph = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphHostNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":306
 * cdef void *__cuGraphHostNodeGetParams = NULL
 * cdef void *__cuGraphHostNodeSetParams = NULL
 * cdef void *__cuGraphAddChildGraphNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphChildGraphNodeGetGraph = NULL
 * cdef void *__cuGraphAddEmptyNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddChildGraphNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":307
 * cdef void *__cuGraphHostNodeSetParams = NULL
 * cdef void *__cuGraphAddChildGraphNode = NULL
 * cdef void *__cuGraphChildGraphNodeGetGraph = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddEmptyNode = NULL
 * cdef void *__cuGraphAddEventRecordNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphChildGraphNodeGetGraph = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":308
 * cdef void *__cuGraphAddChildGraphNode = NULL
 * cdef void *__cuGraphChildGraphNodeGetGraph = NULL
 * cdef void *__cuGraphAddEmptyNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddEventRecordNode = NULL
 * cdef void *__cuGraphEventRecordNodeGetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEmptyNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":309
 * cdef void *__cuGraphChildGraphNodeGetGraph = NULL
 * cdef void *__cuGraphAddEmptyNode = NULL
 * cdef void *__cuGraphAddEventRecordNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphEventRecordNodeGetEvent = NULL
 * cdef void *__cuGraphEventRecordNodeSetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventRecordNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":310
 * cdef void *__cuGraphAddEmptyNode = NULL
 * cdef void *__cuGraphAddEventRecordNode = NULL
 * cdef void *__cuGraphEventRecordNodeGetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphAddEventWaitNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeGetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":311
 * cdef void *__cuGraphAddEventRecordNode = NULL
 * cdef void *__cuGraphEventRecordNodeGetEvent = NULL
 * cdef void *__cuGraphEventRecordNodeSetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddEventWaitNode = NULL
 * cdef void *__cuGraphEventWaitNodeGetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventRecordNodeSetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":312
 * cdef void *__cuGraphEventRecordNodeGetEvent = NULL
 * cdef void *__cuGraphEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphAddEventWaitNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphEventWaitNodeGetEvent = NULL
 * cdef void *__cuGraphEventWaitNodeSetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddEventWaitNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":313
 * cdef void *__cuGraphEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphAddEventWaitNode = NULL
 * cdef void *__cuGraphEventWaitNodeGetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeGetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":314
 * cdef void *__cuGraphAddEventWaitNode = NULL
 * cdef void *__cuGraphEventWaitNodeGetEvent = NULL
 * cdef void *__cuGraphEventWaitNodeSetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphEventWaitNodeSetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":315
 * cdef void *__cuGraphEventWaitNodeGetEvent = NULL
 * cdef void *__cuGraphEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresSignalNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":316
 * cdef void *__cuGraphEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":317
 * cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresSignalNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":318
 * cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddExternalSemaphoresWaitNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":319
 * cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphAddBatchMemOpNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":320
 * cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddBatchMemOpNode = NULL
 * cdef void *__cuGraphBatchMemOpNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExternalSemaphoresWaitNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":321
 * cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL
 * cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphAddBatchMemOpNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphBatchMemOpNodeGetParams = NULL
 * cdef void *__cuGraphBatchMemOpNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddBatchMemOpNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":322
 * cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphAddBatchMemOpNode = NULL
 * cdef void *__cuGraphBatchMemOpNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":323
 * cdef void *__cuGraphAddBatchMemOpNode = NULL
 * cdef void *__cuGraphBatchMemOpNodeGetParams = NULL
 * cdef void *__cuGraphBatchMemOpNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphAddMemAllocNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphBatchMemOpNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":324
 * cdef void *__cuGraphBatchMemOpNodeGetParams = NULL
 * cdef void *__cuGraphBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddMemAllocNode = NULL
 * cdef void *__cuGraphMemAllocNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecBatchMemOpNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":325
 * cdef void *__cuGraphBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphAddMemAllocNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemAllocNodeGetParams = NULL
 * cdef void *__cuGraphAddMemFreeNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemAllocNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":326
 * cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL
 * cdef void *__cuGraphAddMemAllocNode = NULL
 * cdef void *__cuGraphMemAllocNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddMemFreeNode = NULL
 * cdef void *__cuGraphMemFreeNodeGetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemAllocNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":327
 * cdef void *__cuGraphAddMemAllocNode = NULL
 * cdef void *__cuGraphMemAllocNodeGetParams = NULL
 * cdef void *__cuGraphAddMemFreeNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphMemFreeNodeGetParams = NULL
 * cdef void *__cuDeviceGraphMemTrim = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddMemFreeNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":328
 * cdef void *__cuGraphMemAllocNodeGetParams = NULL
 * cdef void *__cuGraphAddMemFreeNode = NULL
 * cdef void *__cuGraphMemFreeNodeGetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGraphMemTrim = NULL
 * cdef void *__cuDeviceGetGraphMemAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphMemFreeNodeGetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":329
 * cdef void *__cuGraphAddMemFreeNode = NULL
 * cdef void *__cuGraphMemFreeNodeGetParams = NULL
 * cdef void *__cuDeviceGraphMemTrim = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetGraphMemAttribute = NULL
 * cdef void *__cuDeviceSetGraphMemAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGraphMemTrim = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":330
 * cdef void *__cuGraphMemFreeNodeGetParams = NULL
 * cdef void *__cuDeviceGraphMemTrim = NULL
 * cdef void *__cuDeviceGetGraphMemAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceSetGraphMemAttribute = NULL
 * cdef void *__cuGraphClone = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetGraphMemAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":331
 * cdef void *__cuDeviceGraphMemTrim = NULL
 * cdef void *__cuDeviceGetGraphMemAttribute = NULL
 * cdef void *__cuDeviceSetGraphMemAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphClone = NULL
 * cdef void *__cuGraphNodeFindInClone = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceSetGraphMemAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":332
 * cdef void *__cuDeviceGetGraphMemAttribute = NULL
 * cdef void *__cuDeviceSetGraphMemAttribute = NULL
 * cdef void *__cuGraphClone = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeFindInClone = NULL
 * cdef void *__cuGraphNodeGetType = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphClone = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":333
 * cdef void *__cuDeviceSetGraphMemAttribute = NULL
 * cdef void *__cuGraphClone = NULL
 * cdef void *__cuGraphNodeFindInClone = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetType = NULL
 * cdef void *__cuGraphNodeGetContainingGraph = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeFindInClone = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":334
 * cdef void *__cuGraphClone = NULL
 * cdef void *__cuGraphNodeFindInClone = NULL
 * cdef void *__cuGraphNodeGetType = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetContainingGraph = NULL
 * cdef void *__cuGraphNodeGetLocalId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetType = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":335
 * cdef void *__cuGraphNodeFindInClone = NULL
 * cdef void *__cuGraphNodeGetType = NULL
 * cdef void *__cuGraphNodeGetContainingGraph = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetLocalId = NULL
 * cdef void *__cuGraphNodeGetToolsId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetContainingGraph = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":336
 * cdef void *__cuGraphNodeGetType = NULL
 * cdef void *__cuGraphNodeGetContainingGraph = NULL
 * cdef void *__cuGraphNodeGetLocalId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetToolsId = NULL
 * cdef void *__cuGraphGetId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetLocalId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":337
 * cdef void *__cuGraphNodeGetContainingGraph = NULL
 * cdef void *__cuGraphNodeGetLocalId = NULL
 * cdef void *__cuGraphNodeGetToolsId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphGetId = NULL
 * cdef void *__cuGraphExecGetId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetToolsId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":338
 * cdef void *__cuGraphNodeGetLocalId = NULL
 * cdef void *__cuGraphNodeGetToolsId = NULL
 * cdef void *__cuGraphGetId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecGetId = NULL
 * cdef void *__cuGraphGetNodes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":339
 * cdef void *__cuGraphNodeGetToolsId = NULL
 * cdef void *__cuGraphGetId = NULL
 * cdef void *__cuGraphExecGetId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphGetNodes = NULL
 * cdef void *__cuGraphGetRootNodes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":340
 * cdef void *__cuGraphGetId = NULL
 * cdef void *__cuGraphExecGetId = NULL
 * cdef void *__cuGraphGetNodes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphGetRootNodes = NULL
 * cdef void *__cuGraphGetEdges_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetNodes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":341
 * cdef void *__cuGraphExecGetId = NULL
 * cdef void *__cuGraphGetNodes = NULL
 * cdef void *__cuGraphGetRootNodes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphGetEdges_v2 = NULL
 * cdef void *__cuGraphNodeGetDependencies_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetRootNodes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":342
 * cdef void *__cuGraphGetNodes = NULL
 * cdef void *__cuGraphGetRootNodes = NULL
 * cdef void *__cuGraphGetEdges_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetDependencies_v2 = NULL
 * cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphGetEdges_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":343
 * cdef void *__cuGraphGetRootNodes = NULL
 * cdef void *__cuGraphGetEdges_v2 = NULL
 * cdef void *__cuGraphNodeGetDependencies_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL
 * cdef void *__cuGraphAddDependencies_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependencies_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":344
 * 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
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetDependentNodes_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":345
 * cdef void *__cuGraphNodeGetDependencies_v2 = NULL
 * cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL
 * cdef void *__cuGraphAddDependencies_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphRemoveDependencies_v2 = NULL
 * cdef void *__cuGraphDestroyNode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddDependencies_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":346
 * cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL
 * cdef void *__cuGraphAddDependencies_v2 = NULL
 * cdef void *__cuGraphRemoveDependencies_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphDestroyNode = NULL
 * cdef void *__cuGraphInstantiateWithFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRemoveDependencies_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":347
 * cdef void *__cuGraphAddDependencies_v2 = NULL
 * cdef void *__cuGraphRemoveDependencies_v2 = NULL
 * cdef void *__cuGraphDestroyNode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphInstantiateWithFlags = NULL
 * cdef void *__cuGraphInstantiateWithParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroyNode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":348
 * cdef void *__cuGraphRemoveDependencies_v2 = NULL
 * cdef void *__cuGraphDestroyNode = NULL
 * cdef void *__cuGraphInstantiateWithFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphInstantiateWithParams = NULL
 * cdef void *__cuGraphExecGetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":349
 * cdef void *__cuGraphDestroyNode = NULL
 * cdef void *__cuGraphInstantiateWithFlags = NULL
 * cdef void *__cuGraphInstantiateWithParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecGetFlags = NULL
 * cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphInstantiateWithParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":350
 * cdef void *__cuGraphInstantiateWithFlags = NULL
 * cdef void *__cuGraphInstantiateWithParams = NULL
 * cdef void *__cuGraphExecGetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphExecMemcpyNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecGetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":351
 * cdef void *__cuGraphInstantiateWithParams = NULL
 * cdef void *__cuGraphExecGetFlags = NULL
 * cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphExecMemsetNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecKernelNodeSetParams_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":352
 * cdef void *__cuGraphExecGetFlags = NULL
 * cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphExecMemcpyNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecMemsetNodeSetParams = NULL
 * cdef void *__cuGraphExecHostNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemcpyNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":353
 * cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL
 * cdef void *__cuGraphExecMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphExecMemsetNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecHostNodeSetParams = NULL
 * cdef void *__cuGraphExecChildGraphNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecMemsetNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":354
 * cdef void *__cuGraphExecMemcpyNodeSetParams = NULL
 * cdef void *__cuGraphExecMemsetNodeSetParams = NULL
 * cdef void *__cuGraphExecHostNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecChildGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecHostNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":355
 * cdef void *__cuGraphExecMemsetNodeSetParams = NULL
 * cdef void *__cuGraphExecHostNodeSetParams = NULL
 * cdef void *__cuGraphExecChildGraphNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecChildGraphNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":356
 * cdef void *__cuGraphExecHostNodeSetParams = NULL
 * cdef void *__cuGraphExecChildGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventRecordNodeSetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":357
 * cdef void *__cuGraphExecChildGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecEventWaitNodeSetEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":358
 * cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL
 * cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphNodeSetEnabled = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":359
 * cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL
 * cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeSetEnabled = NULL
 * cdef void *__cuGraphNodeGetEnabled = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":360
 * cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL
 * cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphNodeSetEnabled = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeGetEnabled = NULL
 * cdef void *__cuGraphUpload = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetEnabled = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":361
 * cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL
 * cdef void *__cuGraphNodeSetEnabled = NULL
 * cdef void *__cuGraphNodeGetEnabled = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphUpload = NULL
 * cdef void *__cuGraphLaunch = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeGetEnabled = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":362
 * cdef void *__cuGraphNodeSetEnabled = NULL
 * cdef void *__cuGraphNodeGetEnabled = NULL
 * cdef void *__cuGraphUpload = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphLaunch = NULL
 * cdef void *__cuGraphExecDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphUpload = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":363
 * cdef void *__cuGraphNodeGetEnabled = NULL
 * cdef void *__cuGraphUpload = NULL
 * cdef void *__cuGraphLaunch = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecDestroy = NULL
 * cdef void *__cuGraphDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphLaunch = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":364
 * cdef void *__cuGraphUpload = NULL
 * cdef void *__cuGraphLaunch = NULL
 * cdef void *__cuGraphExecDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphDestroy = NULL
 * cdef void *__cuGraphExecUpdate_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":365
 * cdef void *__cuGraphLaunch = NULL
 * cdef void *__cuGraphExecDestroy = NULL
 * cdef void *__cuGraphDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecUpdate_v2 = NULL
 * cdef void *__cuGraphKernelNodeCopyAttributes = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":366
 * cdef void *__cuGraphExecDestroy = NULL
 * cdef void *__cuGraphDestroy = NULL
 * cdef void *__cuGraphExecUpdate_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphKernelNodeCopyAttributes = NULL
 * cdef void *__cuGraphKernelNodeGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecUpdate_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":367
 * cdef void *__cuGraphDestroy = NULL
 * cdef void *__cuGraphExecUpdate_v2 = NULL
 * cdef void *__cuGraphKernelNodeCopyAttributes = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphKernelNodeGetAttribute = NULL
 * cdef void *__cuGraphKernelNodeSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeCopyAttributes = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":368
 * cdef void *__cuGraphExecUpdate_v2 = NULL
 * cdef void *__cuGraphKernelNodeCopyAttributes = NULL
 * cdef void *__cuGraphKernelNodeGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphKernelNodeSetAttribute = NULL
 * cdef void *__cuGraphDebugDotPrint = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":369
 * cdef void *__cuGraphKernelNodeCopyAttributes = NULL
 * cdef void *__cuGraphKernelNodeGetAttribute = NULL
 * cdef void *__cuGraphKernelNodeSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphDebugDotPrint = NULL
 * cdef void *__cuUserObjectCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphKernelNodeSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":370
 * cdef void *__cuGraphKernelNodeGetAttribute = NULL
 * cdef void *__cuGraphKernelNodeSetAttribute = NULL
 * cdef void *__cuGraphDebugDotPrint = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuUserObjectCreate = NULL
 * cdef void *__cuUserObjectRetain = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphDebugDotPrint = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":371
 * cdef void *__cuGraphKernelNodeSetAttribute = NULL
 * cdef void *__cuGraphDebugDotPrint = NULL
 * cdef void *__cuUserObjectCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuUserObjectRetain = NULL
 * cdef void *__cuUserObjectRelease = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":372
 * cdef void *__cuGraphDebugDotPrint = NULL
 * cdef void *__cuUserObjectCreate = NULL
 * cdef void *__cuUserObjectRetain = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuUserObjectRelease = NULL
 * cdef void *__cuGraphRetainUserObject = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRetain = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":373
 * cdef void *__cuUserObjectCreate = NULL
 * cdef void *__cuUserObjectRetain = NULL
 * cdef void *__cuUserObjectRelease = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphRetainUserObject = NULL
 * cdef void *__cuGraphReleaseUserObject = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuUserObjectRelease = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":374
 * cdef void *__cuUserObjectRetain = NULL
 * cdef void *__cuUserObjectRelease = NULL
 * cdef void *__cuGraphRetainUserObject = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphReleaseUserObject = NULL
 * cdef void *__cuGraphAddNode_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphRetainUserObject = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":375
 * cdef void *__cuUserObjectRelease = NULL
 * cdef void *__cuGraphRetainUserObject = NULL
 * cdef void *__cuGraphReleaseUserObject = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphAddNode_v2 = NULL
 * cdef void *__cuGraphNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphReleaseUserObject = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":376
 * cdef void *__cuGraphRetainUserObject = NULL
 * cdef void *__cuGraphReleaseUserObject = NULL
 * cdef void *__cuGraphAddNode_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecNodeSetParams = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphAddNode_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":377
 * cdef void *__cuGraphReleaseUserObject = NULL
 * cdef void *__cuGraphAddNode_v2 = NULL
 * cdef void *__cuGraphNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphExecNodeSetParams = NULL
 * cdef void *__cuGraphConditionalHandleCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":378
 * cdef void *__cuGraphAddNode_v2 = NULL
 * cdef void *__cuGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecNodeSetParams = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphConditionalHandleCreate = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphExecNodeSetParams = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":379
 * cdef void *__cuGraphNodeSetParams = NULL
 * cdef void *__cuGraphExecNodeSetParams = NULL
 * cdef void *__cuGraphConditionalHandleCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphConditionalHandleCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":380
 * cdef void *__cuGraphExecNodeSetParams = NULL
 * cdef void *__cuGraphConditionalHandleCreate = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":381
 * cdef void *__cuGraphConditionalHandleCreate = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxPotentialBlockSize = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":382
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL
 * cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":383
 * cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSize = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL
 * cdef void *__cuOccupancyMaxPotentialClusterSize = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialBlockSizeWithFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":384
 * cdef void *__cuOccupancyMaxPotentialBlockSize = NULL
 * cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL
 * cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxPotentialClusterSize = NULL
 * cdef void *__cuOccupancyMaxActiveClusters = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyAvailableDynamicSMemPerBlock = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":385
 * cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL
 * cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL
 * cdef void *__cuOccupancyMaxPotentialClusterSize = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuOccupancyMaxActiveClusters = NULL
 * cdef void *__cuTexRefSetArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxPotentialClusterSize = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":386
 * cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL
 * cdef void *__cuOccupancyMaxPotentialClusterSize = NULL
 * cdef void *__cuOccupancyMaxActiveClusters = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetArray = NULL
 * cdef void *__cuTexRefSetMipmappedArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuOccupancyMaxActiveClusters = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":387
 * cdef void *__cuOccupancyMaxPotentialClusterSize = NULL
 * cdef void *__cuOccupancyMaxActiveClusters = NULL
 * cdef void *__cuTexRefSetArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetMipmappedArray = NULL
 * cdef void *__cuTexRefSetAddress_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":388
 * cdef void *__cuOccupancyMaxActiveClusters = NULL
 * cdef void *__cuTexRefSetArray = NULL
 * cdef void *__cuTexRefSetMipmappedArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetAddress_v2 = NULL
 * cdef void *__cuTexRefSetAddress2D_v3 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmappedArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":389
 * cdef void *__cuTexRefSetArray = NULL
 * cdef void *__cuTexRefSetMipmappedArray = NULL
 * cdef void *__cuTexRefSetAddress_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetAddress2D_v3 = NULL
 * cdef void *__cuTexRefSetFormat = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":390
 * cdef void *__cuTexRefSetMipmappedArray = NULL
 * cdef void *__cuTexRefSetAddress_v2 = NULL
 * cdef void *__cuTexRefSetAddress2D_v3 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetFormat = NULL
 * cdef void *__cuTexRefSetAddressMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddress2D_v3 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":391
 * cdef void *__cuTexRefSetAddress_v2 = NULL
 * cdef void *__cuTexRefSetAddress2D_v3 = NULL
 * cdef void *__cuTexRefSetFormat = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetAddressMode = NULL
 * cdef void *__cuTexRefSetFilterMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFormat = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":392
 * cdef void *__cuTexRefSetAddress2D_v3 = NULL
 * cdef void *__cuTexRefSetFormat = NULL
 * cdef void *__cuTexRefSetAddressMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapFilterMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetAddressMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":393
 * cdef void *__cuTexRefSetFormat = NULL
 * cdef void *__cuTexRefSetAddressMode = NULL
 * cdef void *__cuTexRefSetFilterMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetMipmapFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapLevelBias = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFilterMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":394
 * cdef void *__cuTexRefSetAddressMode = NULL
 * cdef void *__cuTexRefSetFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapFilterMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetMipmapLevelBias = NULL
 * cdef void *__cuTexRefSetMipmapLevelClamp = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapFilterMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":395
 * cdef void *__cuTexRefSetFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapLevelBias = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefSetMaxAnisotropy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelBias = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":396
 * cdef void *__cuTexRefSetMipmapFilterMode = NULL
 * cdef void *__cuTexRefSetMipmapLevelBias = NULL
 * cdef void *__cuTexRefSetMipmapLevelClamp = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetMaxAnisotropy = NULL
 * cdef void *__cuTexRefSetBorderColor = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMipmapLevelClamp = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":397
 * cdef void *__cuTexRefSetMipmapLevelBias = NULL
 * cdef void *__cuTexRefSetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefSetMaxAnisotropy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetBorderColor = NULL
 * cdef void *__cuTexRefSetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetMaxAnisotropy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":398
 * cdef void *__cuTexRefSetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefSetMaxAnisotropy = NULL
 * cdef void *__cuTexRefSetBorderColor = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefSetFlags = NULL
 * cdef void *__cuTexRefGetAddress_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetBorderColor = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":399
 * cdef void *__cuTexRefSetMaxAnisotropy = NULL
 * cdef void *__cuTexRefSetBorderColor = NULL
 * cdef void *__cuTexRefSetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetAddress_v2 = NULL
 * cdef void *__cuTexRefGetArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefSetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":400
 * cdef void *__cuTexRefSetBorderColor = NULL
 * cdef void *__cuTexRefSetFlags = NULL
 * cdef void *__cuTexRefGetAddress_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetArray = NULL
 * cdef void *__cuTexRefGetMipmappedArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddress_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":401
 * cdef void *__cuTexRefSetFlags = NULL
 * cdef void *__cuTexRefGetAddress_v2 = NULL
 * cdef void *__cuTexRefGetArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetMipmappedArray = NULL
 * cdef void *__cuTexRefGetAddressMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":402
 * cdef void *__cuTexRefGetAddress_v2 = NULL
 * cdef void *__cuTexRefGetArray = NULL
 * cdef void *__cuTexRefGetMipmappedArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetAddressMode = NULL
 * cdef void *__cuTexRefGetFilterMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmappedArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":403
 * cdef void *__cuTexRefGetArray = NULL
 * cdef void *__cuTexRefGetMipmappedArray = NULL
 * cdef void *__cuTexRefGetAddressMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetFilterMode = NULL
 * cdef void *__cuTexRefGetFormat = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetAddressMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":404
 * cdef void *__cuTexRefGetMipmappedArray = NULL
 * cdef void *__cuTexRefGetAddressMode = NULL
 * cdef void *__cuTexRefGetFilterMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetFormat = NULL
 * cdef void *__cuTexRefGetMipmapFilterMode = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFilterMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":405
 * cdef void *__cuTexRefGetAddressMode = NULL
 * cdef void *__cuTexRefGetFilterMode = NULL
 * cdef void *__cuTexRefGetFormat = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetMipmapFilterMode = NULL
 * cdef void *__cuTexRefGetMipmapLevelBias = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFormat = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":406
 * cdef void *__cuTexRefGetFilterMode = NULL
 * cdef void *__cuTexRefGetFormat = NULL
 * cdef void *__cuTexRefGetMipmapFilterMode = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetMipmapLevelBias = NULL
 * cdef void *__cuTexRefGetMipmapLevelClamp = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapFilterMode = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":407
 * cdef void *__cuTexRefGetFormat = NULL
 * cdef void *__cuTexRefGetMipmapFilterMode = NULL
 * cdef void *__cuTexRefGetMipmapLevelBias = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefGetMaxAnisotropy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelBias = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":408
 * cdef void *__cuTexRefGetMipmapFilterMode = NULL
 * cdef void *__cuTexRefGetMipmapLevelBias = NULL
 * cdef void *__cuTexRefGetMipmapLevelClamp = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetMaxAnisotropy = NULL
 * cdef void *__cuTexRefGetBorderColor = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMipmapLevelClamp = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":409
 * cdef void *__cuTexRefGetMipmapLevelBias = NULL
 * cdef void *__cuTexRefGetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefGetMaxAnisotropy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetBorderColor = NULL
 * cdef void *__cuTexRefGetFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetMaxAnisotropy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":410
 * cdef void *__cuTexRefGetMipmapLevelClamp = NULL
 * cdef void *__cuTexRefGetMaxAnisotropy = NULL
 * cdef void *__cuTexRefGetBorderColor = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefGetFlags = NULL
 * cdef void *__cuTexRefCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetBorderColor = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":411
 * cdef void *__cuTexRefGetMaxAnisotropy = NULL
 * cdef void *__cuTexRefGetBorderColor = NULL
 * cdef void *__cuTexRefGetFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefCreate = NULL
 * cdef void *__cuTexRefDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefGetFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":412
 * cdef void *__cuTexRefGetBorderColor = NULL
 * cdef void *__cuTexRefGetFlags = NULL
 * cdef void *__cuTexRefCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexRefDestroy = NULL
 * cdef void *__cuSurfRefSetArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":413
 * cdef void *__cuTexRefGetFlags = NULL
 * cdef void *__cuTexRefCreate = NULL
 * cdef void *__cuTexRefDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSurfRefSetArray = NULL
 * cdef void *__cuSurfRefGetArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexRefDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":414
 * cdef void *__cuTexRefCreate = NULL
 * cdef void *__cuTexRefDestroy = NULL
 * cdef void *__cuSurfRefSetArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSurfRefGetArray = NULL
 * cdef void *__cuTexObjectCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefSetArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":415
 * cdef void *__cuTexRefDestroy = NULL
 * cdef void *__cuSurfRefSetArray = NULL
 * cdef void *__cuSurfRefGetArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexObjectCreate = NULL
 * cdef void *__cuTexObjectDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfRefGetArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":416
 * cdef void *__cuSurfRefSetArray = NULL
 * cdef void *__cuSurfRefGetArray = NULL
 * cdef void *__cuTexObjectCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexObjectDestroy = NULL
 * cdef void *__cuTexObjectGetResourceDesc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":417
 * cdef void *__cuSurfRefGetArray = NULL
 * cdef void *__cuTexObjectCreate = NULL
 * cdef void *__cuTexObjectDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexObjectGetResourceDesc = NULL
 * cdef void *__cuTexObjectGetTextureDesc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":418
 * cdef void *__cuTexObjectCreate = NULL
 * cdef void *__cuTexObjectDestroy = NULL
 * cdef void *__cuTexObjectGetResourceDesc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexObjectGetTextureDesc = NULL
 * cdef void *__cuTexObjectGetResourceViewDesc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceDesc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":419
 * cdef void *__cuTexObjectDestroy = NULL
 * cdef void *__cuTexObjectGetResourceDesc = NULL
 * cdef void *__cuTexObjectGetTextureDesc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTexObjectGetResourceViewDesc = NULL
 * cdef void *__cuSurfObjectCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetTextureDesc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":420
 * cdef void *__cuTexObjectGetResourceDesc = NULL
 * cdef void *__cuTexObjectGetTextureDesc = NULL
 * cdef void *__cuTexObjectGetResourceViewDesc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSurfObjectCreate = NULL
 * cdef void *__cuSurfObjectDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTexObjectGetResourceViewDesc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":421
 * cdef void *__cuTexObjectGetTextureDesc = NULL
 * cdef void *__cuTexObjectGetResourceViewDesc = NULL
 * cdef void *__cuSurfObjectCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSurfObjectDestroy = NULL
 * cdef void *__cuSurfObjectGetResourceDesc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":422
 * cdef void *__cuTexObjectGetResourceViewDesc = NULL
 * cdef void *__cuSurfObjectCreate = NULL
 * cdef void *__cuSurfObjectDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuSurfObjectGetResourceDesc = NULL
 * cdef void *__cuTensorMapEncodeTiled = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":423
 * cdef void *__cuSurfObjectCreate = NULL
 * cdef void *__cuSurfObjectDestroy = NULL
 * cdef void *__cuSurfObjectGetResourceDesc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTensorMapEncodeTiled = NULL
 * cdef void *__cuTensorMapEncodeIm2col = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuSurfObjectGetResourceDesc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":424
 * cdef void *__cuSurfObjectDestroy = NULL
 * cdef void *__cuSurfObjectGetResourceDesc = NULL
 * cdef void *__cuTensorMapEncodeTiled = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTensorMapEncodeIm2col = NULL
 * cdef void *__cuTensorMapEncodeIm2colWide = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeTiled = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":425
 * cdef void *__cuSurfObjectGetResourceDesc = NULL
 * cdef void *__cuTensorMapEncodeTiled = NULL
 * cdef void *__cuTensorMapEncodeIm2col = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTensorMapEncodeIm2colWide = NULL
 * cdef void *__cuTensorMapReplaceAddress = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2col = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":426
 * cdef void *__cuTensorMapEncodeTiled = NULL
 * cdef void *__cuTensorMapEncodeIm2col = NULL
 * cdef void *__cuTensorMapEncodeIm2colWide = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuTensorMapReplaceAddress = NULL
 * cdef void *__cuDeviceCanAccessPeer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapEncodeIm2colWide = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":427
 * cdef void *__cuTensorMapEncodeIm2col = NULL
 * cdef void *__cuTensorMapEncodeIm2colWide = NULL
 * cdef void *__cuTensorMapReplaceAddress = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceCanAccessPeer = NULL
 * cdef void *__cuCtxEnablePeerAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuTensorMapReplaceAddress = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":428
 * cdef void *__cuTensorMapEncodeIm2colWide = NULL
 * cdef void *__cuTensorMapReplaceAddress = NULL
 * cdef void *__cuDeviceCanAccessPeer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxEnablePeerAccess = NULL
 * cdef void *__cuCtxDisablePeerAccess = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceCanAccessPeer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":429
 * cdef void *__cuTensorMapReplaceAddress = NULL
 * cdef void *__cuDeviceCanAccessPeer = NULL
 * cdef void *__cuCtxEnablePeerAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxDisablePeerAccess = NULL
 * cdef void *__cuDeviceGetP2PAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxEnablePeerAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":430
 * cdef void *__cuDeviceCanAccessPeer = NULL
 * cdef void *__cuCtxEnablePeerAccess = NULL
 * cdef void *__cuCtxDisablePeerAccess = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetP2PAttribute = NULL
 * cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxDisablePeerAccess = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":431
 * cdef void *__cuCtxEnablePeerAccess = NULL
 * cdef void *__cuCtxDisablePeerAccess = NULL
 * cdef void *__cuDeviceGetP2PAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL
 * cdef void *__cuGraphicsUnregisterResource = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":432
 * cdef void *__cuCtxDisablePeerAccess = NULL
 * cdef void *__cuDeviceGetP2PAttribute = NULL
 * cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsUnregisterResource = NULL
 * cdef void *__cuGraphicsSubResourceGetMappedArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetP2PAtomicCapabilities = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":433
 * cdef void *__cuDeviceGetP2PAttribute = NULL
 * cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL
 * cdef void *__cuGraphicsUnregisterResource = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsSubResourceGetMappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnregisterResource = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":434
 * cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL
 * cdef void *__cuGraphicsUnregisterResource = NULL
 * cdef void *__cuGraphicsSubResourceGetMappedArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsSubResourceGetMappedArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":435
 * cdef void *__cuGraphicsUnregisterResource = NULL
 * cdef void *__cuGraphicsSubResourceGetMappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL
 * cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedMipmappedArray = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":436
 * cdef void *__cuGraphicsSubResourceGetMappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL
 * cdef void *__cuGraphicsMapResources = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedPointer_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":437
 * cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL
 * cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL
 * cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsMapResources = NULL
 * cdef void *__cuGraphicsUnmapResources = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceSetMapFlags_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":438
 * cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL
 * cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL
 * cdef void *__cuGraphicsMapResources = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsUnmapResources = NULL
 * cdef void *__cuGetProcAddress_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsMapResources = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":439
 * cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL
 * cdef void *__cuGraphicsMapResources = NULL
 * cdef void *__cuGraphicsUnmapResources = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGetProcAddress_v2 = NULL
 * cdef void *__cuCoredumpGetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsUnmapResources = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":440
 * cdef void *__cuGraphicsMapResources = NULL
 * cdef void *__cuGraphicsUnmapResources = NULL
 * cdef void *__cuGetProcAddress_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCoredumpGetAttribute = NULL
 * cdef void *__cuCoredumpGetAttributeGlobal = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetProcAddress_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":441
 * cdef void *__cuGraphicsUnmapResources = NULL
 * cdef void *__cuGetProcAddress_v2 = NULL
 * cdef void *__cuCoredumpGetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCoredumpGetAttributeGlobal = NULL
 * cdef void *__cuCoredumpSetAttribute = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":442
 * cdef void *__cuGetProcAddress_v2 = NULL
 * cdef void *__cuCoredumpGetAttribute = NULL
 * cdef void *__cuCoredumpGetAttributeGlobal = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCoredumpSetAttribute = NULL
 * cdef void *__cuCoredumpSetAttributeGlobal = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpGetAttributeGlobal = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":443
 * cdef void *__cuCoredumpGetAttribute = NULL
 * cdef void *__cuCoredumpGetAttributeGlobal = NULL
 * cdef void *__cuCoredumpSetAttribute = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCoredumpSetAttributeGlobal = NULL
 * cdef void *__cuGetExportTable = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttribute = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":444
 * cdef void *__cuCoredumpGetAttributeGlobal = NULL
 * cdef void *__cuCoredumpSetAttribute = NULL
 * cdef void *__cuCoredumpSetAttributeGlobal = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGetExportTable = NULL
 * cdef void *__cuGreenCtxCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCoredumpSetAttributeGlobal = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":445
 * cdef void *__cuCoredumpSetAttribute = NULL
 * cdef void *__cuCoredumpSetAttributeGlobal = NULL
 * cdef void *__cuGetExportTable = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxCreate = NULL
 * cdef void *__cuGreenCtxDestroy = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGetExportTable = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":446
 * cdef void *__cuCoredumpSetAttributeGlobal = NULL
 * cdef void *__cuGetExportTable = NULL
 * cdef void *__cuGreenCtxCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxDestroy = NULL
 * cdef void *__cuCtxFromGreenCtx = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":447
 * cdef void *__cuGetExportTable = NULL
 * cdef void *__cuGreenCtxCreate = NULL
 * cdef void *__cuGreenCtxDestroy = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxFromGreenCtx = NULL
 * cdef void *__cuDeviceGetDevResource = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxDestroy = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":448
 * cdef void *__cuGreenCtxCreate = NULL
 * cdef void *__cuGreenCtxDestroy = NULL
 * cdef void *__cuCtxFromGreenCtx = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDeviceGetDevResource = NULL
 * cdef void *__cuCtxGetDevResource = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxFromGreenCtx = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":449
 * cdef void *__cuGreenCtxDestroy = NULL
 * cdef void *__cuCtxFromGreenCtx = NULL
 * cdef void *__cuDeviceGetDevResource = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCtxGetDevResource = NULL
 * cdef void *__cuGreenCtxGetDevResource = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDeviceGetDevResource = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":450
 * cdef void *__cuCtxFromGreenCtx = NULL
 * cdef void *__cuDeviceGetDevResource = NULL
 * cdef void *__cuCtxGetDevResource = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxGetDevResource = NULL
 * cdef void *__cuDevSmResourceSplitByCount = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCtxGetDevResource = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":451
 * cdef void *__cuDeviceGetDevResource = NULL
 * cdef void *__cuCtxGetDevResource = NULL
 * cdef void *__cuGreenCtxGetDevResource = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevSmResourceSplitByCount = NULL
 * cdef void *__cuDevSmResourceSplit = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetDevResource = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":452
 * cdef void *__cuCtxGetDevResource = NULL
 * cdef void *__cuGreenCtxGetDevResource = NULL
 * cdef void *__cuDevSmResourceSplitByCount = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevSmResourceSplit = NULL
 * cdef void *__cuDevResourceGenerateDesc = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplitByCount = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":453
 * cdef void *__cuGreenCtxGetDevResource = NULL
 * cdef void *__cuDevSmResourceSplitByCount = NULL
 * cdef void *__cuDevSmResourceSplit = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuDevResourceGenerateDesc = NULL
 * cdef void *__cuGreenCtxRecordEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevSmResourceSplit = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":454
 * cdef void *__cuDevSmResourceSplitByCount = NULL
 * cdef void *__cuDevSmResourceSplit = NULL
 * cdef void *__cuDevResourceGenerateDesc = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxRecordEvent = NULL
 * cdef void *__cuGreenCtxWaitEvent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuDevResourceGenerateDesc = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":455
 * cdef void *__cuDevSmResourceSplit = NULL
 * cdef void *__cuDevResourceGenerateDesc = NULL
 * cdef void *__cuGreenCtxRecordEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxWaitEvent = NULL
 * cdef void *__cuStreamGetGreenCtx = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxRecordEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":456
 * cdef void *__cuDevResourceGenerateDesc = NULL
 * cdef void *__cuGreenCtxRecordEvent = NULL
 * cdef void *__cuGreenCtxWaitEvent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetGreenCtx = NULL
 * cdef void *__cuGreenCtxStreamCreate = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxWaitEvent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":457
 * cdef void *__cuGreenCtxRecordEvent = NULL
 * cdef void *__cuGreenCtxWaitEvent = NULL
 * cdef void *__cuStreamGetGreenCtx = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxStreamCreate = NULL
 * cdef void *__cuGreenCtxGetId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetGreenCtx = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":458
 * cdef void *__cuGreenCtxWaitEvent = NULL
 * cdef void *__cuStreamGetGreenCtx = NULL
 * cdef void *__cuGreenCtxStreamCreate = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGreenCtxGetId = NULL
 * cdef void *__cuStreamGetDevResource = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxStreamCreate = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":459
 * cdef void *__cuStreamGetGreenCtx = NULL
 * cdef void *__cuGreenCtxStreamCreate = NULL
 * cdef void *__cuGreenCtxGetId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuStreamGetDevResource = NULL
 * cdef void *__cuLogsRegisterCallback = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGreenCtxGetId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":460
 * cdef void *__cuGreenCtxStreamCreate = NULL
 * cdef void *__cuGreenCtxGetId = NULL
 * cdef void *__cuStreamGetDevResource = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLogsRegisterCallback = NULL
 * cdef void *__cuLogsUnregisterCallback = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuStreamGetDevResource = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":461
 * cdef void *__cuGreenCtxGetId = NULL
 * cdef void *__cuStreamGetDevResource = NULL
 * cdef void *__cuLogsRegisterCallback = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLogsUnregisterCallback = NULL
 * cdef void *__cuLogsCurrent = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsRegisterCallback = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":462
 * cdef void *__cuStreamGetDevResource = NULL
 * cdef void *__cuLogsRegisterCallback = NULL
 * cdef void *__cuLogsUnregisterCallback = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLogsCurrent = NULL
 * cdef void *__cuLogsDumpToFile = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsUnregisterCallback = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":463
 * cdef void *__cuLogsRegisterCallback = NULL
 * cdef void *__cuLogsUnregisterCallback = NULL
 * cdef void *__cuLogsCurrent = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLogsDumpToFile = NULL
 * cdef void *__cuLogsDumpToMemory = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsCurrent = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":464
 * cdef void *__cuLogsUnregisterCallback = NULL
 * cdef void *__cuLogsCurrent = NULL
 * cdef void *__cuLogsDumpToFile = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuLogsDumpToMemory = NULL
 * cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToFile = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":465
 * cdef void *__cuLogsCurrent = NULL
 * cdef void *__cuLogsDumpToFile = NULL
 * cdef void *__cuLogsDumpToMemory = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL
 * cdef void *__cuCheckpointProcessGetState = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuLogsDumpToMemory = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":466
 * cdef void *__cuLogsDumpToFile = NULL
 * cdef void *__cuLogsDumpToMemory = NULL
 * cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessGetState = NULL
 * cdef void *__cuCheckpointProcessLock = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetRestoreThreadId = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":467
 * cdef void *__cuLogsDumpToMemory = NULL
 * cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL
 * cdef void *__cuCheckpointProcessGetState = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessLock = NULL
 * cdef void *__cuCheckpointProcessCheckpoint = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessGetState = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":468
 * cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL
 * cdef void *__cuCheckpointProcessGetState = NULL
 * cdef void *__cuCheckpointProcessLock = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessCheckpoint = NULL
 * cdef void *__cuCheckpointProcessRestore = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessLock = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":469
 * cdef void *__cuCheckpointProcessGetState = NULL
 * cdef void *__cuCheckpointProcessLock = NULL
 * cdef void *__cuCheckpointProcessCheckpoint = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessRestore = NULL
 * cdef void *__cuCheckpointProcessUnlock = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessCheckpoint = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":470
 * cdef void *__cuCheckpointProcessLock = NULL
 * cdef void *__cuCheckpointProcessCheckpoint = NULL
 * cdef void *__cuCheckpointProcessRestore = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuCheckpointProcessUnlock = NULL
 * cdef void *__cuProfilerStart = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessRestore = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":471
 * cdef void *__cuCheckpointProcessCheckpoint = NULL
 * cdef void *__cuCheckpointProcessRestore = NULL
 * cdef void *__cuCheckpointProcessUnlock = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuProfilerStart = NULL
 * cdef void *__cuProfilerStop = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuCheckpointProcessUnlock = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":472
 * cdef void *__cuCheckpointProcessRestore = NULL
 * cdef void *__cuCheckpointProcessUnlock = NULL
 * cdef void *__cuProfilerStart = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuProfilerStop = NULL
 * cdef void *__cuGraphicsEGLRegisterImage = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStart = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":473
 * cdef void *__cuCheckpointProcessUnlock = NULL
 * cdef void *__cuProfilerStart = NULL
 * cdef void *__cuProfilerStop = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsEGLRegisterImage = NULL
 * cdef void *__cuEGLStreamConsumerConnect = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuProfilerStop = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":474
 * cdef void *__cuProfilerStart = NULL
 * cdef void *__cuProfilerStop = NULL
 * cdef void *__cuGraphicsEGLRegisterImage = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamConsumerConnect = NULL
 * cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsEGLRegisterImage = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":475
 * cdef void *__cuProfilerStop = NULL
 * cdef void *__cuGraphicsEGLRegisterImage = NULL
 * cdef void *__cuEGLStreamConsumerConnect = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL
 * cdef void *__cuEGLStreamConsumerDisconnect = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnect = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":476
 * cdef void *__cuGraphicsEGLRegisterImage = NULL
 * cdef void *__cuEGLStreamConsumerConnect = NULL
 * cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamConsumerDisconnect = NULL
 * cdef void *__cuEGLStreamConsumerAcquireFrame = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerConnectWithFlags = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":477
 * cdef void *__cuEGLStreamConsumerConnect = NULL
 * cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL
 * cdef void *__cuEGLStreamConsumerDisconnect = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamConsumerAcquireFrame = NULL
 * cdef void *__cuEGLStreamConsumerReleaseFrame = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerDisconnect = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":478
 * cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL
 * cdef void *__cuEGLStreamConsumerDisconnect = NULL
 * cdef void *__cuEGLStreamConsumerAcquireFrame = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamConsumerReleaseFrame = NULL
 * cdef void *__cuEGLStreamProducerConnect = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerAcquireFrame = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":479
 * cdef void *__cuEGLStreamConsumerDisconnect = NULL
 * cdef void *__cuEGLStreamConsumerAcquireFrame = NULL
 * cdef void *__cuEGLStreamConsumerReleaseFrame = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamProducerConnect = NULL
 * cdef void *__cuEGLStreamProducerDisconnect = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamConsumerReleaseFrame = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":480
 * cdef void *__cuEGLStreamConsumerAcquireFrame = NULL
 * cdef void *__cuEGLStreamConsumerReleaseFrame = NULL
 * cdef void *__cuEGLStreamProducerConnect = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamProducerDisconnect = NULL
 * cdef void *__cuEGLStreamProducerPresentFrame = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerConnect = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":481
 * cdef void *__cuEGLStreamConsumerReleaseFrame = NULL
 * cdef void *__cuEGLStreamProducerConnect = NULL
 * cdef void *__cuEGLStreamProducerDisconnect = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamProducerPresentFrame = NULL
 * cdef void *__cuEGLStreamProducerReturnFrame = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerDisconnect = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":482
 * cdef void *__cuEGLStreamProducerConnect = NULL
 * cdef void *__cuEGLStreamProducerDisconnect = NULL
 * cdef void *__cuEGLStreamProducerPresentFrame = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEGLStreamProducerReturnFrame = NULL
 * cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerPresentFrame = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":483
 * cdef void *__cuEGLStreamProducerDisconnect = NULL
 * cdef void *__cuEGLStreamProducerPresentFrame = NULL
 * cdef void *__cuEGLStreamProducerReturnFrame = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL
 * cdef void *__cuEventCreateFromEGLSync = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEGLStreamProducerReturnFrame = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":484
 * cdef void *__cuEGLStreamProducerPresentFrame = NULL
 * cdef void *__cuEGLStreamProducerReturnFrame = NULL
 * cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuEventCreateFromEGLSync = NULL
 * cdef void *__cuGraphicsGLRegisterBuffer = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsResourceGetMappedEglFrame = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":485
 * cdef void *__cuEGLStreamProducerReturnFrame = NULL
 * cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL
 * cdef void *__cuEventCreateFromEGLSync = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsGLRegisterBuffer = NULL
 * cdef void *__cuGraphicsGLRegisterImage = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuEventCreateFromEGLSync = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":486
 * cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL
 * cdef void *__cuEventCreateFromEGLSync = NULL
 * cdef void *__cuGraphicsGLRegisterBuffer = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsGLRegisterImage = NULL
 * cdef void *__cuGLGetDevices_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterBuffer = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":487
 * cdef void *__cuEventCreateFromEGLSync = NULL
 * cdef void *__cuGraphicsGLRegisterBuffer = NULL
 * cdef void *__cuGraphicsGLRegisterImage = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGLGetDevices_v2 = NULL
 * cdef void *__cuVDPAUGetDevice = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsGLRegisterImage = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":488
 * cdef void *__cuGraphicsGLRegisterBuffer = NULL
 * cdef void *__cuGraphicsGLRegisterImage = NULL
 * cdef void *__cuGLGetDevices_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuVDPAUGetDevice = NULL
 * cdef void *__cuVDPAUCtxCreate_v2 = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGLGetDevices_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":489
 * cdef void *__cuGraphicsGLRegisterImage = NULL
 * cdef void *__cuGLGetDevices_v2 = NULL
 * cdef void *__cuVDPAUGetDevice = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuVDPAUCtxCreate_v2 = NULL
 * cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUGetDevice = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":490
 * cdef void *__cuGLGetDevices_v2 = NULL
 * cdef void *__cuVDPAUGetDevice = NULL
 * cdef void *__cuVDPAUCtxCreate_v2 = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL
 * cdef void *__cuGraphicsVDPAURegisterOutputSurface = NULL
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuVDPAUCtxCreate_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":491
 * cdef void *__cuVDPAUGetDevice = NULL
 * cdef void *__cuVDPAUCtxCreate_v2 = NULL
 * cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL             # <<<<<<<<<<<<<<
 * cdef void *__cuGraphicsVDPAURegisterOutputSurface = NULL
 * 
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterVideoSurface = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":492
 * cdef void *__cuVDPAUCtxCreate_v2 = NULL
 * cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL
 * cdef void *__cuGraphicsVDPAURegisterOutputSurface = NULL             # <<<<<<<<<<<<<<
 * 
 * # To make cuPythonInit reentrant
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver___cuGraphicsVDPAURegisterOutputSurface = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":496
 * # 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:
*/
  __pyx_v_4cuda_8bindings_9_bindings_8cydriver__F_cuGetProcAddress_v2 = NULL;

  /* "cuda/bindings/_bindings/cydriver.pyx":7124
 *     return err
 * 
 * cdef dict func_ptrs = None             # <<<<<<<<<<<<<<
 * 
 * cpdef dict _inspect_function_pointers():
*/
  __Pyx_INCREF(Py_None);
  __Pyx_XGOTREF(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs);
  __Pyx_DECREF_SET(__pyx_v_4cuda_8bindings_9_bindings_8cydriver_func_ptrs, ((PyObject*)Py_None));
  __Pyx_GIVEREF(Py_None);

  /* "cuda/bindings/_bindings/cydriver.pyx":7126
 * cdef dict func_ptrs = None
 * 
 * cpdef dict _inspect_function_pointers():             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is not None:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_9_bindings_8cydriver_1_inspect_function_pointers, 0, __pyx_mstate_global->__pyx_n_u_inspect_function_pointers, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings__bindings_cydriver, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_inspect_function_pointers, __pyx_t_2) < (0)) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":8096
 *     return data
 * 
 * cpdef _inspect_function_pointer(str name):             # <<<<<<<<<<<<<<
 *     global func_ptrs
 *     if func_ptrs is None:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_9_bindings_8cydriver_3_inspect_function_pointer, 0, __pyx_mstate_global->__pyx_n_u_inspect_function_pointer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings__bindings_cydriver, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_inspect_function_pointer, __pyx_t_2) < (0)) __PYX_ERR(0, 8096, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/_bindings/cydriver.pyx":1
 * # SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.             # <<<<<<<<<<<<<<
 * # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init cuda.bindings._bindings.cydriver", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init cuda.bindings._bindings.cydriver");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  return 0;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "cuda/bindings/_bindings/cydriver.pyx":504
 *     cdef char libPath[260]
 * 
 *     with gil, __symbol_lock:             # <<<<<<<<<<<<<<
 *         usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)
 * 
*/
  __pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<1; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 16; } index[] = {{1},{17},{39},{46},{37},{35},{44},{49},{36},{47},{50},{58},{48},{44},{47},{46},{43},{49},{43},{49},{32},{35},{36},{32},{43},{42},{38},{39},{40},{36},{40},{35},{38},{41},{34},{31},{34},{44},{48},{39},{40},{37},{48},{40},{36},{34},{34},{44},{37},{40},{35},{44},{47},{46},{48},{41},{42},{46},{41},{42},{37},{46},{43},{51},{49},{54},{36},{39},{36},{51},{53},{44},{40},{42},{55},{39},{32},{41},{47},{49},{47},{45},{50},{54},{49},{39},{40},{56},{39},{52},{47},{56},{50},{52},{47},{50},{52},{51},{45},{34},{38},{42},{33},{43},{34},{39},{52},{60},{47},{39},{36},{34},{39},{35},{31},{39},{40},{41},{45},{40},{38},{35},{37},{37},{40},{45},{45},{46},{40},{46},{44},{59},{57},{39},{44},{43},{42},{41},{41},{38},{51},{51},{50},{33},{51},{34},{41},{39},{35},{51},{51},{49},{49},{55},{55},{39},{55},{53},{69},{67},{40},{37},{49},{54},{51},{51},{45},{41},{65},{65},{63},{63},{39},{33},{36},{40},{45},{45},{48},{49},{52},{50},{50},{50},{50},{34},{49},{48},{47},{47},{47},{47},{43},{50},{50},{52},{42},{42},{42},{39},{42},{41},{45},{49},{44},{34},{47},{47},{46},{43},{62},{58},{56},{53},{56},{45},{49},{56},{57},{37},{38},{45},{36},{42},{43},{40},{43},{46},{27},{40},{40},{38},{41},{42},{41},{40},{39},{36},{41},{41},{43},{46},{57},{38},{33},{37},{37},{35},{29},{46},{39},{44},{39},{40},{39},{48},{38},{42},{36},{37},{37},{35},{36},{34},{34},{37},{39},{43},{45},{37},{40},{35},{36},{44},{38},{38},{39},{34},{46},{32},{54},{43},{49},{35},{34},{33},{35},{44},{50},{59},{43},{50},{36},{36},{35},{49},{38},{41},{40},{51},{39},{29},{36},{37},{43},{53},{39},{42},{55},{43},{39},{42},{36},{42},{44},{43},{44},{33},{48},{35},{36},{31},{39},{43},{34},{39},{44},{40},{35},{34},{34},{36},{36},{41},{36},{42},{36},{41},{36},{41},{36},{41},{36},{41},{36},{38},{33},{29},{37},{35},{39},{37},{39},{37},{38},{36},{37},{35},{36},{34},{43},{44},{45},{58},{56},{47},{45},{40},{41},{43},{39},{38},{39},{37},{42},{33},{35},{41},{40},{43},{39},{42},{38},{46},{38},{60},{64},{73},{49},{53},{62},{55},{35},{37},{32},{32},{32},{42},{43},{42},{36},{35},{52},{40},{43},{42},{48},{44},{43},{47},{35},{39},{39},{41},{46},{35},{38},{43},{38},{37},{40},{34},{40},{40},{34},{41},{40},{57},{38},{43},{43},{44},{44},{39},{40},{48},{38},{38},{44},{48},{43},{46},{38},{39},{47},{51},{46},{35},{36},{43},{42},{37},{43},{42},{37},{38},{45},{48},{47},{48},{46},{44},{43},{42},{37},{43},{42},{37},{38},{45},{48},{47},{48},{46},{54},{39},{40},{39},{40},{37},{50},{179},{8},{36},{12},{5},{42},{4},{20},{18},{18},{20},{27},{18},{16},{25},{30},{17},{28},{31},{39},{29},{25},{28},{27},{30},{24},{30},{24},{13},{16},{17},{13},{24},{23},{19},{20},{21},{17},{21},{16},{19},{22},{15},{12},{15},{25},{29},{20},{21},{18},{29},{21},{17},{15},{15},{25},{18},{21},{16},{25},{28},{27},{29},{22},{23},{27},{22},{23},{18},{27},{24},{32},{30},{35},{17},{20},{17},{32},{34},{25},{21},{23},{36},{20},{13},{22},{28},{30},{28},{26},{31},{35},{30},{20},{21},{37},{20},{33},{37},{28},{31},{33},{28},{31},{33},{32},{26},{15},{19},{23},{14},{24},{15},{20},{33},{41},{28},{20},{17},{15},{20},{16},{12},{20},{21},{22},{26},{21},{19},{16},{18},{18},{21},{26},{26},{27},{21},{27},{25},{40},{38},{20},{25},{24},{23},{22},{22},{19},{32},{32},{31},{14},{32},{15},{22},{20},{16},{32},{32},{30},{30},{36},{36},{20},{36},{34},{50},{48},{21},{18},{30},{35},{32},{32},{26},{22},{46},{46},{44},{44},{20},{14},{17},{21},{26},{26},{29},{30},{33},{31},{31},{31},{31},{15},{30},{29},{28},{28},{28},{28},{24},{31},{31},{33},{23},{23},{23},{20},{23},{22},{26},{30},{25},{15},{28},{28},{27},{24},{37},{43},{39},{34},{37},{26},{30},{38},{37},{18},{19},{26},{17},{23},{24},{21},{24},{27},{8},{21},{21},{19},{22},{23},{22},{21},{20},{17},{22},{22},{24},{38},{27},{19},{14},{18},{18},{16},{10},{27},{20},{25},{20},{21},{20},{29},{19},{23},{17},{18},{18},{16},{17},{15},{15},{18},{20},{24},{26},{18},{21},{16},{17},{25},{19},{19},{20},{15},{27},{13},{35},{24},{30},{16},{15},{14},{16},{25},{31},{40},{24},{31},{17},{17},{16},{30},{19},{22},{21},{32},{20},{10},{17},{18},{24},{34},{20},{23},{36},{24},{20},{23},{17},{23},{25},{24},{25},{14},{29},{16},{17},{12},{20},{24},{15},{20},{25},{21},{16},{15},{15},{17},{17},{22},{17},{23},{17},{22},{17},{22},{17},{22},{17},{22},{17},{19},{14},{10},{18},{16},{20},{18},{20},{18},{19},{17},{18},{16},{17},{15},{24},{25},{26},{39},{37},{28},{26},{21},{22},{24},{20},{19},{20},{18},{23},{14},{16},{22},{21},{24},{20},{23},{19},{27},{19},{41},{45},{54},{30},{34},{43},{36},{16},{18},{13},{13},{13},{23},{24},{23},{17},{16},{33},{21},{24},{23},{29},{25},{24},{28},{16},{20},{20},{22},{27},{16},{19},{24},{19},{18},{21},{15},{21},{21},{15},{22},{21},{38},{19},{24},{24},{25},{25},{20},{21},{29},{19},{19},{29},{25},{24},{27},{19},{20},{28},{32},{27},{16},{17},{24},{23},{18},{24},{23},{18},{19},{26},{29},{28},{29},{27},{25},{24},{23},{18},{24},{23},{18},{19},{26},{29},{28},{29},{27},{35},{20},{21},{20},{21},{18},{31},{32},{7},{8},{9},{8},{8},{6},{25},{26},{13},{5},{8},{7},{10},{4},{8},{2},{3},{12},{12},{12},{10},{3},{8},{9},{6},{35213},{31},{7223}};
    #if (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (9329 bytes) */
const char* const cstring = "BZh91AY&SY\263 \357p\000\027\270\177\377v\370\356\277\377\377\377\376\277\377\377\360\277\377\377\360@@@@@@@@@@@@@\000`:\\-Dw\236\373u\363\351\267\276V\361J\357\265\266\267\253u\366\364p\307\005\357\237\036\340\007\266\371\034\372\036r\317}\313\262\245\n\366<w\240\256\251\275\334SmG\337kJ\360\000\000\367\274&\227c\001b\244\000\000\000\033\321\323\334\016\273[\253s\332\215H\300-MY\242m\211\365\335\320\356\264)\031\266\306\320hu\334\266\203s\353\315\274un\267^\347q\223\336=\321\351\225\326l\275g\275\205}\360\006\032\236D\001\"z5$\311\246\365##M6\240f\243@h\r\000\000\000=\02044\000\000i\211\242\220\322\024\324\3651M\250\364\r\r\023@0F\230\023!\200L&\2152\032f\243\000FL\004\232H\225<Q\245=\251\036\215 \365\006\217(\323M= \032\032\000\000\000\r\006M\000\032\r\000\022z\251$$\331\"\217\305\032\236OH\332\246\206'\244\3204\001\240\000\000\000\000\000\000\000\021\"BL\232jT\375\352z\t6\232*{\032\232\236\"=M3#Tf\240\000\006\232\032d\320b=6\224\3654\364'\345A\022D\004\001\023S\321\223#\"O\020\232~\252z'\251\246\215\r\000\365\000\000\000h\000\0324\017nS&M\213Q\254\233\025b\306*1h*2\026\321\250\261\264T\225E\032\306\324\246\250\266\244\243Q\215\024\233Th#cAF\252H\320\037\n\340\354\230}\241\370\273\0051\353\236\314\241\326\372\307\024\353\036*8{u\360\317\020\363j3\304K\2049\3534\217c\377-\216\263\027c\221\314\343}\211\361u\021\343\272\031 \2029\"\003\\\231\206\031\377\014>\272^\237tP\261\202H\000MK]1D2\203\224\t\026i\221\330\200m\260\"(\250\3024\3647v\221bK\201\336\0260\370\226n.\251\214\233\217V\371\222\220\265\3549\337\223\323J]\017_\301\021\353\314\262\274\376#\t\310\301\014\006\220\217\243\004\362\3446\"'b\276\020j,\310\323D\363D\014\210\241\016AOG\203\230\224I&e\023\252bB\243\031\007\260KV\267s\213\336h;\321\332\307<\327`\320\211\220\244\263\262\025\224j\370\242\302\237\230\203\266\226g\201\013MTS\215\314\240\322Z\332\221\312(Fr\033N\014\370\273\274[\313T\355g?\332\036\254\222BOT\377\036\262\244G\375Z\242\304H\037\255\201%\021%Te\312J\237Y\372\273\336\305\001\366\300\001F\023""\304\240+\010\252\213\355\025E\366\n\354D\330\272\314\217\221v\256\322\010\312e\335\335u\325\037\374\270\305\322\271\306\353T%\222\210\333v\232io\231\336\354Q\324\003T\323\001\0161D\366*\242\362\366\300Dz\243\317*b\025\003\267\376\265\353\323\027P\361F\240c\303a\266,0UU\177KW\333k\203\\\225\227\245\350\314\360_\006u\\\257\032\241\252\\1<0\361\260\3142\247*\246\2260\220\221\017\000]\212\374\203\300A-\021\r\017X\327f\002\365\317\257\210\002G\240g\235\013\246\273\231\326\303\024<\2731THtCK\314\242-\215\341pFf1\330\341 \301\331\2373\026\336\256\261h\212\346\025\315\n\201\003\255,A\240\320t\346\251\000\324\004\301*\026E\247]O\024j\204\264\337\223$X\250t\206\t\241P\3218Y\004\204\225\022\242\374r5\021\362Ug\312\365`V+\307\247\242\304\317$<o6\345@\225\246\272\344\237\326\010\013\226\275?\266m\004\311C\354\357\240\013\016\213\256Cr \374bA\316\020\203\235M\236\3313\244H\251\014W\031\203\212P\226\032\255{\006\232l&f<\201\331~\271\235E-b\031fe\251F\033\n\336)\277\365\272:\267\243m\265\267\207\024%\231\03166*f\264\033\026\002\013F\243\r%## H\014\317\377>\245T\\\362\307\010\030\212\201\325\201\257\rmX\231e\253mz\376-[|w\266\264\026\006\366\363\227\321\032\004\014\274\010j8\301\313&\350\222w\023\333\356\242\240\346\354\335z\211\342x\214\245 \311\224Jgx\327\361\037g$\342wh\364\273l\026\271\236\336p9%p\330sJ \366\"\013\353\326\373;u\351@\207pt\242\210$Q \030;\260:\360@\260\220U\247\r\022\001J\2522q\212i\213\246nYw\320\334\326\323`#\031\"\311\020\"n\352\307\0278j\352l\261\211\211N\373\223d\021\312l\263\010_`p\204\310'\037S\263\251k\024>.z\247ma\t/-\327d\0363\214\003\013(\320\242xH\222I$\235y\243\241\357\231\351\357\222\361\360\023\235\330Z\221\336\225\304I\025\035.\026s\253<\352q\264\345J1\0349\263\007mr\3371\022\301\001>\244y\336\364W)#\213\320s\213o\301\363z\365\346\333z\335y\365t\371\324\252/h\002\033\352\200\010\210#\021?g~\334\247U\312\205o\312\370\375\253\264\323Tx,\245KwL\325\3526&\265\245l(j\013Ua\301\346\274d I$\022\207\231<H\347Lw\t\036\272\002\213\3233\025UUvR\267}\035""\030W\235\246\373})\30374\307\246\362\364\3115\343Cb\364TdHM\2661\260\004\203t\250wM\305\336\320\357\005\233\272TQ=\227R\351\013#67t\347<rli:\270\224\306\215\264\350\227,*+\312R\247*\0254\250\253\326A\364\311y\000B'j\302\024\202\036p_\034\250/\262\333\020\3001\206\332\205\354^\271\000sR\321\006\021\024\214\002@\025\212\306\266*\305\005\255\213j6J6\322\n\310\214 \204\"\220\210\024!\360A\365\010z\223\276\355\265w\357\037+\316\364v7.\230\365\2561I\223\252\344\243\312\254\243d\221`x\005B\001\212\347\237.\254\212D.\001C\315\201\002\026\342\345il\356\322\246!Jps\272\351n\3358m4\251\351l\331\003\037\262\351u\246\200k\030P\241\320\331\002\207k\t\260\201\252o\010\\k(]A\3122\026XRJ|F\227\204\204f\252wn \313k\226\341J\230YY\316\3206Z7X\276\277\\\354\024\333*6\300o\256\026J5*\244n\232:S\006\001x;\006\262=\326\232Q\235\266\226\322\346m\326\025X\364\311\332\3115\256\254\312\267\243\2111\343$s.tr\225*\025\244\2262p6\322\213*Q\036\254\304\313J\007Ex5f\2342\344b\312\002!\024\203\031\230&\010\362\305\207b\356\311A\004\221F\220\026\035\370t\217\266\340\014\002\025\205W}\216`]pv#\2511\003\002\013\223\255\002\t\273\266\300\272\245DJAD\002\242j\206\220\206.\305\366\004.\n\030\320\240\205\204\030\273#\010\001\220\023\365\031\"W\243\215\332\013)+\222\276\375\324\001\237\252i\352\265\263\267\346b-\355)C\244\037\2237\344\272z;\t\330DePTa\331U!\030\025\030yO\020Q<G\374\036\277\3717\210v\277|\203\311\370\227AD\320\0071\321\340\227\r\007\316\014;$!\010q\216\301\0101\310\314g\343\237\341?\020\007\250\027!5\211\304?\346\r\247\233\214x\240\350\002\340\350\373\217@\241\320\241\203\240y\312M\223\272\376o\375M\207\322\245\365\252\374\347\376\177\333s\272\253\242\220\357'\256\207\327\325C\232h\247*\000r!\327\356H\302\007|\3626X]>T=\366\330\371\230\344\305i\210\237l{\377\0012s`\336\246\233q\213$$,\322\024R$\214f\226\t\001\240\250\331\206.\203`\323)]\262F\314-\3706\373\335\315\314A\224\203\020\001\240I\3402\267K(e\320\347\364\307\000V\336\224\232\366\263X^Jh\324^\344\316\346\"\027\275\336\302\367SF\342""\367&w\345iP\222\374PD\026)2b\013\024\232\357\240O]\336U\366\0078\366\312*\352i\243$ka+\002\326\302m;\224Z5\242\037/\312\360\236\026,\217\206\326\n\212\255\245\032\305\266\237\034\337\007\224O\033\274\212.u\212\365M\032\235H\255\261>\247\240w+\320F\206\273#cY\222Otl~\350=\365\361'\275\357\333\354\266\273\255\374\377\205\022\233Y\206\022\336\277\235\325\324\0358l\302Rd\332\021M\0210\321\030\320\241m3&\222\226\215J\2313\026B$Q\251\315\247)R\022M&JRe\022Xb\002\311\025\230\2336\244\326Qj\004DF#\022F\206\315\010\241L\032\223I\245\n\205B4SF\211\242\305\224\223\r\014\320\321\253\342\374\333j\375\026\266\333]\256\306D\252\233hTP\215*\221\214Y\030\310\222\004$\350<\016\000\316G8N\255z\252\244\271\1773\201\215\021\321\314\016\267\021\3211\341\020\254\035\016\246\272\006\364\222L7\275\315\343\343o\241\272\336\024\362\023\2278\010\016\332\271\266\274\267j\255\222O W\251:vm\266\333Ow\334\336q\361H`L\313\031\270\310\322\004t\267n\306\35624\372\267\234\266\233m\201\324B\0015]\250\327\351\245\271\232\260\032\300[\277-p9\271\226je\271\233\002\354k\353\321>\227\240=\177\177\351Q\355\257\016\200\006\324\200\000\001\343\252\257\222\356\3559s\234 \366\002u\210\323\352<\237\024\374\000\334sO*\371bZj\325SUM=\306\343\265i9\2619\217f\013\205\344\252*\250\214\177\366\036b5\020K\010q\371t\355y;\243!\271Js\234\3431>P\205 \346\224\245#AH\254\222I*h\r\030\020a\367\267\321UG\002\342\001\345f\205f\030P\032v\246n\203\353\037\274\350\342\257@\363}\007\275\361\365`\344\2550\035J\220\357\017s\357SB+@CK\035\347\300\177\000\\\3733\3437\210d\272\005X\3309\220\017\3211\363\225P\227\304G\"\327'z\365\276v1\353h{\020\336\362\274\316\0278\262H\262\034\240\370\353\275*\252\2550k\014\244\222\255aarIFK!\325\363I%\271(``\251\322d\333\262\240\347\236{\226\347$.\241\341xop\034\315\300s\352\374?\007\316\377o\247\337\275\037@9\275^P\003\325\274\256\246l\202i\001\033\204\220;\r\030b\356\255\362\210]\331e\335\367\315`\310\344\361>f\357704@&\020\335B\250\265\"I\223\353\004\343\213\317@\204\222\010\036\230C\2719%\031""\002f\357\000\204\341$\236\306\231DW\225!^h=\003\236\236\251p\260d\2008`2$I9J\266\265)\022Yj\252Oi\344\252\353\0355\255k\327k|i\231\226u;\234\335\343\003k\014\210\313v<W\225\361]\342\361\214c\030\014\366\220$\330\307&\016C\0354\342\254K\272\271wV\031\241\243nh[\030\310\252\241\312v%\341WD\320MU]q\225\266\336\304\300\231\214\222\224n\342\3575n\352\207C\243\261\314mRH\030!\203\006\354w1\270H@\345\222I!\356\363\325V\261\025,c\223\001\346\"\261\200\311$\222\003yej\206\334IH\225\\c\300\310{\336\266\301\340\226\267\254p\034\214\335\333\203\332Z\3758\005\255&\025\033ay@\337\007\r\231C\027%\324n\232#o\033C\270\247\204\222J\261\313\017d\035\333G\230Q\360=\211\317\333\355\036\323\340\234}\007\032+\242\213K\020\265QiD-Txv\363\036\001\335\016\301\317\314I\003V\2153\240\2477\026\216\241\301\262\271<\257q\371W\345U\370\325\370\207\343\346\rF\255\265\307[j\250)\343V\332\007\t$\233\333\215\355\205;\235\356\237\237\355 u\035%\300K(\237\025\303\335$\222@\333\264\202\222a\264\324\030\330V.\255+sn\371'|\220$\010\325y\334\252\036\250\363[\225\333Z+gC{\343\265)NB0\234i\"\254\023\272\001\2772I\267\264 @l\300\343\020\332\307\030\020\302\020b\026\362\234\210\220\336\312\032B4\204\020\2052\224p\347\244\252\252\346\334\007\020\r\255\301\262\001\005V\3537\207\036\310u\266\251u\274\300\347[v\276{\032\273\346\025`\206\014\234\344\222Vb\022I\010aZ(\333\263\237\216\256\027r\354\220\260\273\262B\360\031\202\020\326\320\016\007\251\340\221\347\336Py\300N\002><r\230\331\305\002FL\370V\336\307ov\035\371\233\321\014\242\311\204f\306pP\241*\215\032 S\300IB\267%\215\325-\013\221\310\204\221\335e\000h\322\322A$\222F\332\022]\335^\310\014\202\030\320f\3406\305\230\320f\330\243\r\344\204f\306d\004\233!0\032u{\017x\214\001>\335\335\274\210\036\321\273\334\220/\350^G\227\345\331l[-\266\333m\252\252\253'3\000\362a\016\370\007\0009\227<\323\227Vi\306E]\247x>K\246\022I\353\304\372\332\025\330\035\262\212\036\344\367\251lA1\016\375u\036\205b\275\360\016\367\325\323V\000\274T\220\002\374\262\251X\rQ$\265WSa\301""\352b\350\2042\357$\230\216A\006\t\005N\260`\\\222u\270+\213\262Iv\251\274D\2609\217\215\244\223\026JeO[\243\314\364\030g&\372\257\306\372\301\356\3674\026\005VD\367t\255\255<\374*\261bbZ%\314:\315c'\212w*\372|T\355]\351\207\267\324sC\003G\324;\004\365\2336\243fI\016\236\022pZ\240\3449F\000O\004\221XI\021\t$\220\026B\274\357\306\340\301\3367s\222z^\346\326\315\263\340\354\035\033\217\3365A\265\210T)t*\022\021\375\215\203\3046\030a\2245\016\005\302g\267K\311\233\253kh\307\334'\017\212JD\241\016\245(<\345\017\261\272\321\357\236`\344\361\360A8I'R\275\0346a\316c\205\357s\0140\r\357f\367\251\304z\366\333m\263\211&\245UX\313,e\216\324\345nm[\256\340\256\325\274\033\352g\323 \036\252\337i\274\251\256<\372\311W\357\026\342c\033\206\016\321\266\2152\362\331A\014\214\236%i\342\007j\266x\311\002@\022\234X\r(\342\350\372\033!\201\006p\222\022N.G\331a}9J\252\252\247\346\357O\302=e~mz;O\021\312\306G\266\335\325RIMX\r\333\236\216j4\021\001 \021\352\037C\310\336\333\034\206\343m\034\314\273\236j9\243*\376'\001G\007\255\0007\247\345U\237\302C\304\017iCp\004C\301\314v\353$\234\313M\344e\026l5\211w\304>6\302\"<r'J\025VA\003&\r\307;{/\203\333^o\010Hv\267\307\320v\275\367v\356\327}\361\336\352'\235\325\256H\306\014\031,y\303'WFz\356\256\256]\325\305\314w\246\260\016\264)\217}\004\240J)\207\320\007\220\017\316\001\366\003\310\362\350\r\300\275\340]\340\276Sc\323\024\235}}\240o\262|\323\263\014\345\303\027!>|W1c0\302PyD\362\004\270%)\356h\241\270W\253\257\017i%\255k\022\245\022\245\022<\361\342\035\230\354B\360C,\267\233.OO\233q`\331\014\334\300\260e\366\261/\211\321\201\310r\n\320>\274\013\361\361\345\207\332}\323\317s.cH\236j'\273\352\321Po\363\3727\240\236'\210\312R\014\231D\246v\223t\030kw\342\373\264z]\266\013\\\364\317_\030\344\225\303a\356\004A\035\214\035g[\355wg\313\002\215\304\312T\250H2\004\300\335gY\235\005\312\242\234\2461\204\002\225Td\343\024\323\027L\334\262\357\241\207p\026\300Fb-\"\004M\335X\330\343\025:\233,,\031N\374\324\331\004r\233,\302\017\200dBd\023\217\251\331""\324\265\212\037\031\177\306\266\326\020\222\362\335vA\343\211BjDU\025\302d\222I$\353\315\256\235\363?\250yx\364\360\023\235\363\027$\362\346\020E\206\234,\347Vy\320\343i\236Tb<\234\331\204[\\\267\314D\260@Mb\026\223\253\\\244\216/A\316-\277\007\315\353\327\233m\353u\347\325\317]\226\006\374?\216A\002Uu\335\347\371]y\023\315]{\337\231\376>U\351\363\376?\260\000\000\000I \000\000\000\000\000\000\000\000H\020\000\000\000\000\200\000\000\004\200\001 \022\000\000\000\000\000\000\000\000\000\000\004\200\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\031$&\004\200\000\000\000\000\000\000\000\000\000\000\000H\000\000\000\000\001\000\022\000\000\000\000L\000\000\000\000\t\0002 \000\000HH\000\000$\000\004\200\000\000\000\000\000\000H\000\000\000\000\000\000\000\000\000\000\271\351\327\242\353\313\337\367{\373\\\341N\\ \326\342\"\356&\244\356@$P\340\0244*H\253A\001eP4\303p-\314KjL\346\331[\312\255\267\276\0307\003\t0+\223\021\263\216\241\036q\264\334\363\254w8O9\363 \343\2526uI\327\276+\277\277f\333A\026\355\210\2411Y\203\231T\264]\240A$BEha-\273\030m\230al\320;\n\332X\261b\305\266\214\366\223\245s\331\226\3156\327BP\210\2412[A\314\250\332.\320 \222!\"\2640\226\231\260\322a\205\266 v\225\241b\305\213\026\320ot\311\323\247.\235\334\372z4\351\222\2149n\222Jz\021\346\301\200\2615C\332op\007\253BIx>\003\203\0169\241\360\351\221\210\376B\006\365\r\214\030\304\356\371\212\002\373\234\253\264v\242\235/\336\332\016Q\370\004N1\353C5\340\340\320 \\c\300\003\351\323\346\000\331\275\347\001\004\203\024b\261\023\312\2220\220!$\316\250!%\017\001\262\242xk|\243\320\251\327\340D\r\0372\2320\324G\372;#`r\353\031\025\226[+(\nx\352\360\335\265\255m\325Z\365\256\345\022\000\310Etq\021\305\007\203\344\2129\r\224}8\201\330\243\304v\273y@\221w+\020\n\353\035\252\343\231\261GG\323\241\332\223t(!\326\323G\250\007\356\010\034\r\242\304\202\300\365\274[0en\032pD\013\214\201\"cj\302 \230\241\332G\250\0339\000\363\207`\212\232\236U\036MH#\361\372\022\036\211PJ""\204}\024\324\270S.T#\tD\246\217E{\256\304u\307\2006o>\004;o^\377\265=\360_\221\021\314WDSc\341\240T\362k\023\216)A\t\221\032B\3424\022\352\000X\3040\001N\033ccOy\214 8p\333c\032B\233h)\2156X\322FX\330\340\2666\256\003*C\021\032\010\205A\220I\004\324)\226\034\021l\220\210\204<\200p\325\271\004/\346\220\361\234\212j$\242\216\016F\242\"\264j\345\316.n[\233Ml\254\253fe\231L\301rr-\305Z\275\352\335[\233\331[\277&\246lX8dF\035\2000\010\305i\240\010QO\316\375\034d\022M\025\335\265|\332\357\255\370\231\255\346\335\262E%-\024$\344#C\365\316X\t\3448\007\203q\325\005u\001\327\000\032\351\353\357QN\2471\350DrP\t\000\233D\005i\204Hm\247mO7\233\364\221\021\021\021\021\021\021\006\014DDDDDDDDDDDDDDDDD\030\210\"\"\"\"\"\"\"\"#\021\021\021\021\021\021\020b\"\" \304D\030\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\210\2101\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\021\020\0301\005\021\006\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\" \304DDDDDDDDDA\021\021\006\"\"\"\"\"\"\"\"\n\"\"\"\"\"\"\"\"\"\014DD\0061\021\021\021\021\020b\014DDDDA\210\210\210\2101\021\021\021\021\021\021\021\021\021\021\021\021\021\006\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"=~\367w\335V\335m\257v\332\3676\327\314\371\200\273\276\357\010\364v(\275\225!*\350\243V/\000\214\001\202@\000\006E:f8\302 \245m\222%\273b\245:\252\001\322\257=:\216\030\346\204B\330\340 \302\332\030\3067\201TXt\241\207\016\032a\034!\032\01049\003M\333\0306\350\351*\363\262\241*\261w!\226/<\252I=\305^\225\247\264\202\352\210\004\"\036t\014`\213 \200\022\010\244\210\331\327\267\216\325q\014\016hr\210\201\362\t\251/0\002\264\244\020\237ly\001O\271\252\"\353u\002\006\324x\266\272m\333\016\004\362\372*\344\351\246'\n\366\315R8 Al$\350X\320R$1\242\235\030\006\351\244I\201\000\235R\243?-\366\273X]\360\220\242<\242l\240\016\367\232\270\364\236\306\264qt dX\240;\240l0j\231V\330\242\215`""\274\020 \000\235\374\024\"\016\375\273\311\017cD\003g\263\\\333\276\300W\\\010\205\235FqP\236\234\000\254\333\010\370r\330\322\211$x%\333W4k\251`\263d\032\243\227]\255PZPKOvn\003g`e\202\256\230\024\320\252\n\243BD\235EF\211\246h*!\355\303\317iDe\323\002\001\254\226OP\220\206\002\213\026\252\034\033\347\253\274\034\032\334\344\032\215\334\306\232v\203wWsS\202I\335\010\242\021D(+(\322\352I0T\0255$\222\002\232`\301\214B9\241E24\323H\004Q\215\014h`\\c`/\003G\001\311\276c\223\226H\346\342\231L\306\234\362\034\3043\030\336\004)\010\240\301\314\324\306\330\333Q\316\032\243YX)W(\022H\245\337\301\360E\216\234\354\220\351\242\001\263\321\257\007g\270\020\264\202!J\302T\204I\255\000N]\2028\311\230L\242I\031%\333W4k\251`\263d\032\243\227y\326\270\263\314\252\241@m\035\3409\305\233\275\255f\006\263z\210\320\027\245j\360\255eZ\210\324\027\255j\340\021\001\001\010Y\315Z\000\010\353\367\337\000\210n\021\240\370@t\017b@\200&i\006\226\034\212\002\326\327S~\322\261\005Bn\275\027&h\247S\242\024\204x8\340bL\334\004\t\001\017\241\023kLb\031\265\265\350\267\205\326\257\271\263v\202\200\324\314o\207kK\217\010\222,\006\010\263\n\347n\357\200\340\304\002\t\000J\262\251\255f\315m\231\266+\033P\226\353\001\"\tQ\001\3240\002\205\210h\345@\017c\265\274\020\241\326\016T\257\356\250R\374(A#\035\273\010\204\211$\210H\203\332`\0320\020\271\"\022A\367\262Ch\371\3530\336\257\007\320\002\020o\277\350*\210J)\243d\035\030\026\030u4\206\203\253\"@\204$\2269\260C!\332\241N\034d\333l\036a\215\301fz\024\321\025\3639\017\303\240\013\271`\001J/\346\277t\214X\003\002 \024\036\321\336\344\016\367\326\270w\034\212\345bSP\300\242\2410L\022\341\237(\351\207\026\014\200\321P\231\2232\\;\270\267\022K\227\013\227.\034\0249 \350\360\025M\006\2301bF!\0260H\214\221H:\255p\000\341\020F\244\370<\236u\354\222M\000\240-\000\002!\203\020\004\000\020\004\026`\024\3062\250\035V\256m[\210,L\031C-\001\210()@5\240*\321\005fm@b\0006\000\000\000\333r\263mr\240$#P\014#P\0141\021\315\313m\310\212\226\242\013k\225\337\273\253|\275]s:h""\2711\3146\251\002\021\201\004\347W\244\002\222\326$\000!\026\002\014\211#\000B3\203\271;\005\007\007\362l\200\374\266\006\006\373\203\342\373\024\334A\221\024\336\211\021J\240)\016c\020\352\037\215\r\250|B:\017\213\264\315\017[\357\362$\201s!n\331U\027k\313\001B\346\032\254\210I\010mi\330\300\272\260\337JI\352\331\267\024\226[\233\334\360\367\255k\344@\006B\242j\202&@\342\021\\\323A\010\013B\023\323\351|\3304\271\316\n\332\225eR\246\370\263s-\201\265m(\033B\003\022+ \306!\000\"\010\0260\032*\252I\032\217m\2100\007\r\334\202\036\226\020B\022\260Di\n\240\022\341\251\3267\304\030\221\300(N\241\203\335;\221\221b\214 r\002\217\211L(\364\017\205A^\264G\253>\211\332\025\250) \022\2525#\352\017\010GS\304!\270\0344<\034\010\360W\264\n\207a\345y\020\371\020\341p\320|hF\340\303\177\004L\036\220\320\206f\350\236\321\203\351\370\235\244\035\254\032@3\315\314\324:\3716{\222\344\250\200lx!\222\271\246\323\253?_\267T\322S\022\233\256\271\266\333\275k\265-E\256vi\270\211P\002\nd\003\224\021\346\340m\025U\220\221\004$$@\272\035\241\360\024\364\204\010\221B\343q\315\355NT;7\335_Ht\017\036\260C{\316\373\302\252\212zA\371\010+\362\334\276\030\017\301\342>1=h\230\2170\312\366\215U\005F\rP\364\000A\002\373\301\002\004\211\010\023h\n\021\376'\245\021\327\316\007\314\t\352\021\364\213\352zU\342\030D\"1 \031\243\000\016\007|\347-\n\212-\031J\330\242'rP\262,I\203\0061\241\214\032y\206\202\311$\006\326\206(S\010i\226Ycsr\2557\000\335U\315\272\233\253\2162\024\373\237\007\330\017\214\006\020C\334>w\336\370\201\270\336o\000\325\017c7JJ\367P\252\254e\241p\240V#\017\201(X\027i\246\010P1\0304\224\025AW(j\250\222qW\320\340X\204\204^\017~\032\203\311\206\330\230\016 \334\003\345\025g\232\362BC\241\016\207\354\003\310U\277\276I\020\221u\0370\362\352\032x\024\315\275\n\242<\005\202\262- m7\023!\307\031\200\025T\202\347\037}m\246\n\221b\021B!\004ddH2\336m\315\315\314\332\327+2\2632\315\315\302\215\"%\003\001Jb\003B\020N\241\203Lb\2661\305\260\320\205R\230/\326\336r\020\201p\022\201\014\025\352C,(\246""\202\006\035\300\255\216\304M`d\341\014\200\314)\031\232\241\223\034\2035\010[\255X\034\354lT2\210@\007F\365BA\025[\305\005]H2\002\362BL6\206\215\271*\032\332\005\246\001\206H0\203&\2443\036\333a\230\005\003\000M\036\215\257\320\350\335\241\r\320d\021\212\310\301\212\302E\010\221V\"\300v\0036!V \200lT\316E\303b\250\264\204\345k%`\001\306\031\242\004!\t\n\016*\233\225P\367\333x(d\241X\210\360\026\2243D\202\006\346:\215\332C\000`%\300)S\014\325Qu\337\221\2108\273AP\324\000\320\262\n\3401Z\260\\[\215\301\315lh\321J\345\316U\301\270\246\255\033h\255\026\3065QV\233h\313Q\022F@d\n*\200\251\"\333h\324\007\014\260\033CA\203\000\233\206t\237,=\214+\331\235\324l0\030\206\001\201\305\275W\321$*\220\251kzl\325\271i\265\\\205\240\325\311\t\004\204\003\310\375\224b\301\017\260EZ\002\250\242\250\020\250\"\035C\000B0Z\002+Y\203f\022\021b\001\"N\0269\216\212\371\021_pG\300\254\0103\244u\202H\200\303\272P\311C\034\3219\001\0337\010\363\252\252\276\243m\265\312\361\263n\315I\267unr\002$\220\013\264\202\264!\000t\001\016m\207\311\304t\301\2332\323`\342\217\240`h0\313\253\022\232\243\275\240\002\343\002\305\3070\037\001\256\t#\022\031\203z\025\340\206\207\305\010B\346\343\000\202\275*\206\256\357\272\006\004U\356UE\342\374\357Ko<\351B\207W\240|8\252\242\363\006\310\211\3460`\003;\211\264\240\201\tE4\307\300DK\032(\023\345\006\245!k\0307F,\230l\207\202\247\264{\274_A\006\020}k\303)\"i\005\251\270\363\2127\330>\n\302\2040\305\025W\330\312\301\336\356\035]\242\217\332\021\247\260\335\270\367\031\203$\222D+`\243\311\270e\240\375\307\331\307&\007\"\030\017\000\020\270\216o\200v\024\343\353\222\021P\204\201\020\030w!'\305\277\023S\231<^\377\305*5\364-r\262\252G.cB\253?RQ\367a\205O\253%\365l\250q\030r\240$IUB\026B\367{[]\226\200\265v\265\326kk\223R\226\345Um\010S\025H\330SLD1M\014#TSTSW\201O \204TN\301\347S\316\221\202\261\005\221X\262\263jZ\321V\243YZ\213Zmfh\220\026\013\024~\204S4Oj\010\366\242&\3031\202\230\200\\Y# \363\261Jc\030\030\007\314\274j\210\365\200\006#uqGp\206\303k\0101S\325\356""\214\202H\247\301\017H>\375G\212\272\212\340\364/\213\020\220S\304PG\230\001\303\334\034\301S\244\002q\037\220uV\331I%\003\336?J\232n#\022\020\206\337\231\202\273\033\241\233@\200f\211\2760`\207R%=`\313\010m\036C\231@\017\0246\310B\004\022 j&\326\215M\347\333}[x\327Vj\357\340\264\r\222U\253m\215j\333A\030\000\221$B\026\313Z\267\216\367\274\313FW\310\247\200\306(\025\220J\370\220\336%\303\315\253\341\2246\273]\003\035xzo\246\244P\320\200 \340\244@\010\022\265\221:kI\216\357g]\227\007oeY\210d\252\242\313<\326\332a\007\225\247\r\r\016\323\\$&m\270`\236Q\213\243\033\021\216\210\312j\232m\210X4\013\262\260YA\t\306(\200\020!\024j\210\342\354\206b\346\371,\030y'\217\345\360\232j\364\020\316\303\205\253\\Q\230\341mqFc\206\345\220\022) \344\025\255<\\\306\206\362I\305\305\3549B1Jt;v\2006}\361\360\310\014\234C\210*\033P\357\262\037l\222\020\204\222\022(\222\010'\311\264\304\000\201\274v\"%\2164\207\030\n\020\203V\202\263\030hb\261H\020\030F01\034\016\021v\261c\033\256\321P\322\200\030@\021\034\025\260\371\304MLAg\014T\r&s\224$\203.\211&\312\334C>\322!\t\327\276\266\355\265\202\254)l\032\330E\242\030\334(n1f\305\016\001\r\204\006\020\202!\232,c\001\220\310H\003c0p\251Z\240\263X\2468L\260l\310\220\021Qa\214U\300\270\2272\313$\304d7*\242\353\263\\$$\327z\005\226\020\2743\230L\315(\320\222\t\220@\246\005\240T \2201\020\262]\024%F1\014IT\340\203P4\255!p\215H\256\366\334\344\261\3177.jVdc`\"\n\035,,\3540m\005Cl\274\371f3L\272\266\255\227(\ns\303\034\034eTT\342\226f\260\206ADS0t`\204b\025\001\246\002\270\264\r!\233\0041\006^\215U4\025M\200:\210!C\206\220\010\300r\203\0300\214\203\010\206\006\232\025\310\203\207\003m\241\020\310\032B\2408\030\302\010qG2\000\334\004.\022\n(\242\311!\206\255-\241m\266\333H\265m\266\333m\266\322\336\210\256\345\234\246\213 \023\2217(\033 r,\255$\020\327\233n\020\304i\200\206\340\267F\301\203\022\311\223\034SO\020\306\301\315\330\0131d\204\204\232e\200\265\2041\006\030z\207\006`\250\025\240\222\t@\005.A \032\025u\332\240\257\346\252\342\357\265\334\"Y""\265xns\307D\222G9\303\"\"\227w9\240\222K\256\\\311\023K&\214\254\263]\254\265\315\004\222]r\346\020\220\202\227\227\335\300\022\350c\246\223eQ\025\203\007\020`\323\006H4U\004\204\350i\334\002\333\\[\026@\204\2207l\025\270\016\245\347q\212$\346\036|\3606\2635iG#\230B\014!\300m\251\265\347\310\344\240+#\0102u\201IA \2310\032\203\024d\022!4\ns\030%\207{\344\371\247\252\245UQ\025Z[m\265TERh\361\343:\023\265'PP\020\3567\201\317\005\000\310bD$\222\022\021Ql\n\225O\001\240\007\221\276\007\r\243\316(\356\"\204\221\010\202m:\230\306\"a\301\037\010&\250\210\006\360rb\006\375\333sEAOn\347q\314\016\025w\000\177\n\317\204|o\305\314C\270\335\026)\261\016\2405\001v\000\210\364\257\322\003\340\304+\013\253\007\004{\007\254\020\362&h\264 +L`\214d`\307z\252m\362\253\347\265f\0144klb\213j\345o^S\203H\211\322\213\306\330\214h{j\303\200\360\016\353\314\247\270=j\014b\t\365l>\310dn\024\324\355Q\000\356\000>\226\r\272\375o\273\331\341=\r!\271\203l\325\370)\002)\001\212\001a\013\233V\333\342\257\202\370[Fe\221Je\005\010\222\303\266\355\322H\220\200kV\002\206\001#HD)Q\")O\212\260B\221c@8\214\"\251.\205\246\267f\255\310\231i\221U-\317\227\343yn\236\035\\.\326\023\260\013d\026\205\232\262\001 \021\351H\311\266\010(\022\324/\254\347i;\"\335b\2235\271\266Yi\n\326\364\217Cc\205`\364a[s\0344\204b\020c\020\215\203\006\263\020\323\031UTB\245dh\343\003b\323\026$qUx\301\032.]9\221\272\021\322.\206d\016\t'~{>\332\t\"$c \310\240\300g\037\230S2\336\235\333\005zQ\024\364\261\374\007\362\372\225= \007\240\037A\361\361y\277\t\367\325Q\177\313\361\037\217\375\016\301\365\377\267_\373\374\377\227\363?\362\377\322\374\340d\t\372\025;\342\274\177B\217\340A\372\037X\241\364\252\376\247\352\001\366/\351\021\366\201\371\000\017\302\t\351D\332\251\365\000~\221_\240C\221G\353P\244\037\245^AC\326\001\310\253\367\325\336\003\367\301\336#\377K\274\000\372\223z'\364'\000\017\357\036\002\037\334;\224?XnW\347w\000~\303p\277\240\334\017\"\361\033S\377\215\251\354\300\373L\2040\007\353\210\\w\270\026\025\036\305j'\222""\341\020\204 !\017\340\217\373\326\037G\216\316\341\016K\260\257\337)\231<\216\334\335\302\303\030\210Ln\241a\271lHR\026\322\320\303\325\r\013\200\234\264\261&\241;\273\220\333\200\226\026\352\335\313w \233#W\267\212\305\267\260\314\314x\335na\315\211\010\362\340%\035\314\333\207.Z\306U\314;n:f\322nh\267[\270\223\032\034\327\267M\244\244Q\260M\355\275\3102\343\204\265\014\334\201\035X\205\246\263\010#S\232\266\367s4\033+E\223\036\335\224\243\263iX2\335jzFk\231\203&!j\323\032\322\201\265\242\340\301\033\031\210\330\232\330{\254\314B\346\260n\326\215\312\262\020\231\240\223\020\327\213U\306!\260\367cXv\3633-\214\273\005\026\365\343\233\231i%\230\366\240\n\352\250i\246\207\377\213\271\"\234(HY\220w\270\000";
    PyObject *data = __Pyx_DecompressString(cstring, 9329, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (11760 bytes) */
const char* const cstring = "x\332\335}Ks$G\222^\322ld\032\315\036$\232V&[\256\264\213\031=fIqzD4\305\245(\311\326\nU\205\007\211G\021\t4\227\274\224eW%\200$\2532\213\231YX\240O{\344\221G\036\373\330\307>\366\221\3079\356\221\307\375)\212\367\303#\302#\022\335\2341[\232\021]\341\376\3053=\336\356\036\177\267_T\253r\271\3237;\313U\263)\353\235\375m\275\350\253\246\336\371\315b;j\333\342\376\361d\334\226E_\316ow\177\263S7\375\316U\263\255\227\036\330A\331O\312n\321V\233\276i#\350\244$Ij}\333\334c\220!y\022\354I\271n\332\373\363\362\333m\325\226\353\262\356\273H\204\331\252\250\313\010&\337\024mW\316Z\322|m_\225\241$\3077\345\342\233MS\325=\201.\312\256\323\204\324\030$\263s\322&M[^\334\220\006\\\036-\007\304\314{\322\342\251\370\343f\361M*V\024)\025~Y\257\220\304IB\313\355zC\312;\352\373\266z\272\r\227\331\003=X5O\213U$B\236\236v\236\234v\177G\200\305\342&\314\227\"\377a\030\"\004>,\307\014\203g3\251\272\342\351\252\234\225e;Z\320\366\016C\247u*r\277m\326\007mY\326\344w\030E\277\304\246zR\266\035\241\241\2601\251B9n\352\253\352\032\307m\333\266\014\367\017\206\231\224\267D\002\233m\273(c\270*\t\2026?AM\357\312\305\350\352\252\252\253\376\036\005\356\257\212\353\016E\204;0c\037W\353\n\257|~S\020I%\303ZBc\346=\221\300\365\254\255\232\226\224\374\274\250\257\221\326\2305\033\321\370hs\314\266\335M\n\356\274\\4\355rz\213~L\362\031\311\210K\305\247\353\253\372\372x\227\211I\030\237'\nR\236 Hy\364s\345\321\357\221\017\370\036\371}\275\270i\233\272zV&\201\320\326\375\242\250z\254m\305\2702\275\353\313\266.V|\026L\303\346\345\272\330\334\204\207w\243\367\035\224u\331\222!\216N\310at\276\226\370|\263\252\372\275\3731\001\365\311\3700\220\364\334qQ\363\221\214\216i8\262Yo\310\230>.6\305\323j\025\356\310\034\2350\033)\340\336\375l|\264\267\355\202][!#\025\347\240IyUlWt\3412k\232U\034\035\033\013\025\324\034\305\362\355f\323\264\321\262\034\264D\024HI\222\333\342\260\351H\3035\353j\241\032:\274>R\261\216\267U\264\355\022\333\343\264XG\013yz\233/*\332\323T\265\242%\234\355\316\206W\213EJl\270T\021\212.:\025""\362\242\274\353\267m\371\301\344\270\252\313\242=)\356\276\250\226\375M,\332%\371\026\341\241G\301p\276\020\233\213\266Z\243@25\255\213\366^\316VE\244\2354\374\274\\\225EW\306\njF 3\315\020x_Tu\"X\316$\261\344\317\313k2\317\221\265WGd\357\264\351\253\253jQ\364\341\225\023\217\225\017\355\206yZg\271hz61\304J}Y\267C\313\335V\267eK\276(\2760\234\036\034\363\005\n\2319\273\355\232\256I\331.m\277\r\367a'\016\371\267.\027\375@\370\027U\177\203M\376N<\262\306^\014\313IHhReH\247^n\027\311\225\221\360\364B\311\030\263\226t\203\272\037T(\322\025\266m\215F\241\013\021\276\331\241\333\006\232\002\021\2248\030CD7F\0145]\025\233\256\\^T\3532\202\374|[\006\027@\014\300\327\253Q\301\320P\014\021_\353\331+3:\277\025\233M\271\334\333^]\005\0272\2018'\325f\315~\260\343\211@\334\375\025Y\267\037\314.'\244\203-\372\363\311\311\350\013\262'\010\316\"\364w\302\032H\300N\210\244\254\"\030db\026\210YAd\354\250\276j\020\330Qw\334\024\313r\211@(\000a\347i\265\"\260=zjA\226\367\233\010.\276#\021\300\264\255\202\005\316\303\022tp\254\366\257\310\314C\327}m\333\264H\363K\010\351\366d\017\206\200\356\350\222\361\202\236 \204A\364\310g\264\\\222q\006+\024\235\317\010j\257\350\027t^;\333\2346\3132\002\036\337T\253%\013$\200'\345\246\254\227e\275\250\312\204rL\327\233\376>!U\243\367\247\242\351F-\005\0137_]^]\223\360\203\242&\346I\327\352\t\260\317H\352%+H\274!\351\032eE\272MB\262\004\272\337\226e\032r\261\271O\003\222E^\0020\2412\266h\312\321\251K\217\222\247D\261eZn\270\320\030\253\246F\253G\306\226eE)\305\352\260\250\227\253\022\235ky\224(bR>\335^O\032\322\273\303g\327\002\310\246\355\3307\300\317\371\031\004\3645:\376 \347\035\276(yj\024\331_\016\206FH\312\201\354\272\037 \0314\232-\035\311\321R\032\227\300\036\322Z2\332\320\006\300\206\267\344z\205\007\272\344$\"G\264&.\270\025W 9~&\347\256GR\025%2\n\321Xz\370K\316H\017\204\311Q\006\201/7K\364.O\000\303\337\374 -\247\327\026\232\220\300\034\274^\364\244\334\351h\262\274\216.?\242\242v\300\277d,\257\363\246\211\343\244\310&\325\177\220|\037""\325]_\324}E\344\"\266\207\362\341\343\031\350\3163n6\367\321\223;\020'a/\343\306H\352\242V\247\036\230G\3520p\\\020\n\272,0\027^I\037\327X~\245\342\305(4\020\236'\302\305\200u0\014\236\224:\005\356W\365\362\250\216\256\236D\021\310\"\212\236\377\221\355PtA&b\014\330p\200\030\274\327\246\305\341\367\267\313\004\344q\263(VG)\310\213\246Yui\310\373M\264\361\362\344B&}:q\212v\331\225\355\331\323\257\303']\002\274nn\313\001_\202\237\362\246%~\271Y\205\017\026\030\242Zt\323\203cy\310{\264.\256\313\010\\\243\321s\037\027\236\222\370I\261\2217C]\004\252\357\363\206\034)\005c\317\250\356G\331F\032\337\027sz\275\302\016\032a\274\234\305\213\234\275\313H\371\366\251\223_J\365.\353uzK\352\303\362\310\255\234\214\360d2\033]\312\317\372\244Z\226M\276m\257\212a\361\316\266\375f\333\307\"re\216\310f\217\203b[\010\216J\272~4\300\310 \3031q\235\001\211\024g\355)u\211]\225\037\255\351\261V\322M\271\r\215]\224\037\325\301\313\353\243\315\202LE]Ir\343\233\3640NnJ\023p\t\251\235\221\2611)9\nT\351\205;\027_\313$\254\256\024P\022c\270\343\352i[\004\277\204\202!\347\232\n\023;X\346\300<\265\022IG\276|\3116n\350mm\321W\267%\217;\014}\262]\365\025\252\305\304#\036\264\325\222]\316EQ(\200.\370)\025\005\361\222M\357\022@($\304\344\237}Z\323;4\322\271yJ\035\216\246\007g\230\256\236\206\361\3440=\014\210\215\302N\212\232L\306\3138\016\273$\321\260\313\272\272\252\312e\244\233\010<\275\353\230\024}\021G\321\213\271\375*\226?\325\324,\302U\251\277\241G\353$\277\360\200 @4+\034D\365qVe_b\220\210\3120\305\3403\325qs\335\341\212`\0241\331\2567\027\r\326:\n\204N\017\024&\247\344q\261Z=-\202Z\257\024\252\327\n\0210\335\334\361+\025\272e\213\202\250\252C{\213\342n+LwBn&\261!Eb\250\\QU\203\024,\035_\342\271\342\375I\242fU\277\270\211'\206\"\330\261\354\204\2549\326\033\332n\221*\240\213\r\302\247\267\361E\273\034\325\313Y[^\225$i\226~$U\021+\005*\356\337\032v3H\267X\350\034.6\370\2214)\204~\026\034\201\266\"\235\3741eb\001\021\262IuP\243\311\321/\307\024L\310j\267\336\256\2126\254\256\007ch\375(*\231""\261\026JU\267\343P\236\332~\323\232\225Ac\320EG\254\266\321\234\231N\035\255 \016Q\267\301\321\355\227\216\200\035\323\t\224\034\320\242\311\351\341,\214\343\013h\372e\222\205\230l\324\330.-\"\310\004\026f\322\366\215u_\212\301'\023\001\342\335P4r\nt@\217\245\221\022\372\223\204E\226\253\002\371\200F\327\321\222\352\231\247\0259O.2U\034\274h\020\214\030a\231P\240\2229d,f\3759\255]\035(Ruq\206\205\001\3501\224\036\303b_'\241\271\363\204q\205\035l\204\331\213\315\375\356$\336\300\014vI\266\303\325u].\343\320\030\342qZ\236\217'\372\213\306\261\314\342\005\377\370\n\027\201\3042\213g3\352\233Q4\225\276\231$`\016\223\352O\2011LzkN\022\212O0\223\324\304&\t\230\303\324\304\242\365<$\245OJ\3540\241\232\207\251\325<L\250f\232\214F%4\314\354\310\002\341\203\217\"Yp\020ZV\n\331MKi7-\255\307\273Ii=\336MH\353\343\244\244>\216\246\224T\246\204\022\245\224\007+\215u\022\217/b,hd-ca\351q[y\033<\353p\300\311F\265N\314D\313Y~V\242\016\201$\013\207\033\207\213\330\001\217\003\216\341\370\321\022\362\211$\220\236\263T\365\365IX\371IA\351Y\375yy\025\203]\224w1\224<\002\n\236\310\331\260(h\277\350\367\252:|\362\252\221(\000=Ib\347\232\213\242\353\231\246&r\274\251\200\244HK\272\353J\305!_\313\204\022AN\204%$\210wN\211\342J~\261]\255D_\326OI\376\001\324\331b\261\335\024\365\342~t[T+\272\256\237\334\327\305\272Z\344t\355W\266{\210\331\265\212{R\334\215\026\364\310\231\241;\022\215e\276\341\246\333M\373\272\361c\332 nB\343\325\226\356\"S\"\314\232\276\244J$+\256\253\035V\226\306#\r)\243\212-\212\211d\312\356\035\250*w\034\202vt\t\212\361\253\010\3776\304\347{\274\204\235\217\007\331\341\320\204=\037\231\r\256\252\025\201\366E\320\"Qc\232\320\226\205+\207\271J[\330\374\313\257\021\251r9~\002+p\314\336\237\036-F\223\324\032\237\341\201C \313\353\252\036\027\033j\253w\321`\352&.>\226v\222\246\224y\225\312T\261\204\271x\002\034\205D-x8lZ/EmPX\202p*\240H\217\037\276=\216\242\203\016\016LH\254\032Iw\341&\264\212\243\260!I\201\"N\032\024.x\371\256\020I\037\376\250\343\255\033\266\024\3418\314""\336\212#\362\324/\0327\246\3428\256\225*>~\232\026\020\217\030\323\020\320\250'\305j[b\213~\000\375\350\303(\224Za\245&\253\260h\272di\311\325\231\360N\252`\370NA\343\270/\032&\337\210\301\277X\331\322\376\212(\327\010T\216\243.\312\232\254 N\212\315\264^\220E\365\321zw\021<\320\362b\277\250\202Kq\200\277\250\302*k\nz^nV\305\242\024\307\377A\364]B\363+\024\336\372\n\226\326\370>\370\223\252\374\207\304(\302d\034G\223\317\026\253\031\201D\253%d\2047%\262e\202\320\260\340k$*R\002\264\327\264Kjq\273\n.q\025t\277Z\221EEJ\031\261\021[\203\232v]\3641\024]\016\327U\327\220V\334D+\303\367\331\351\345\344x\266\347\337\253\212n\000|\274*\326\2334|D\277\216\243s\365a\351\321\360\343Dl\264\216y\262\274\344)\362\222\247\313K\236,/y\212\274\344I\362\222\017\221\227|\240\274\344\303\344%\037(/y\252\2740\007h\323\273\305\r\275{\021\313P>\331#U\320\312\275\350\240\245a\370m\215\211C<D0\355L\303\003\330.\206\213\255\007\331\362$\272\2559%\373\322\235\376\246\350w\306\367\375\r\211Yu;\313rU=e'h\253\373\0352\036W\013\222\n\005\325;\263\351\354w\037~\374\341NQ/w\332\222V\250\333\351\266O\027\253\242\353\312n\247\271\332y\272%\342Q\325;\375\375\246\354\036\355\034]\355\3347\333\235\272\344\276\0037\004gF\350o\312z\247+{\372c\347\267EM\312\305\356\262\346$:Y+\376vg\311\014\317\311\366\236\306\336/V]\371\250X.\347\004W.\266\313\342\367\364\234\203\000\273\337\317\325\257\305\375\222y\222x\264\271\277#\025\241\260G]\363\350\203m\177\365\273\217\307\227\223\321|\366\345\305\341\331\351\234\377\236\236\317/\016\317\247\243\311|2\335\037]\036_\314\363\013\022<\241\236\355\346\363\331\375\035\371\177B\232`~J\2469\"x\005m\301\252y\264h\332fKjJf\275\025\371;\257H\241[2\315\323\375\340|\356\372D4h\320\031\241b\271`\271\035\232\007\374\030\232\014\367|\325\3442\017\205&\001\036\252R\036\342{\320\313v\035\r\206`\314M\213\227\311\033:\354/\320\313\343\316\001\031+\350\336/\3045\3519\032+\207\261\244\367>\021P\256\372DXo^\025\301@;\036\367\004\035\272\327\023d\323\227\236 Y\216\3634\315\320+5\210""\302\333\332\334\343\377\316\"V\236\260\252\000p\000\245\251\\}~\256\035\324\351\337\314\373\231\016\002\377\005\006\303\3653'\230\226S9I\263<\310\t\242\241\372\255(>\337p\202\231\373\332*\207m\225\333\265\313\355\032\345\241\032\231N\330\346\036\267l\202\250\266\2154\354u\270\346a\250\001\234\363\274\256\324\004\313\3577\315\317\024T\350\021\315 C\367g\232\005{\224\307\261\231E6\213\341sY\006X\226\254b\316\310,\276\343\362\310\342\372\335\214Y\020\352S\314\"\370JG\265\307m\202\353\032\314\342{\375\200\271\010_\231\275mi\017\3321\337]\026F8\352\262hF\300p\301\245\251\256\277-\037O;\327\362s\271'-?\217.\212|\034\303G\226f\007\035biH\216\212B\356\371\254\206_+MD\234X1\020\360XEi\250{*/\000:\227\302@^\236v\350\344e\233.\245,\000\360\037\345\345\005\322\366y\206\362\002\0147P\214\357\365\371\0048*hO\247\036\327M\212\314\316\rU\0108e\002t\025\004\0036\352[\t\001\330\333\020\n\014yMb<\340\"\311\240\361+P\203 \307\031\350\351H\322\244[#\031\246!\371;\367\344ay'2\210`N\364\373\035r8\271h7\340Q\210\221\014\367Af\230\373\n\222\024\355\030HPl/@\214\350u\371crlo\027&\007\234\345\232,\345\271\307\"\332\236-\034\2264\343\267\030\210\263\001\034\347KM\232\316\2334\313\217\216\3110m\267\001]\232h\003\2620\255\006Ta\022mRan\001\2576\001~\356\360\375\376j4\233\232W\353\220\337\023\215\346\333A\313\307\214AU\016e M\205\003\256bB\374\334\313\207N`\374\\7n\330\275\213\205\t\370r\2610N\275\302^Z\\\014Z\302$W\032\221\030\216\363\013\013on$l7*\026\305\361)aq\375\236\021,\210\307\261\000\344C\327\000\026?\314QNM\014j\202\007\223$t\236\200v|\223$`\335t\r\257#&\315\370\014\322\237\210IP\316C\024\321\361\024\342p\334\274}>@BL\0205\344\335\303\003\200s.\342\267\303\303\316\361\330^\271\343\006\213*\350\365\265ar\035\307\032&\023z\321\360\360r\037\017\372\307\360\360\334x\300\363\205Ew\335\\@vh\336\r9\260\200\000\341\010\002\222\205k\nH\026~(\034\362\375\306.w\356O\330\255\274\343;\302\340x\034E\030\\\333+\204bp\027\020*\350\361\367`\362\240s\007?\317\211f\272m0\351A_\t(\310]\322&xm\360\301lW""\013&\"\350W\301\004\331N\024l\016\364\230`r\303n\016\202(\323\211\002\007\231\216\017L\2125\337\372\\\032\000\216\024N\307Y\201I6\365cL\272uZ\344\3639\340\322\255\263\"\352M\200\375\013]\007\010\242\355'@\023!\016x\0000\250\246\271?%\273\266\375\026U^QXDaGl\321\344\336\301\265\307\327\324\334\233\213\273\243\211\033\312#(\315R\006\3636I\207\244)\274\246H\273wH\321a\366\313o\276n\260\264B\361<`\230\356c\3304a\"\013\210j\323\0314&7\230R\037\030\220\244\231\270A\346\232\274\234`\032\200\033\024a\355-)\322\264[\205\315\313\020\303h\233\005\265\205\266\014jsl\233\242\273\211\317\320Z\322]\253j\312\261M\250m\212\260\227VDa\034-\303\312\022\332$Xf\317&C\3308\233$\343kA\353e\223\246\203>\273d\301\322\343J\304\342\330\2068\364\200e\242\340*\303a#\314*67M\202EH\331+\032a\333\330\327`\370,{}l\237\031\257\306\271\347\315\210\201\256f\013k\\M\260\023Pv\266F\330cTks\325\"\3275\2275\250Z(\0051h\223)\370\226\325\253\246\211_\332\236\325 \030\235\312g\251\352\320C\037\337\262A\0054s\210\216Y\227:\030\267 \271'\233\334\237\r\267\010\225\004`\376\t\310\216\264;\326\232!\272,\210<\001\237#\366\231\202\t\353\220C\261bK\037\361\333\262\2514i\246\001\245I\267\202\217=Q\201\035\244\311P\006e\220h\206\2558\000-\014\025-\302\004\022\016\335\254\205\275\241&\004\2128\201\351\233f\2036\025\022\016\2750;W\323\324\317\246B\302\304\013\2633\365\264\246\335\226\342\227aegQtb\226\375\034\240A\224\260B\0034\210\372\330\005}lc\334t`*N\032*\005\217\005\232K7G\037\257m\231\227\343Wt\210Z\2151P\300DL\363\240=\230\227c\021\225\245\227E5\314\272,\272\320a\265h\\\245I\223\264u\226K\263)\312\356\312&\353\220^\207\271\346S\026U\331@\315\375\206Q\016\235^\226\315\275&O\026\331\370\364~c&\213\305-\227()\311L\311\002\306l\212\006\201\255\243\250\260\265\021\344\272VBqD0+\237\321\020\305\230\026BfX\213\221\262\3751\003\225\031\270e\001\3270'@\356\014:\234k-K\034\233\320\260)\014\265\261a\000hPc\020-\353\031M\267Le\014\262k\027\343gZ\261\334\323\303\220y\013\344\351\260}Y\t\255T4\r6v\300\376\304fq\r `Yb\221\300""\371\003\260\031\261HJ\326\034k\020\213\310\317-\034;\017M4\214:4Q\335\304\272\346\032\006\325\276y\215\033bh\224u \3423\261\360\320\231\335\203A\267\215'|\014\035\003\230E\3304c\372\n\032<H\246\241dn\220r\203\024\264E\0102=\014f\221`\321m\363\003\316\272\203u\202\206\005\026\315S#\314d\000\362\r\373\000\301R\306\000:l\347\353\250\371\373\350\342\023\331\n\374\026\305\320\276\266\350Z\205\331&\313\216\001\224\356-\222\2451ms\200z\264\207\251t\241C<\246\370\354a\232\247\243^\025x\037\303.D\356o\270\334i\270<\320p\271\277\341r\247\341r\267\341\362`\303\345X\303\345H\303\345X\303\345\336\206\303u\301)\004*~\3334c\203\007U\272)\315\321\337VDk F4\263\231\262\262\324d~\244t\232\037I\235\346%?\302(iWg\303n\311\367\306\344\307\035=\350\235\317\257\330\361\343uI0\267\363\252\3566\364*\342J.[7b3\035bt\363\252\233+\315f2\032\322\213\2215\253\336\272\270\353\330x\275\026'\2065;\240\345\177\233nC\247\372\315\375\335|Ql*Z\220o\267\305\2123\347s\252\372\305\177\223_\242\016\335=I\232\314\266\244\324=\373.\244>\267t\354\355\306\227\2449\010b\347o\230\206\366\350\374|\364\345c\252\236\235\217\317\217f\027g\347;\357\275\2773\276,\350g}7\363\241\007aO\246'g\347_\316\317\247\237_\036\235OO\246\247\027\271\021\211\376X\262O74\372\332\222\277h:\371lt\236O\347\263\363\263\331\364\374\342h\232\307K\036\210bg\354\304=\036]\236\216\017\347$\356\350\204\305\330\326\035;D\330!\"`\207\234\270\244\262\343\331\227\273\223\235\005\3313\365;\357\275\233\305\020\264@\035\353i\201\304\036\033\211E\000\ti\315g\323\351y4A\013\205\244z>\315\317.\317\307S&O\002\251\346\371\024t/\247\3010\370\311\321\364\213\244\030\027\323\277\277\270<OH\275\020\243<\351\250\245\002\266\345\325\373\356'e\322\3051\376\236\346mIO\254!qD\277\n\013\232\201\275\006\027\212\351\322j$\002{bR$\372\241I\243\005\371\274M=l\017\351\375\0356t\366F\355%\201\377\033\211\303\007\216M\337&\341o\233j\251\205\373\201\021B\275\202E%\253J\272Mq\007\017$\316\374\212-\th\034\002\r\267!)\007!\273c\213\242\323\210\0139\311\362\313{_A|\203\255""\225F\024p-vEAHX\216\002 \235\355\373;|\266\354\347\037\3229\177\376\261\234\352\347\037\313\271~\376d\271\231\014\001\333\032\224\260\003\212\"\221V\245\377y8\242p\262\247\251F\222\004\252R\361n(bI\267d\357\006\322UM0\373r~|vz\300\376\004\312g7X\022\010B\224\355\0165\000\351\204x+\301f\202e\027\024\324\332.\000l\026c\326@\342a%D\243=,\263\361%\031\200\237\314\363\023=\257\034\234\237]\316\324,\037,\001\335\225E3pbW\024\343\247\262\356)e\315\017\370c\213\276\316\231\254\374[\377\374\2441\201\372\276\353\n\r+\037\031\336\350\312]\236\\iq\003\014~\375\343\3176\000\016A\207\365R\035\357Z(~\315\013y$#K\373n\250nkv\324N\357\245\374\211\302\276\342\351\263>\250\017A\2467s`\026A\331i\315yi-\356\213\344\201]\010\347\233\213@^\245\245L#V4d\2415=?\035\035\313\265\375\336\345\376\376\364\234/\274\020\341Q\211V\233\205\322\212\031Po\335\326\"D\177\316\372\226_\274\322\263\377H\276\276\3514\320\230\006#\021\017Wb\211\321V\\\035\004v\275\264\310|\253\031\357\266\270\254\034\213\013X?\304;9\231\3223$?'Q\374\233?\2404\221\264\242\000W\320\022S\036\004\365.]\275uKH,\2611\345\270\233\000\017}\324\304\365\271\205\267WO\036\372\233J!\372\001\002;\205\001\340\270\330'\024\"\226\257%\207\\\t\202-B\320\035K(\276\354\333i\033\221P*\363\202\251o\2014\243q\2554\230)n\265\200\372\036\303\304\336#\364t\354K\026\307\244\330\003Z\307n\324\207\026\302\023\371!e\350n\3104\370\360Rx\243'\224\303\333\226\303\320Cr1\032k\020xH\036VS\014\204'\344\023?\200\210\200\221<6m\263\t\357\337\3316T-\302\014\205\345\000,\276\271\020&\252\237\035\236c3\213J0\002\201\233\010F\014\325\0260\321\304\r\273xv$\"W\267\232\354n\014\354\265\257:\317\203\253\337\303\321\351\344x\212\254~\355t\374<u\317\341f\223OOF\263\303\263\363izN:5c\203\354O3?:\240\004\261\017V\360\224\331\342\001\271}1:\272x3y\331\354+v7\346\234\350\202I\366*`w|Q\264\327%\313:\204\310\027\r\224\016v\221\264\240z\364\360+h\216K\227\353\354\361\3457L\003\035C\304W\367&\036\266\"\217\355\307\303v\021d\326\002\221\302K\014\273\0253\366\311N\2273#t\314 z""\301\354\rB(Ql\337\036\r\200\256VM\321\243\010\2440\222\037\0224\0372\226\\x\334\001\300\370\022\\G\260\347a\373|\316\037\303N5\001\364\363\204\364x\314\253\233T\336?RQ\"e\022:\211\314\205\007\357\203\272\307\370\360\240\003\350n\035\232\177\331!\201q^\020\340\206\345#\024K\245x\252\206@_\220\032\261\362\203\222\2208\371S3\216\206#`c\n\010\023U1\234E\220?\371\255R&\210\266\r\006O\210l\216\265\tp\354,\376\332k\255o\264\202\265\207\035TNjX\r\022\"\363\355\3019\231e\347G\247\371\305\350\364\342ht1\r\234n\373\223H\330\206\251\210\001\262U\240k\333\002\374\234\301\371\255X,:\225\031Q\247\275\321\305\370\220\256\264\346g\263\371\351\331d\nV\017\003\222\"\313\021\272\022\221+\2367\223\030[\320\274^R\207g\371\353&\361\031YgM_\267J>m\002\357EE,\225|\352\255\317\003\322\363\335\232\205\321\241\2611\014\246\001yC\232\0261\332\341#q\220\030\336\203%\003\261\330nI\002\037}8\3072\216\226\017L\010\017\033\247S\0330-3\337\006xp\364\207\217\027\017\310\345AC\311k\3443`\224y@.\003\006\240\007\244>hlz@\372\303\206\255\207e\360\240\021\355aY\315G\307\307gc+\2677\321P\201\333\254\007\245\025\034\225\207&\024\032\260=k\330\030<@\216\215\n\357=0\036.\301\361Q\342\3411\007\345\354\214\033\017\215\227\224\2533\216\014\305'\345\342\031O\206\307H\312I\215,\251\270\324T\341p2<FjN\003F\023\240Y\200\240\304anh\004\210\016\021\252/\343i\244\357_\023\322x7\001\023Y\310XXzZ\214\"\277Q\316\217\250\036\306\321\304\2451C\2327\222FL\032\222\364\313\206,r\r5\207\344[\002\346\222'rM\360\260\304\017\216\267l\323\234\202,\353\355\372\347+\301\233N\367\311rcy\347\371Yr0=\373\014\311\000\347\342)q\305QG9\213\336s\233:\240\361$\374\324\341J`fL\377\340%\371I\235\311\276\\\023\227M<Y\000S\212P\250\326\021\357\365\250\306\220\037\016\317CEd\037\334>\375\017\235`Jl\352\361\364J8\r\242G\377\346\272Y\037\003\343G\263\242\300\341;\023\003`\037\336\215/\277\256\372y\263\221\027$*\237@\233\234\341\310`\256\366\005\355\037#WH\\W\201\313\352UU\177\303\016\263\003dQ\334\243\232\0141\264O`\347\237\301\252%\247m\353\031""\277\331\274T\343\005\244\260\271>\352\251G\203\246U\202b\351\227!m\356\211\232p@\014\242\241\300\316\247\034k\322\375\272\261.\302\346+\365\241\371\025\265?\014(Qj\355?7\266\3458H\305\017h\3628\321\265\257%m\205\200\351\276\204M\215\302\231\212BI\367\010\374\324\237\225\326;0\342\t\331\232Wv\345\335O\036>'\307s\221\032\305Cc8\345\342\000w.\033\360\211\202JY\376\301?%\006j\227\363\232\315\347\317\005\303\007\025O\337T\366\276a7\245@?G\343\374\234Mb*\t\0039\344\243{X\027\336\257\251\215\254vtB\266&\023\n\212\2271\236\000+&\351\355]p\3640bD{ej\323\206\032\315\036\247S5A\275Z\362Q\213\0063\2267U\313D0\301\"\022\233\362|\211%\031\032\234\034\315NF\263\331tb\030U\006>\225'\013|\003\343\213\341SF\301\254\207\271\316\r\2469`\"\274\2539\r\010/\3575\306\\{\302/\352\005=h\235\345S%Z+_J\302\211\023,$\377eW\003\226\321\324\013\202\361\303:C|\205`\333 \302z92\247#\205\345\322\217\t&\006\225\025\245\256\211e\243\031\001\230u\010\303\207\355e\255x\036K4\310gS\020\277]|\274\353\032\024\244\306\2457\223\303\343\306\215\030t4\241\360\231\002U\347\213\010\373\341w\237\035t\215\201\346\023:\303t\022N\253XLXn\250\223\335\332\277\316\324(\3372\033r\365\251\243\016{O-\323#z\3073\030\335\335\016\245\264L\362G\261\200t\377\270\355\342%\262\300\366e\274!o^\221\n\177\372\340~U\346\3579\200u\224\235\261s(\237ft\nF\327\\\373\021\363\233\222\373\3222\276\201\223\231r\017\241\326\020\266[\010\277\200\004\234J\010\037\004\251\352\262\002\236\344c\241\227\356\241\344J@\004\351\347\023G%\306\210)\345\324\020\013\325\273\3034\032\027\247\031\031\037Q\3773\253\262\270--r\376\017\325\263g+\233v\274\273i\233u#\265o\025}\237*\316\236\235\355]U\253\325\037\263\266T\350\374\0013U\377\357\177\201m!\376\274\331\272\037\255w\307\334\033\332\211\270=\3729\233\3057\267(o+x\317\026<\313[\213\315\362\270~\361v\347\200{\027\276h\367\200\007\214\024\276\205\277t\022\203:uI\360F\242\323I\030\204,\250p\021\362>\0064,!\300\362Kc\322\375\275\3108L\345\336\337H^}|\213\205\"\304dc\372\344\361\003\221\205\245\326\367\265""\367\345r%\224\252[\033V3\266a[\231\201{F\026\277q#\313X\361\304\310\353y\360I\314I\275uH\337(\024\307\274o\"\025_\321\315\003\\l\235\360F35\263|C\231\014\377\210\177\302\002\374I\262W\357X~vx\376'\3114\021\237\250\027\300\221\177\242\212\204z\211\274\244\002\376\232<\010\257C\03600Y\3070\241\363)\007\344^\270\332\367_\352\332\315X\321\360s\000R\006VY\303\355\014s}\313\355\000lQ\025\263\213\261\305\367\334\226\033 \217q\237\342z`\032U9zK\240\305\374m\007@s\3631\342\241q\0137\242\027\016MS#p\323\332\316w\345\356\25740OsW+82,\273N<\273\336>\331\213D\301\354\252\020\177i!\267;&\035M\324\333\302\215tB\276\267;\241N\306u\203\370\333ax\"h\323\262\023\304\233r\361\r\363J:V\277F\355u\347T\323\006\0377\213o\022`\244\227\366M[& \251\377|$I\341/^X\3249\000\347\273\2307\301\366\2327\356\277\316\365\336\023\342\342\346\242\266{\236u\025d\"\267\304\200i\272\363g\227\361\301$\3037\331\026;9A\275\352G\267%\270\032\217W\341^hG\237\315\202\267\342\376s\306\300\301\025\274\303\363m\250\274\31182\344N\207\005{\\\376\214\277[f\246\035\027\252\327N,5Y\355`\315N'e%rp\314\275\301\035W]\217\347\342\271srA\356}\217\213q\207Z\210q\317\010\202{*\330r\330\306\002\215\030\320\2752T\205\302%b\303\225\360\377\254\246\036\220\214W\022=\027\252V\316\021u=GuI:\335i\331;[VQ\022]\236\202$\021Vx\2361\334\364\305<>E\240\376a@G\222\375$X\200\204\272\006\3355\255\305{T\203\256\345#ib\225\301\265G\036\256)`\345\0004\003^7EG\352#\242\016\275C\001AM\376dI\"hnG\330\311K\250\013\031\023\306\260\n1\177\247\363\305\226\235\206=\2360_\364\335\242\2556d\t4\277\335U,\214\341>\271\224\245\275\314d&\002\037d\312R^m\312\222\336\357\314\002\257\242e\366\253h\231\347A\265\314~\327,\363<\234\226\201\247\3202\337{i\031\366\nH\206\274\247\221E\336\323\310\302\357id\201\3472\214\317\255\036#P4\227B\335\247\256\212\232E\213>\320\233\005\037\353\312\334\247N2\347\201\016\225\251x\361#\203\017\307e\360\245\267\014\276\302\226y\037k\313<o f\356c\036\224\304\037\346\025\017\210\n\302\254\331\310\027EyZ\306C\016\037\322\260x\321""\261\255\326d\272c/\371\322w\037\004\222\276d(_\321\021$\376rQ\346{\027B \364\223A\212 \243\320@\325\321W\257\230|1\335(Y\320mw\343\2244\207\3251\237\330Q(\373\235 A4^$\026\024\365\306\216\216v\264\324\277G\233\352I\331vd<\0264\376\2606(\250p\303l>w\024\242\363\007\324Ln\036\210\225{c\221:\345k\365\344\364fU\365{\367\354\3556?SP\265t\327\354-8\331\237T;U\252\211\364\363\035\274)\3557=\264p\320'g\356g\343\243\275m\307\033L\221\215\200p\302K\237\246\364\213\025\177c\204\347\344r\351[\032&O>\035\312\344\375\264\351\253\253\212O\226\032\242\337\021E@\256l(\272z\277\336\374$\234\233\307\270\342UK_]\350`O\227\254>\236zT\306\354\355\326\203\220\224l?\205\255\206)\376rz\346\177\243:\013<0\232\371_\030\312B\317\323fi\257\242g\2367\2343\337\263\314\231\367I\301,\376fo\026z\3064\363<\035\234\005\036\370\315\354'\205\263\320\243\305\031|\3368\363=\212\234\271\357\030g\350\353\270\231\357\211\362\314z78\203\357\211f\326\213\232\231\373\344\246&e\360U\320\314~\2744\363\276%\232\201g\2153\347E\350\314x\2535\003\017\273f\376Gg3\360^\264\236\2652\370\020g\346>\326\2319/zf\236w?3\347u\320\314\363\206hf?\332\231\301G=3\360\352g\346\274\013\232\201\227J3\347-\323\014\276\214\232y\037P\265F\033{\351\347\276=\317:>\r\362\351\224\212\247p\322\0108*h\317\263\214\304\316\352U\310\230,\025\215O\213 \250\236j\324\023\303\3248\310f\005f\203\212=2\361\372\261B\270\014;\202r\000\230\305\036N\314\360\247\244<yZi{\036C\313\260\327\314(s?\340>\320XSQ\333:~4o\254Ll\"_\274\033\257\251f\276'V3\344\265VV\026\022\240\352\271z\177 \251n\216\202j\315P\202\306\236\237\246\357\226j\264\375\234\246I\271\322\231\035\264\325\322\016\251V\027)\363\367=o\212Mi&Q\231\201[\t\247bOi\324\177\224S\270\\\210\245\371\354'\262+\322,\035\246\351\035u\264\271\370H\3149\260I\330tF\306`c#\240{\022\013\032kv\026\246\362\277\274.;s>$4\252\035\330\231\204\363\246\001D\366\010\255\365\306\243b\235\223\256q[\206\271l}\244\337_38tA\356aL\312\247\333\353IC\237\260\254{\263X|\221v\340ud\006j~D6\337\005}\214U\274\007\312\224\005C""\\5D\034H\317E\260\341\264\3430\263n\224\252\025\022i\203\345B0\354\324\334.\317G\212!1\350\320\021\306\323y:\314\375L\031\351+>\254\006\037\344\303I\360y\002)\260\036t\005H\355Hl\214Q\017\0271\276\251V\313\003\251\260\352\317\311\317\241T*\335lk\263\264\310\271K\326\003\020\013^nVbdR\271\310\347%!\321\020A\322%h\362fK\022\322t\275\351Y;\232D[H,8\"\0328N6\244\211\222b`\322\364\307\007%\325\237\034P\305\207\006T\266:\364\320\351\302\312)\255-\r\016\313Wv\373\333[_p\277\252\227G\265=\322\211\036ja\355f>p\204$\336W\303\037\343`\020:%m\331\010\007\003\260n\272\362\223\037\0049n\034-\022\007\276\361 2\\h\271q\363\304\206\021-Y\007\010\317\033O\311\2367\246\224@OC\332rx\340\2149\2460\372\271\330\230\206\216g\266<\313m9\034\260\310<Fg\301\252\276\366\262C\263*`\363\311\332\377\r\355\307\262\341\310\350\037F\351\221\275_Z\334\005\210%-.[\246Hv\244\335\321\022\222\351\365\352\312 \223\3159\331\034\3103\022\346\243\305\344%\261\364q\202\344\261\363\037\311\266<\230\004Q\246\027\022\023\244\317f\314\243\027x\260\300\236\317\335\230'\"\362\260\321\\\246p\212\265\324\340$\367lGr\300\341\237$['\200F*\274e\311\236L\312\266\336\222q\242\265y\327g\034\306\312\224\323\324\232\236s:kQ\032\332/XKds\211;\275\263p\"\017#;\272\362\245\033E\262\235)\001\231\252\275\033$\252\357Q,\365\336\345\230*Hp~\375\215\321\2644H&\031\232\240:\345a\024\232\236A\0317\353\315\252\344_\350\270\271\356&\333\365\346\242\321\273?MSe\243n\017\364Y.\rJ!\222\206C\222\256\205\307\344\210\323\255\003p\022A\303\2266\007\337d\323f\261\316[\330\244\246}\033\350}\274\324\315\320\"G\267Mf\200\257\300\341}\235`\362}.\315\216mk\350\002\312\342\213\205\275\225\025\333%\250\373\035I\335#\3237=\205\221\347\t&\235>o\006\310\2275U*\360\246\340\213\256\017r\214\263K\361\223\033x\033'\206\306\331){\325\3309\356<\200\311x\261\234\356\346g\265\256>\262\0147\"\305\330\027+\224\342\034J\t\3610\007W\003\352!\323\323\352\213\306\275\3721NZ\374g\2616\034=4u\241\201G\320\335b\030U\026\333i~t\000NZ\025\355DY\367\332!9\030h\312~A\345B""\214&6\220\217:\234\246\207\ru\220a\330\016\263j\223\021\263m\233\366\264X[\341\2344v}\255OP<\007\022|$\3620\344\310,\324t\325\267\300\302l\367\332VM+\316\2538\317>\"\3434uF\306\203\340\220\214\023\351\212\203\337x\231a+\031w\3621\351\225I\242\323\016\263\243T\007\216\202NO\231\274\014\031\341\243\017\003\021\000\203_\312\321\025\240\272\262U\t\251\t\217\223\246\365R\030\372i\332\036\031nkA\275h\324\n\2133\371~^p=\013-Um\363\242\220OctiM\005\327\370X\316*KE\267\372\247\3706^*\335\004\031\363\202[\005\253`G\035\247\ni\324\337\223c\351\274;\277}l\261\\9Rk\004\025T\273\336\034\330[\212\314/\330\343\357\323\273\305\r\275X\311\241\201\245}\253n\210\264\242\231\303\235\354{\342\026\332\270\220\316\255\013ia\3525\255\027\324\327a%\266\362\200~\264\336]\360\321\330\313\240\266h\026\363\274\334\254\310\352N\334\017X\267\366\272\334\212d\024\233\017s\306X/\253\241O \371/'N\256\256\245\250z\303c\233a\217\242\271y\001\256I\236\303\337\334\177\370\013\230\3568M\317<\311b\222,F\232U\323z\2420%\201\275\252\350B\274\361\252Xo|\265s\312\240\244J'S\334\215\352\252kH\003\361\013\037}\020\250[V\323\214\325\206I\224W\372j\362\276\334V\313\330m\337T\230\252\260iP\332>\220Q\272\243k\\z\325\306\355',6Y\200-\267\213 [\306\036-\230*M8yQ\017\027 3 u\332\266u\230?#\355K\306\275p\016c\244\364c\244\350\202g\235\207\252f\225\263\240\276\365\361\335\232\037o\371!\273\230\323e$\265\3207\346R\303\016\303\274\347\231\256\212MW./\252\265\034\354\324\232\302+\253\007\210\254\036\370eU\225V\253\0340\275UB1\324$8j\\\324|!&\257,u\375\r\233\013\213\341\247\232\267N\371vC\027\205\224\177&u\356ioX\320;\201\361jK\367\007\035\344\316\232\276\244\007\326+\001\220\227\nn\n\354\036\203\024\270e\013e\241\360\316\333,\031l\t\201\370\232V\305\324'\265\250\272\335a\347\226\352\003\\\030\371,\304n\346\215\266&\033\230-\233\217\213\247\325J\314R\336&\34075\236\006p\021\366\005\240\262\022\230\361\212j\202\227M\215\023\274\014a\216\340\345q\003\004/\313T\240\3601E\262|\206\005]K(\221}0!\233\324\262 \323\327\035\231\317""\372\033\215\271hz\266\230\027\335F5\313\350\266\250Vt\3371\271\257\213u\265\310\351\016\241l\367T)\331\227Q\333f\270\3614\024\373\255\315\027?\3172Yp\016\260\2241\370j\304R\314s\264CD\326\246\356\224\271\036QMA\027_#\246\364\256dE\\>\333\275\323\20788V\313\330\316\321\366\340B\255\206\005\347\212Sq\364]\254,\234V\2250\257\233\315\211\357\250\256zsVb\013\020>1u\366\001\323\032p\330\261\204\251\212&\366\263f\357\353\014\345\007Z\020\243L\372\320\301\256\355e]]U\345\322\272\277\025\312\311\276\224\231H\320\364\364\327b\037\202\222-]\217C\250\374q\350U\0338\275\315\027\025\335\24389q\265\216CK*\370\246\231,\210L\255\036\033\017D\211o\375/\232\360\276\033AxZ8\324>F[\310c\037\271\376\240\303>\313\202&n$\353h\313\t=\261\031\235~\272\236,\350\217w\331\231\232\253\033\310Ri\233+\262\004&;\321\202\317\"\232\320l\376\361\255\237~\361\257~\372\305\277\376\307g\337\377\373\357G?\375\362\317\377\351\317\037\275(~\372\305\237}\367\277\277\037}\377\271\301\376\217?\274\365\323/\377\355w\337\376\363/\376\335\367\204\372\037\276\377\374\237)\353\227\337\275\365O\377\346\327\317\337y\361\301O*\370\327?<{\361\266\014~\367W\337?{\376\266f\376\227\347\237\274\370\\\007\377\323\017\237>/~\n\245\264\363\374W/~\035\214\013\270\377\365\371\247/\214\244\036\277\374\344\225\001\376o\317\277z\361\255\016\356\276|\357\325H\007\177\377\342\331\253p!A\360\275\027\357\275\014\307\375\037/>yi\200\377\373\363\257_\276\025\214\373\356\213w^\032\365\375\335\213\257^\032\205|\364\342\353Wo\005S\006A\253\325c\215\203\267$\010\202\224\177\363\374\275\027F\025\376\352\207\257_\274\025\014\376\345\017\237<\377<\370}A\251\360\244\000\030\257\321\373/>}Y\004\203@\0300\371uD\024\004\377\346\305\257^\376:\030\374\317?|\365<\234\021(3\020\025P\214\337>\177\366\362\355`\365\201 \001\331\000\365\005\337\027\224\no\r\360Q\2000\200\032\001.\250 \336\273AK\202\216\003\300\2700\340`\\6@\020|\005P\005\274\235A\323\201R\001Q\001\325\307;\035\370F`\030\001qA\020\214\204\037\276\374\364U\021\374dx\037\004\325\307\277>""\036\027p\377\342\207w\236\177\020l+|\370\372\371\202\340+\000\331\300\277\021\336\217p!\034\024\034\324\027\3007\002B\210\327\010\237\200\360Af\020\030\037s@\020\304\0055\002\343$\020~\320\217>z\371\365\217o\245\316\222\370\232\001\210\n\030\275A!\3012\000$\005\276 \250/\230\255@\307\001\335\n\224\031\314\335\370\347\006m\005\026E\240\n\177\373\362\331\217o\007G`\\\220@\020H,\010\342\262\201K\035>\324\203 \370d\037\274|\347\325\007\301\265(H\031\004\361\241\000_3\000a\300S\006\202\204\267$\370(\240\276 #0\247\000.\210\0132\002`\220/\350\260\240\276\240\202\340\203\342\303\027>K\202\214@\025\200\000\203\352\343C.\370\n\377\353\345W\257\276M\235S\360e\017\210\213O\023\370\332\033$\005\206\221A\253>\220\324\377|\371\253WFK~\374\352W?\376:u\021\010\342\342\333%\274\323\341\313\370A\243\312\353,\002\201L\342#0\020o\\\220\360\235\027\010\016\332\001\201 \276T\303{(\230\007A[\341\323\"\010\202\257\200\357\235\007\201\301'\003e\306\203\240\220\370P\000\346P\020\004\255\001\346_\020\004\023\356\377{\365\325\217\337\006\203@r\376\317\253O~\374<\030\004\025\304\313\214\317\203\240\314\240\323\341\3334\274\372@\010A\276\340\203\202o\204O\213\370\006\177\320!\014\310\027\014n@6@\005\361\323\017\000\006\305\300\217\302@\020$\005>(\010\202U\320\350\307w\376`\004\377\356\325\263?\274\235\332\316\370\364\204\217\242@T\360Y\003\037F\006m\246@\017\005=\005_\346\341\335\352\377\276\372\364G#\243\351\217_\375\341\333`\263\177\362\352\275\037G\301\031\026|2\360}\361)\006\337-\202\n\202N\207\367n0\344\002.h\034\2202(3\310\010\257\021^HP\243\237\257\314\370\016\010_\251\342\273cPH|\306\031tn\206/\250\000x\320\326\003O\031H;\020`\260\243\007}\001\354\350AR\370&\035\337j\201b\340\334A\307\035x\267\302\217\205\3619\024\377(\370\212\021\337,\343ko|\325\207\237\231\203/\010*\210\257\030\361\276\200\037\357\340KD u\370\314\016\202 )<.\350\260 _\374R\000\324\027_\231\203\317\r2b+Fq3\370g\337}\360\377\001\006\213\337\030";
    PyObject *data = __Pyx_DecompressString(cstring, 11760, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (74831 bytes) */
const char* const bytes = "?Failed to dlopen Function \"cuArray3DCreate_v2\" not foundFunction \"cuArray3DGetDescriptor_v2\" not foundFunction \"cuArrayCreate_v2\" not foundFunction \"cuArrayDestroy\" not foundFunction \"cuArrayGetDescriptor_v2\" not foundFunction \"cuArrayGetMemoryRequirements\" not foundFunction \"cuArrayGetPlane\" not foundFunction \"cuArrayGetSparseProperties\" not foundFunction \"cuCheckpointProcessCheckpoint\" not foundFunction \"cuCheckpointProcessGetRestoreThreadId\" not foundFunction \"cuCheckpointProcessGetState\" not foundFunction \"cuCheckpointProcessLock\" not foundFunction \"cuCheckpointProcessRestore\" not foundFunction \"cuCheckpointProcessUnlock\" not foundFunction \"cuCoredumpGetAttribute\" not foundFunction \"cuCoredumpGetAttributeGlobal\" not foundFunction \"cuCoredumpSetAttribute\" not foundFunction \"cuCoredumpSetAttributeGlobal\" not foundFunction \"cuCtxAttach\" not foundFunction \"cuCtxCreate_v4\" not foundFunction \"cuCtxDestroy_v2\" not foundFunction \"cuCtxDetach\" not foundFunction \"cuCtxDisablePeerAccess\" not foundFunction \"cuCtxEnablePeerAccess\" not foundFunction \"cuCtxFromGreenCtx\" not foundFunction \"cuCtxGetApiVersion\" not foundFunction \"cuCtxGetCacheConfig\" not foundFunction \"cuCtxGetCurrent\" not foundFunction \"cuCtxGetDevResource\" not foundFunction \"cuCtxGetDevice\" not foundFunction \"cuCtxGetDevice_v2\" not foundFunction \"cuCtxGetExecAffinity\" not foundFunction \"cuCtxGetFlags\" not foundFunction \"cuCtxGetId\" not foundFunction \"cuCtxGetLimit\" not foundFunction \"cuCtxGetSharedMemConfig\" not foundFunction \"cuCtxGetStreamPriorityRange\" not foundFunction \"cuCtxPopCurrent_v2\" not foundFunction \"cuCtxPushCurrent_v2\" not foundFunction \"cuCtxRecordEvent\" not foundFunction \"cuCtxResetPersistingL2Cache\" not foundFunction \"cuCtxSetCacheConfig\" not foundFunction \"cuCtxSetCurrent\" not foundFunction \"cuCtxSetFlags\" not foundFunction \"cuCtxSetLimit\" not foundFunction \"cuCtxSetSharedMemConfig\" not foundFunction ""\"cuCtxSynchronize\" not foundFunction \"cuCtxSynchronize_v2\" not foundFunction \"cuCtxWaitEvent\" not foundFunction \"cuDestroyExternalMemory\" not foundFunction \"cuDestroyExternalSemaphore\" not foundFunction \"cuDevResourceGenerateDesc\" not foundFunction \"cuDevSmResourceSplitByCount\" not foundFunction \"cuDevSmResourceSplit\" not foundFunction \"cuDeviceCanAccessPeer\" not foundFunction \"cuDeviceComputeCapability\" not foundFunction \"cuDeviceGetAttribute\" not foundFunction \"cuDeviceGetByPCIBusId\" not foundFunction \"cuDeviceGetCount\" not foundFunction \"cuDeviceGetDefaultMemPool\" not foundFunction \"cuDeviceGetDevResource\" not foundFunction \"cuDeviceGetExecAffinitySupport\" not foundFunction \"cuDeviceGetGraphMemAttribute\" not foundFunction \"cuDeviceGetHostAtomicCapabilities\" not foundFunction \"cuDeviceGetLuid\" not foundFunction \"cuDeviceGetMemPool\" not foundFunction \"cuDeviceGetName\" not foundFunction \"cuDeviceGetNvSciSyncAttributes\" not foundFunction \"cuDeviceGetP2PAtomicCapabilities\" not foundFunction \"cuDeviceGetP2PAttribute\" not foundFunction \"cuDeviceGetPCIBusId\" not foundFunction \"cuDeviceGetProperties\" not foundFunction \"cuDeviceGetTexture1DLinearMaxWidth\" not foundFunction \"cuDeviceGetUuid_v2\" not foundFunction \"cuDeviceGet\" not foundFunction \"cuDeviceGraphMemTrim\" not foundFunction \"cuDevicePrimaryCtxGetState\" not foundFunction \"cuDevicePrimaryCtxRelease_v2\" not foundFunction \"cuDevicePrimaryCtxReset_v2\" not foundFunction \"cuDevicePrimaryCtxRetain\" not foundFunction \"cuDevicePrimaryCtxSetFlags_v2\" not foundFunction \"cuDeviceRegisterAsyncNotification\" not foundFunction \"cuDeviceSetGraphMemAttribute\" not foundFunction \"cuDeviceSetMemPool\" not foundFunction \"cuDeviceTotalMem_v2\" not foundFunction \"cuDeviceUnregisterAsyncNotification\" not foundFunction \"cuDriverGetVersion\" not foundFunction \"cuEGLStreamConsumerAcquireFrame\" not foundFunction \"cuEGLStreamConsumerConnect\" not foundFunction ""\"cuEGLStreamConsumerConnectWithFlags\" not foundFunction \"cuEGLStreamConsumerDisconnect\" not foundFunction \"cuEGLStreamConsumerReleaseFrame\" not foundFunction \"cuEGLStreamProducerConnect\" not foundFunction \"cuEGLStreamProducerDisconnect\" not foundFunction \"cuEGLStreamProducerPresentFrame\" not foundFunction \"cuEGLStreamProducerReturnFrame\" not foundFunction \"cuEventCreateFromEGLSync\" not foundFunction \"cuEventCreate\" not foundFunction \"cuEventDestroy_v2\" not foundFunction \"cuEventElapsedTime_v2\" not foundFunction \"cuEventQuery\" not foundFunction \"cuEventRecordWithFlags\" not foundFunction \"cuEventRecord\" not foundFunction \"cuEventSynchronize\" not foundFunction \"cuExternalMemoryGetMappedBuffer\" not foundFunction \"cuExternalMemoryGetMappedMipmappedArray\" not foundFunction \"cuFlushGPUDirectRDMAWrites\" not foundFunction \"cuFuncGetAttribute\" not foundFunction \"cuFuncGetModule\" not foundFunction \"cuFuncGetName\" not foundFunction \"cuFuncGetParamInfo\" not foundFunction \"cuFuncIsLoaded\" not foundFunction \"cuFuncLoad\" not foundFunction \"cuFuncSetAttribute\" not foundFunction \"cuFuncSetBlockShape\" not foundFunction \"cuFuncSetCacheConfig\" not foundFunction \"cuFuncSetSharedMemConfig\" not foundFunction \"cuFuncSetSharedSize\" not foundFunction \"cuGLGetDevices_v2\" not foundFunction \"cuGetErrorName\" not foundFunction \"cuGetErrorString\" not foundFunction \"cuGetExportTable\" not foundFunction \"cuGetProcAddress_v2\" not foundFunction \"cuGraphAddBatchMemOpNode\" not foundFunction \"cuGraphAddChildGraphNode\" not foundFunction \"cuGraphAddDependencies_v2\" not foundFunction \"cuGraphAddEmptyNode\" not foundFunction \"cuGraphAddEventRecordNode\" not foundFunction \"cuGraphAddEventWaitNode\" not foundFunction \"cuGraphAddExternalSemaphoresSignalNode\" not foundFunction \"cuGraphAddExternalSemaphoresWaitNode\" not foundFunction \"cuGraphAddHostNode\" not foundFunction \"cuGraphAddKernelNode_v2\" not foundFunction \"cuGraphAddMemA""llocNode\" not foundFunction \"cuGraphAddMemFreeNode\" not foundFunction \"cuGraphAddMemcpyNode\" not foundFunction \"cuGraphAddMemsetNode\" not foundFunction \"cuGraphAddNode_v2\" not foundFunction \"cuGraphBatchMemOpNodeGetParams\" not foundFunction \"cuGraphBatchMemOpNodeSetParams\" not foundFunction \"cuGraphChildGraphNodeGetGraph\" not foundFunction \"cuGraphClone\" not foundFunction \"cuGraphConditionalHandleCreate\" not foundFunction \"cuGraphCreate\" not foundFunction \"cuGraphDebugDotPrint\" not foundFunction \"cuGraphDestroyNode\" not foundFunction \"cuGraphDestroy\" not foundFunction \"cuGraphEventRecordNodeGetEvent\" not foundFunction \"cuGraphEventRecordNodeSetEvent\" not foundFunction \"cuGraphEventWaitNodeGetEvent\" not foundFunction \"cuGraphEventWaitNodeSetEvent\" not foundFunction \"cuGraphExecBatchMemOpNodeSetParams\" not foundFunction \"cuGraphExecChildGraphNodeSetParams\" not foundFunction \"cuGraphExecDestroy\" not foundFunction \"cuGraphExecEventRecordNodeSetEvent\" not foundFunction \"cuGraphExecEventWaitNodeSetEvent\" not foundFunction \"cuGraphExecExternalSemaphoresSignalNodeSetParams\" not foundFunction \"cuGraphExecExternalSemaphoresWaitNodeSetParams\" not foundFunction \"cuGraphExecGetFlags\" not foundFunction \"cuGraphExecGetId\" not foundFunction \"cuGraphExecHostNodeSetParams\" not foundFunction \"cuGraphExecKernelNodeSetParams_v2\" not foundFunction \"cuGraphExecMemcpyNodeSetParams\" not foundFunction \"cuGraphExecMemsetNodeSetParams\" not foundFunction \"cuGraphExecNodeSetParams\" not foundFunction \"cuGraphExecUpdate_v2\" not foundFunction \"cuGraphExternalSemaphoresSignalNodeGetParams\" not foundFunction \"cuGraphExternalSemaphoresSignalNodeSetParams\" not foundFunction \"cuGraphExternalSemaphoresWaitNodeGetParams\" not foundFunction \"cuGraphExternalSemaphoresWaitNodeSetParams\" not foundFunction \"cuGraphGetEdges_v2\" not foundFunction \"cuGraphGetId\" not foundFunction \"cuGraphGetNodes\" not foundFunction \"cuGraphGetRootNodes""\" not foundFunction \"cuGraphHostNodeGetParams\" not foundFunction \"cuGraphHostNodeSetParams\" not foundFunction \"cuGraphInstantiateWithFlags\" not foundFunction \"cuGraphInstantiateWithParams\" not foundFunction \"cuGraphKernelNodeCopyAttributes\" not foundFunction \"cuGraphKernelNodeGetAttribute\" not foundFunction \"cuGraphKernelNodeGetParams_v2\" not foundFunction \"cuGraphKernelNodeSetAttribute\" not foundFunction \"cuGraphKernelNodeSetParams_v2\" not foundFunction \"cuGraphLaunch\" not foundFunction \"cuGraphMemAllocNodeGetParams\" not foundFunction \"cuGraphMemFreeNodeGetParams\" not foundFunction \"cuGraphMemcpyNodeGetParams\" not foundFunction \"cuGraphMemcpyNodeSetParams\" not foundFunction \"cuGraphMemsetNodeGetParams\" not foundFunction \"cuGraphMemsetNodeSetParams\" not foundFunction \"cuGraphNodeFindInClone\" not foundFunction \"cuGraphNodeGetContainingGraph\" not foundFunction \"cuGraphNodeGetDependencies_v2\" not foundFunction \"cuGraphNodeGetDependentNodes_v2\" not foundFunction \"cuGraphNodeGetEnabled\" not foundFunction \"cuGraphNodeGetLocalId\" not foundFunction \"cuGraphNodeGetToolsId\" not foundFunction \"cuGraphNodeGetType\" not foundFunction \"cuGraphNodeSetEnabled\" not foundFunction \"cuGraphNodeSetParams\" not foundFunction \"cuGraphReleaseUserObject\" not foundFunction \"cuGraphRemoveDependencies_v2\" not foundFunction \"cuGraphRetainUserObject\" not foundFunction \"cuGraphUpload\" not foundFunction \"cuGraphicsEGLRegisterImage\" not foundFunction \"cuGraphicsGLRegisterBuffer\" not foundFunction \"cuGraphicsGLRegisterImage\" not foundFunction \"cuGraphicsMapResources\" not foundFunction \"cuGraphicsResourceGetMappedMipmappedArray\" not foundFunction \"cuGraphicsResourceGetMappedPointer_v2\" not foundFunction \"cuGraphicsResourceGetMappedEglFrame\" not foundFunction \"cuGraphicsResourceSetMapFlags_v2\" not foundFunction \"cuGraphicsSubResourceGetMappedArray\" not foundFunction \"cuGraphicsUnmapResources\" not foundFunction \"cuGraphicsU""nregisterResource\" not foundFunction \"cuGraphicsVDPAURegisterVideoSurface\" not foundFunction \"cuGraphicsVDPAURegisterOutputSurface\" not foundFunction \"cuGreenCtxCreate\" not foundFunction \"cuGreenCtxDestroy\" not foundFunction \"cuGreenCtxGetDevResource\" not foundFunction \"cuGreenCtxGetId\" not foundFunction \"cuGreenCtxRecordEvent\" not foundFunction \"cuGreenCtxStreamCreate\" not foundFunction \"cuGreenCtxWaitEvent\" not foundFunction \"cuImportExternalMemory\" not foundFunction \"cuImportExternalSemaphore\" not foundFunction \"cuInit\" not foundFunction \"cuIpcCloseMemHandle\" not foundFunction \"cuIpcGetEventHandle\" not foundFunction \"cuIpcGetMemHandle\" not foundFunction \"cuIpcOpenEventHandle\" not foundFunction \"cuIpcOpenMemHandle_v2\" not foundFunction \"cuKernelGetAttribute\" not foundFunction \"cuKernelGetFunction\" not foundFunction \"cuKernelGetLibrary\" not foundFunction \"cuKernelGetName\" not foundFunction \"cuKernelGetParamInfo\" not foundFunction \"cuKernelSetAttribute\" not foundFunction \"cuKernelSetCacheConfig\" not foundFunction \"cuLaunchCooperativeKernel\" not foundFunction \"cuLaunchCooperativeKernelMultiDevice\" not foundFunction \"cuLaunchGridAsync\" not foundFunction \"cuLaunchGrid\" not foundFunction \"cuLaunchHostFunc\" not foundFunction \"cuLaunchKernelEx\" not foundFunction \"cuLaunchKernel\" not foundFunction \"cuLaunch\" not foundFunction \"cuLibraryEnumerateKernels\" not foundFunction \"cuLibraryGetGlobal\" not foundFunction \"cuLibraryGetKernelCount\" not foundFunction \"cuLibraryGetKernel\" not foundFunction \"cuLibraryGetManaged\" not foundFunction \"cuLibraryGetModule\" not foundFunction \"cuLibraryGetUnifiedFunction\" not foundFunction \"cuLibraryLoadData\" not foundFunction \"cuLibraryLoadFromFile\" not foundFunction \"cuLibraryUnload\" not foundFunction \"cuLinkAddData_v2\" not foundFunction \"cuLinkAddFile_v2\" not foundFunction \"cuLinkComplete\" not foundFunction \"cuLinkCreate_v2\" not foundFunction \"cuLinkDe""stroy\" not foundFunction \"cuLogsCurrent\" not foundFunction \"cuLogsDumpToFile\" not foundFunction \"cuLogsDumpToMemory\" not foundFunction \"cuLogsRegisterCallback\" not foundFunction \"cuLogsUnregisterCallback\" not foundFunction \"cuMemAddressFree\" not foundFunction \"cuMemAddressReserve\" not foundFunction \"cuMemAdvise_v2\" not foundFunction \"cuMemAllocAsync\" not foundFunction \"cuMemAllocFromPoolAsync\" not foundFunction \"cuMemAllocHost_v2\" not foundFunction \"cuMemAllocManaged\" not foundFunction \"cuMemAllocPitch_v2\" not foundFunction \"cuMemAlloc_v2\" not foundFunction \"cuMemBatchDecompressAsync\" not foundFunction \"cuMemCreate\" not foundFunction \"cuMemDiscardAndPrefetchBatchAsync\" not foundFunction \"cuMemDiscardBatchAsync\" not foundFunction \"cuMemExportToShareableHandle\" not foundFunction \"cuMemFreeAsync\" not foundFunction \"cuMemFreeHost\" not foundFunction \"cuMemFree_v2\" not foundFunction \"cuMemGetAccess\" not foundFunction \"cuMemGetAddressRange_v2\" not foundFunction \"cuMemGetAllocationGranularity\" not foundFunction \"cuMemGetAllocationPropertiesFromHandle\" not foundFunction \"cuMemGetDefaultMemPool\" not foundFunction \"cuMemGetHandleForAddressRange\" not foundFunction \"cuMemGetInfo_v2\" not foundFunction \"cuMemGetMemPool\" not foundFunction \"cuMemHostAlloc\" not foundFunction \"cuMemHostGetDevicePointer_v2\" not foundFunction \"cuMemHostGetFlags\" not foundFunction \"cuMemHostRegister_v2\" not foundFunction \"cuMemHostUnregister\" not foundFunction \"cuMemImportFromShareableHandle\" not foundFunction \"cuMemMapArrayAsync\" not foundFunction \"cuMemMap\" not foundFunction \"cuMemPoolCreate\" not foundFunction \"cuMemPoolDestroy\" not foundFunction \"cuMemPoolExportPointer\" not foundFunction \"cuMemPoolExportToShareableHandle\" not foundFunction \"cuMemPoolGetAccess\" not foundFunction \"cuMemPoolGetAttribute\" not foundFunction \"cuMemPoolImportFromShareableHandle\" not foundFunction \"cuMemPoolImportPointer\" not foundFun""ction \"cuMemPoolSetAccess\" not foundFunction \"cuMemPoolSetAttribute\" not foundFunction \"cuMemPoolTrimTo\" not foundFunction \"cuMemPrefetchAsync_v2\" not foundFunction \"cuMemPrefetchBatchAsync\" not foundFunction \"cuMemRangeGetAttribute\" not foundFunction \"cuMemRangeGetAttributes\" not foundFunction \"cuMemRelease\" not foundFunction \"cuMemRetainAllocationHandle\" not foundFunction \"cuMemSetAccess\" not foundFunction \"cuMemSetMemPool\" not foundFunction \"cuMemUnmap\" not foundFunction \"cuMemcpy2DAsync_v2\" not foundFunction \"cuMemcpy2DUnaligned_v2\" not foundFunction \"cuMemcpy2D_v2\" not foundFunction \"cuMemcpy3DAsync_v2\" not foundFunction \"cuMemcpy3DBatchAsync_v2\" not foundFunction \"cuMemcpy3DPeerAsync\" not foundFunction \"cuMemcpy3DPeer\" not foundFunction \"cuMemcpy3D_v2\" not foundFunction \"cuMemcpyAsync\" not foundFunction \"cuMemcpyAtoA_v2\" not foundFunction \"cuMemcpyAtoD_v2\" not foundFunction \"cuMemcpyAtoHAsync_v2\" not foundFunction \"cuMemcpyAtoH_v2\" not foundFunction \"cuMemcpyBatchAsync_v2\" not foundFunction \"cuMemcpyDtoA_v2\" not foundFunction \"cuMemcpyDtoDAsync_v2\" not foundFunction \"cuMemcpyDtoD_v2\" not foundFunction \"cuMemcpyDtoHAsync_v2\" not foundFunction \"cuMemcpyDtoH_v2\" not foundFunction \"cuMemcpyHtoAAsync_v2\" not foundFunction \"cuMemcpyHtoA_v2\" not foundFunction \"cuMemcpyHtoDAsync_v2\" not foundFunction \"cuMemcpyHtoD_v2\" not foundFunction \"cuMemcpyPeerAsync\" not foundFunction \"cuMemcpyPeer\" not foundFunction \"cuMemcpy\" not foundFunction \"cuMemsetD16Async\" not foundFunction \"cuMemsetD16_v2\" not foundFunction \"cuMemsetD2D16Async\" not foundFunction \"cuMemsetD2D16_v2\" not foundFunction \"cuMemsetD2D32Async\" not foundFunction \"cuMemsetD2D32_v2\" not foundFunction \"cuMemsetD2D8Async\" not foundFunction \"cuMemsetD2D8_v2\" not foundFunction \"cuMemsetD32Async\" not foundFunction \"cuMemsetD32_v2\" not foundFunction \"cuMemsetD8Async\" not foundFunction \"cuMemsetD8_v2\" not foundFunction ""\"cuMipmappedArrayCreate\" not foundFunction \"cuMipmappedArrayDestroy\" not foundFunction \"cuMipmappedArrayGetLevel\" not foundFunction \"cuMipmappedArrayGetMemoryRequirements\" not foundFunction \"cuMipmappedArrayGetSparseProperties\" not foundFunction \"cuModuleEnumerateFunctions\" not foundFunction \"cuModuleGetFunctionCount\" not foundFunction \"cuModuleGetFunction\" not foundFunction \"cuModuleGetGlobal_v2\" not foundFunction \"cuModuleGetLoadingMode\" not foundFunction \"cuModuleGetSurfRef\" not foundFunction \"cuModuleGetTexRef\" not foundFunction \"cuModuleLoadDataEx\" not foundFunction \"cuModuleLoadData\" not foundFunction \"cuModuleLoadFatBinary\" not foundFunction \"cuModuleLoad\" not foundFunction \"cuModuleUnload\" not foundFunction \"cuMulticastAddDevice\" not foundFunction \"cuMulticastBindAddr\" not foundFunction \"cuMulticastBindAddr_v2\" not foundFunction \"cuMulticastBindMem\" not foundFunction \"cuMulticastBindMem_v2\" not foundFunction \"cuMulticastCreate\" not foundFunction \"cuMulticastGetGranularity\" not foundFunction \"cuMulticastUnbind\" not foundFunction \"cuOccupancyAvailableDynamicSMemPerBlock\" not foundFunction \"cuOccupancyMaxActiveBlocksPerMultiprocessor\" not foundFunction \"cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\" not foundFunction \"cuOccupancyMaxActiveClusters\" not foundFunction \"cuOccupancyMaxPotentialBlockSize\" not foundFunction \"cuOccupancyMaxPotentialBlockSizeWithFlags\" not foundFunction \"cuOccupancyMaxPotentialClusterSize\" not foundFunction \"cuParamSetSize\" not foundFunction \"cuParamSetTexRef\" not foundFunction \"cuParamSetf\" not foundFunction \"cuParamSeti\" not foundFunction \"cuParamSetv\" not foundFunction \"cuPointerGetAttribute\" not foundFunction \"cuPointerGetAttributes\" not foundFunction \"cuPointerSetAttribute\" not foundFunction \"cuProfilerStart\" not foundFunction \"cuProfilerStop\" not foundFunction \"cuSignalExternalSemaphoresAsync\" not foundFunction \"cuStreamAddCallback\" not ""foundFunction \"cuStreamAttachMemAsync\" not foundFunction \"cuStreamBatchMemOp_v2\" not foundFunction \"cuStreamBeginCaptureToGraph\" not foundFunction \"cuStreamBeginCapture_v2\" not foundFunction \"cuStreamCopyAttributes\" not foundFunction \"cuStreamCreateWithPriority\" not foundFunction \"cuStreamCreate\" not foundFunction \"cuStreamDestroy_v2\" not foundFunction \"cuStreamEndCapture\" not foundFunction \"cuStreamGetAttribute\" not foundFunction \"cuStreamGetCaptureInfo_v3\" not foundFunction \"cuStreamGetCtx\" not foundFunction \"cuStreamGetCtx_v2\" not foundFunction \"cuStreamGetDevResource\" not foundFunction \"cuStreamGetDevice\" not foundFunction \"cuStreamGetFlags\" not foundFunction \"cuStreamGetGreenCtx\" not foundFunction \"cuStreamGetId\" not foundFunction \"cuStreamGetPriority\" not foundFunction \"cuStreamIsCapturing\" not foundFunction \"cuStreamQuery\" not foundFunction \"cuStreamSetAttribute\" not foundFunction \"cuStreamSynchronize\" not foundFunction \"cuStreamUpdateCaptureDependencies_v2\" not foundFunction \"cuStreamWaitEvent\" not foundFunction \"cuStreamWaitValue32_v2\" not foundFunction \"cuStreamWaitValue64_v2\" not foundFunction \"cuStreamWriteValue32_v2\" not foundFunction \"cuStreamWriteValue64_v2\" not foundFunction \"cuSurfObjectCreate\" not foundFunction \"cuSurfObjectDestroy\" not foundFunction \"cuSurfObjectGetResourceDesc\" not foundFunction \"cuSurfRefGetArray\" not foundFunction \"cuSurfRefSetArray\" not foundFunction \"cuTensorMapEncodeIm2col\" not foundFunction \"cuTensorMapEncodeIm2colWide\" not foundFunction \"cuTensorMapEncodeTiled\" not foundFunction \"cuTensorMapReplaceAddress\" not foundFunction \"cuTexObjectCreate\" not foundFunction \"cuTexObjectDestroy\" not foundFunction \"cuTexObjectGetResourceDesc\" not foundFunction \"cuTexObjectGetResourceViewDesc\" not foundFunction \"cuTexObjectGetTextureDesc\" not foundFunction \"cuTexRefCreate\" not foundFunction \"cuTexRefDestroy\" not foundFunction \"cuTexRefGetAddressMode""\" not foundFunction \"cuTexRefGetAddress_v2\" not foundFunction \"cuTexRefGetArray\" not foundFunction \"cuTexRefGetBorderColor\" not foundFunction \"cuTexRefGetFilterMode\" not foundFunction \"cuTexRefGetFlags\" not foundFunction \"cuTexRefGetFormat\" not foundFunction \"cuTexRefGetMaxAnisotropy\" not foundFunction \"cuTexRefGetMipmapFilterMode\" not foundFunction \"cuTexRefGetMipmapLevelBias\" not foundFunction \"cuTexRefGetMipmapLevelClamp\" not foundFunction \"cuTexRefGetMipmappedArray\" not foundFunction \"cuTexRefSetAddress2D_v3\" not foundFunction \"cuTexRefSetAddressMode\" not foundFunction \"cuTexRefSetAddress_v2\" not foundFunction \"cuTexRefSetArray\" not foundFunction \"cuTexRefSetBorderColor\" not foundFunction \"cuTexRefSetFilterMode\" not foundFunction \"cuTexRefSetFlags\" not foundFunction \"cuTexRefSetFormat\" not foundFunction \"cuTexRefSetMaxAnisotropy\" not foundFunction \"cuTexRefSetMipmapFilterMode\" not foundFunction \"cuTexRefSetMipmapLevelBias\" not foundFunction \"cuTexRefSetMipmapLevelClamp\" not foundFunction \"cuTexRefSetMipmappedArray\" not foundFunction \"cuThreadExchangeStreamCaptureMode\" not foundFunction \"cuUserObjectCreate\" not foundFunction \"cuUserObjectRelease\" not foundFunction \"cuUserObjectRetain\" not foundFunction \"cuVDPAUCtxCreate_v2\" not foundFunction \"cuVDPAUGetDevice\" not foundFunction \"cuWaitExternalSemaphoresAsync\" not foundNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.add_notecuda/bindings/_bindings/cydriver.pyxlibcuda.so.1utf-8CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAMLock__Pyx_PyDict_NextRefasyncio.coroutinescline_in_traceback__cuArray3DCreate_v2__cuArray3DGetDescriptor_v2__cuArrayCreate_v2__cuArrayDestroy__cuArrayGetDescriptor_v2__cuArrayGetMemoryRequirements__cuArrayGetPlane__cuArrayGetSparseProperties__cuCheckpointProcessCheckpoint__cuCheckpointProcessGetRestoreThreadId_""_cuCheckpointProcessGetState__cuCheckpointProcessLock__cuCheckpointProcessRestore__cuCheckpointProcessUnlock__cuCoredumpGetAttributeGlobal__cuCoredumpGetAttribute__cuCoredumpSetAttributeGlobal__cuCoredumpSetAttribute__cuCtxAttach__cuCtxCreate_v4__cuCtxDestroy_v2__cuCtxDetach__cuCtxDisablePeerAccess__cuCtxEnablePeerAccess__cuCtxFromGreenCtx__cuCtxGetApiVersion__cuCtxGetCacheConfig__cuCtxGetCurrent__cuCtxGetDevResource__cuCtxGetDevice__cuCtxGetDevice_v2__cuCtxGetExecAffinity__cuCtxGetFlags__cuCtxGetId__cuCtxGetLimit__cuCtxGetSharedMemConfig__cuCtxGetStreamPriorityRange__cuCtxPopCurrent_v2__cuCtxPushCurrent_v2__cuCtxRecordEvent__cuCtxResetPersistingL2Cache__cuCtxSetCacheConfig__cuCtxSetCurrent__cuCtxSetFlags__cuCtxSetLimit__cuCtxSetSharedMemConfig__cuCtxSynchronize__cuCtxSynchronize_v2__cuCtxWaitEvent__cuDestroyExternalMemory__cuDestroyExternalSemaphore__cuDevResourceGenerateDesc__cuDevSmResourceSplitByCount__cuDevSmResourceSplit__cuDeviceCanAccessPeer__cuDeviceComputeCapability__cuDeviceGetAttribute__cuDeviceGetByPCIBusId__cuDeviceGetCount__cuDeviceGetDefaultMemPool__cuDeviceGetDevResource__cuDeviceGetExecAffinitySupport__cuDeviceGetGraphMemAttribute__cuDeviceGetHostAtomicCapabilities__cuDeviceGetLuid__cuDeviceGetMemPool__cuDeviceGetName__cuDeviceGetNvSciSyncAttributes__cuDeviceGetP2PAtomicCapabilities__cuDeviceGetP2PAttribute__cuDeviceGetPCIBusId__cuDeviceGetProperties__cuDeviceGetTexture1DLinearMaxWidth__cuDeviceGetUuid_v2__cuDeviceGet__cuDeviceGraphMemTrim__cuDevicePrimaryCtxGetState__cuDevicePrimaryCtxRelease_v2__cuDevicePrimaryCtxReset_v2__cuDevicePrimaryCtxRetain__cuDevicePrimaryCtxSetFlags_v2__cuDeviceRegisterAsyncNotification__cuDeviceSetGraphMemAttribute__cuDeviceSetMemPool__cuDeviceTotalMem_v2__cuDeviceUnregisterAsyncNotification__cuDriverGetVersion__cuEGLStreamConsumerAcquireFrame__cuEGLStreamConsumerConnectWithFlags__cuEGLStreamConsumerConnect__cuEGLStreamConsumerDisconnect__cuEGLStreamConsumerReleaseFrame__cuEGLStreamProducerConnect__cuEGLStreamProducerDi""sconnect__cuEGLStreamProducerPresentFrame__cuEGLStreamProducerReturnFrame__cuEventCreateFromEGLSync__cuEventCreate__cuEventDestroy_v2__cuEventElapsedTime_v2__cuEventQuery__cuEventRecordWithFlags__cuEventRecord__cuEventSynchronize__cuExternalMemoryGetMappedBuffer__cuExternalMemoryGetMappedMipmappedArray__cuFlushGPUDirectRDMAWrites__cuFuncGetAttribute__cuFuncGetModule__cuFuncGetName__cuFuncGetParamInfo__cuFuncIsLoaded__cuFuncLoad__cuFuncSetAttribute__cuFuncSetBlockShape__cuFuncSetCacheConfig__cuFuncSetSharedMemConfig__cuFuncSetSharedSize__cuGLGetDevices_v2__cuGetErrorName__cuGetErrorString__cuGetExportTable__cuGetProcAddress_v2__cuGraphAddBatchMemOpNode__cuGraphAddChildGraphNode__cuGraphAddDependencies_v2__cuGraphAddEmptyNode__cuGraphAddEventRecordNode__cuGraphAddEventWaitNode__cuGraphAddExternalSemaphoresSignalNode__cuGraphAddExternalSemaphoresWaitNode__cuGraphAddHostNode__cuGraphAddKernelNode_v2__cuGraphAddMemAllocNode__cuGraphAddMemFreeNode__cuGraphAddMemcpyNode__cuGraphAddMemsetNode__cuGraphAddNode_v2__cuGraphBatchMemOpNodeGetParams__cuGraphBatchMemOpNodeSetParams__cuGraphChildGraphNodeGetGraph__cuGraphClone__cuGraphConditionalHandleCreate__cuGraphCreate__cuGraphDebugDotPrint__cuGraphDestroyNode__cuGraphDestroy__cuGraphEventRecordNodeGetEvent__cuGraphEventRecordNodeSetEvent__cuGraphEventWaitNodeGetEvent__cuGraphEventWaitNodeSetEvent__cuGraphExecBatchMemOpNodeSetParams__cuGraphExecChildGraphNodeSetParams__cuGraphExecDestroy__cuGraphExecEventRecordNodeSetEvent__cuGraphExecEventWaitNodeSetEvent__cuGraphExecExternalSemaphoresSignalNodeSetParams__cuGraphExecExternalSemaphoresWaitNodeSetParams__cuGraphExecGetFlags__cuGraphExecGetId__cuGraphExecHostNodeSetParams__cuGraphExecKernelNodeSetParams_v2__cuGraphExecMemcpyNodeSetParams__cuGraphExecMemsetNodeSetParams__cuGraphExecNodeSetParams__cuGraphExecUpdate_v2__cuGraphExternalSemaphoresSignalNodeGetParams__cuGraphExternalSemaphoresSignalNodeSetParams__cuGraphExternalSemaphoresWaitNodeGetParams__cuGraphExternalSemaphoresWaitN""odeSetParams__cuGraphGetEdges_v2__cuGraphGetId__cuGraphGetNodes__cuGraphGetRootNodes__cuGraphHostNodeGetParams__cuGraphHostNodeSetParams__cuGraphInstantiateWithFlags__cuGraphInstantiateWithParams__cuGraphKernelNodeCopyAttributes__cuGraphKernelNodeGetAttribute__cuGraphKernelNodeGetParams_v2__cuGraphKernelNodeSetAttribute__cuGraphKernelNodeSetParams_v2__cuGraphLaunch__cuGraphMemAllocNodeGetParams__cuGraphMemFreeNodeGetParams__cuGraphMemcpyNodeGetParams__cuGraphMemcpyNodeSetParams__cuGraphMemsetNodeGetParams__cuGraphMemsetNodeSetParams__cuGraphNodeFindInClone__cuGraphNodeGetContainingGraph__cuGraphNodeGetDependencies_v2__cuGraphNodeGetDependentNodes_v2__cuGraphNodeGetEnabled__cuGraphNodeGetLocalId__cuGraphNodeGetToolsId__cuGraphNodeGetType__cuGraphNodeSetEnabled__cuGraphNodeSetParams__cuGraphReleaseUserObject__cuGraphRemoveDependencies_v2__cuGraphRetainUserObject__cuGraphUpload__cuGraphicsEGLRegisterImage__cuGraphicsGLRegisterBuffer__cuGraphicsGLRegisterImage__cuGraphicsMapResources__cuGraphicsResourceGetMappedEglFrame__cuGraphicsResourceGetMappedMipmappedArray__cuGraphicsResourceGetMappedPointer_v2__cuGraphicsResourceSetMapFlags_v2__cuGraphicsSubResourceGetMappedArray__cuGraphicsUnmapResources__cuGraphicsUnregisterResource__cuGraphicsVDPAURegisterOutputSurface__cuGraphicsVDPAURegisterVideoSurface__cuGreenCtxCreate__cuGreenCtxDestroy__cuGreenCtxGetDevResource__cuGreenCtxGetId__cuGreenCtxRecordEvent__cuGreenCtxStreamCreate__cuGreenCtxWaitEvent__cuImportExternalMemory__cuImportExternalSemaphore__cuInit__cuIpcCloseMemHandle__cuIpcGetEventHandle__cuIpcGetMemHandle__cuIpcOpenEventHandle__cuIpcOpenMemHandle_v2__cuKernelGetAttribute__cuKernelGetFunction__cuKernelGetLibrary__cuKernelGetName__cuKernelGetParamInfo__cuKernelSetAttribute__cuKernelSetCacheConfig__cuLaunchCooperativeKernelMultiDevice__cuLaunchCooperativeKernel__cuLaunchGridAsync__cuLaunchGrid__cuLaunchHostFunc__cuLaunchKernelEx__cuLaunchKernel__cuLaunch__cuLibraryEnumerateKernels__cuLibraryGetGlobal__cuLibraryGetKer""nelCount__cuLibraryGetKernel__cuLibraryGetManaged__cuLibraryGetModule__cuLibraryGetUnifiedFunction__cuLibraryLoadData__cuLibraryLoadFromFile__cuLibraryUnload__cuLinkAddData_v2__cuLinkAddFile_v2__cuLinkComplete__cuLinkCreate_v2__cuLinkDestroy__cuLogsCurrent__cuLogsDumpToFile__cuLogsDumpToMemory__cuLogsRegisterCallback__cuLogsUnregisterCallback__cuMemAddressFree__cuMemAddressReserve__cuMemAdvise_v2__cuMemAllocAsync__cuMemAllocFromPoolAsync__cuMemAllocHost_v2__cuMemAllocManaged__cuMemAllocPitch_v2__cuMemAlloc_v2__cuMemBatchDecompressAsync__cuMemCreate__cuMemDiscardAndPrefetchBatchAsync__cuMemDiscardBatchAsync__cuMemExportToShareableHandle__cuMemFreeAsync__cuMemFreeHost__cuMemFree_v2__cuMemGetAccess__cuMemGetAddressRange_v2__cuMemGetAllocationGranularity__cuMemGetAllocationPropertiesFromHandle__cuMemGetDefaultMemPool__cuMemGetHandleForAddressRange__cuMemGetInfo_v2__cuMemGetMemPool__cuMemHostAlloc__cuMemHostGetDevicePointer_v2__cuMemHostGetFlags__cuMemHostRegister_v2__cuMemHostUnregister__cuMemImportFromShareableHandle__cuMemMapArrayAsync__cuMemMap__cuMemPoolCreate__cuMemPoolDestroy__cuMemPoolExportPointer__cuMemPoolExportToShareableHandle__cuMemPoolGetAccess__cuMemPoolGetAttribute__cuMemPoolImportFromShareableHandle__cuMemPoolImportPointer__cuMemPoolSetAccess__cuMemPoolSetAttribute__cuMemPoolTrimTo__cuMemPrefetchAsync_v2__cuMemPrefetchBatchAsync__cuMemRangeGetAttribute__cuMemRangeGetAttributes__cuMemRelease__cuMemRetainAllocationHandle__cuMemSetAccess__cuMemSetMemPool__cuMemUnmap__cuMemcpy2DAsync_v2__cuMemcpy2DUnaligned_v2__cuMemcpy2D_v2__cuMemcpy3DAsync_v2__cuMemcpy3DBatchAsync_v2__cuMemcpy3DPeerAsync__cuMemcpy3DPeer__cuMemcpy3D_v2__cuMemcpyAsync__cuMemcpyAtoA_v2__cuMemcpyAtoD_v2__cuMemcpyAtoHAsync_v2__cuMemcpyAtoH_v2__cuMemcpyBatchAsync_v2__cuMemcpyDtoA_v2__cuMemcpyDtoDAsync_v2__cuMemcpyDtoD_v2__cuMemcpyDtoHAsync_v2__cuMemcpyDtoH_v2__cuMemcpyHtoAAsync_v2__cuMemcpyHtoA_v2__cuMemcpyHtoDAsync_v2__cuMemcpyHtoD_v2__cuMemcpyPeerAsync__cuMemcpyPeer__cuMemcpy__cuMemsetD16Asyn""c__cuMemsetD16_v2__cuMemsetD2D16Async__cuMemsetD2D16_v2__cuMemsetD2D32Async__cuMemsetD2D32_v2__cuMemsetD2D8Async__cuMemsetD2D8_v2__cuMemsetD32Async__cuMemsetD32_v2__cuMemsetD8Async__cuMemsetD8_v2__cuMipmappedArrayCreate__cuMipmappedArrayDestroy__cuMipmappedArrayGetLevel__cuMipmappedArrayGetMemoryRequirements__cuMipmappedArrayGetSparseProperties__cuModuleEnumerateFunctions__cuModuleGetFunctionCount__cuModuleGetFunction__cuModuleGetGlobal_v2__cuModuleGetLoadingMode__cuModuleGetSurfRef__cuModuleGetTexRef__cuModuleLoadDataEx__cuModuleLoadData__cuModuleLoadFatBinary__cuModuleLoad__cuModuleUnload__cuMulticastAddDevice__cuMulticastBindAddr__cuMulticastBindAddr_v2__cuMulticastBindMem__cuMulticastBindMem_v2__cuMulticastCreate__cuMulticastGetGranularity__cuMulticastUnbind__cuOccupancyAvailableDynamicSMemPerBlock__cuOccupancyMaxActiveBlocksPerMultiprocessor__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags__cuOccupancyMaxActiveClusters__cuOccupancyMaxPotentialBlockSize__cuOccupancyMaxPotentialBlockSizeWithFlags__cuOccupancyMaxPotentialClusterSize__cuParamSetSize__cuParamSetTexRef__cuParamSetf__cuParamSeti__cuParamSetv__cuPointerGetAttribute__cuPointerGetAttributes__cuPointerSetAttribute__cuProfilerStart__cuProfilerStop__cuSignalExternalSemaphoresAsync__cuStreamAddCallback__cuStreamAttachMemAsync__cuStreamBatchMemOp_v2__cuStreamBeginCaptureToGraph__cuStreamBeginCapture_v2__cuStreamCopyAttributes__cuStreamCreateWithPriority__cuStreamCreate__cuStreamDestroy_v2__cuStreamEndCapture__cuStreamGetAttribute__cuStreamGetCaptureInfo_v3__cuStreamGetCtx__cuStreamGetCtx_v2__cuStreamGetDevResource__cuStreamGetDevice__cuStreamGetFlags__cuStreamGetGreenCtx__cuStreamGetId__cuStreamGetPriority__cuStreamIsCapturing__cuStreamQuery__cuStreamSetAttribute__cuStreamSynchronize__cuStreamUpdateCaptureDependencies_v2__cuStreamWaitEvent__cuStreamWaitValue32_v2__cuStreamWaitValue64_v2__cuStreamWriteValue32_v2__cuStreamWriteValue64_v2__cuSurfObjectCreate__cuSurfObjectDestroy__cuSurfObjectGetResourceDesc""__cuSurfRefGetArray__cuSurfRefSetArray__cuTensorMapEncodeIm2colWide__cuTensorMapEncodeIm2col__cuTensorMapEncodeTiled__cuTensorMapReplaceAddress__cuTexObjectCreate__cuTexObjectDestroy__cuTexObjectGetResourceDesc__cuTexObjectGetResourceViewDesc__cuTexObjectGetTextureDesc__cuTexRefCreate__cuTexRefDestroy__cuTexRefGetAddressMode__cuTexRefGetAddress_v2__cuTexRefGetArray__cuTexRefGetBorderColor__cuTexRefGetFilterMode__cuTexRefGetFlags__cuTexRefGetFormat__cuTexRefGetMaxAnisotropy__cuTexRefGetMipmapFilterMode__cuTexRefGetMipmapLevelBias__cuTexRefGetMipmapLevelClamp__cuTexRefGetMipmappedArray__cuTexRefSetAddress2D_v3__cuTexRefSetAddressMode__cuTexRefSetAddress_v2__cuTexRefSetArray__cuTexRefSetBorderColor__cuTexRefSetFilterMode__cuTexRefSetFlags__cuTexRefSetFormat__cuTexRefSetMaxAnisotropy__cuTexRefSetMipmapFilterMode__cuTexRefSetMipmapLevelBias__cuTexRefSetMipmapLevelClamp__cuTexRefSetMipmappedArray__cuThreadExchangeStreamCaptureMode__cuUserObjectCreate__cuUserObjectRelease__cuUserObjectRetain__cuVDPAUCtxCreate_v2__cuVDPAUGetDevice__cuWaitExternalSemaphoresAsynccuda.bindings._bindings.cydriverdefaultencoding__enter____exit____func__getenv_inspect_function_pointer_inspect_function_pointers_is_coroutineitems__main__maxsize__module__name__name__ospop__pyx_capi____qualname____set_name__setdefaultsys__test__threadingvaluesCUresult (CUDA_ARRAY3D_DESCRIPTOR *, CUarray)\000CUresult (CUDA_ARRAY_DESCRIPTOR *, CUarray)\000CUresult (CUDA_ARRAY_MEMORY_REQUIREMENTS *, CUarray, CUdevice)\000CUresult (CUDA_ARRAY_MEMORY_REQUIREMENTS *, CUmipmappedArray, CUdevice)\000CUresult (CUDA_ARRAY_SPARSE_PROPERTIES *, CUarray)\000CUresult (CUDA_ARRAY_SPARSE_PROPERTIES *, CUmipmappedArray)\000CUresult (CUDA_LAUNCH_PARAMS *, unsigned int, unsigned int)\000CUresult (CUDA_MEMCPY2D const *)\000\000CUresult (CUDA_MEMCPY2D const *, CUstream)\000CUresult (CUDA_MEMCPY3D const *)\000CUresult (CUDA_MEMCPY3D const *, CUstream)\000CUresult (CUDA_MEMCPY3D_PEER const *)\000CUresult (CUDA_MEMCPY3D_PEER const *, CUstre""am)\000CUresult (CUDA_RESOURCE_DESC *, CUsurfObject)\000CUresult (CUDA_RESOURCE_DESC *, CUtexObject)\000CUresult (CUDA_RESOURCE_VIEW_DESC *, CUtexObject)\000CUresult (CUDA_TEXTURE_DESC *, CUtexObject)\000CUresult (CUaddress_mode *, CUtexref, int)\000CUresult (CUarray *, CUDA_ARRAY3D_DESCRIPTOR const *)\000CUresult (CUarray *, CUDA_ARRAY_DESCRIPTOR const *)\000CUresult (CUarray *, CUarray, unsigned int)\000CUresult (CUarray *, CUgraphicsResource, unsigned int, unsigned int)\000CUresult (CUarray *, CUmipmappedArray, unsigned int)\000CUresult (CUarray *, CUsurfref)\000CUresult (CUarray *, CUtexref)\000CUresult (CUarray)\000CUresult (CUarray, size_t, CUarray, size_t, size_t)\000CUresult (CUarray, size_t, CUdeviceptr, size_t)\000CUresult (CUarray, size_t, void const *, size_t)\000CUresult (CUarray, size_t, void const *, size_t, CUstream)\000CUresult (CUarrayMapInfo *, unsigned int, CUstream)\000CUresult (CUarray_format *, int *, CUtexref)\000CUresult (CUcontext *)\000\000CUresult (CUcontext *, CUctxCreateParams *, unsigned int, CUdevice)\000CUresult (CUcontext *, CUdevice)\000CUresult (CUcontext *, CUgreenCtx)\000CUresult (CUcontext *, unsigned int)\000CUresult (CUcontext *, unsigned int, CUdevice, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *)\000CUresult (CUcontext)\000\000\000\000\000\000CUresult (CUcontext, CUdevResource *, CUdevResourceType)\000CUresult (CUcontext, CUevent)\000\000CUresult (CUcontext, unsigned PY_LONG_LONG *)\000CUresult (CUcontext, unsigned int *)\000CUresult (CUcontext, unsigned int)\000CUresult (CUcoredumpSettings, void *, size_t *)\000\000\000\000CUresult (CUdevResource *, unsigned int *, CUdevResource const *, CUdevResource *, unsigned int, unsigned int)\000CUresult (CUdevResource *, unsigned int, CUdevResource const *, CUdevResource *, unsigned int, CU_DEV_SM_RESOURCE_GROUP_PARAMS *)\000CUresult (CUdevResourceDesc *, CUdevResource *, unsigned int)\000CUresult (CUdevice *)\000CUresult (CUdevi""ce *, CUcontext)\000CUresult (CUdevice *, __pyx_t_4cuda_8bindings_8cydriver_VdpDevice, __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *)\000CUresult (CUdevice *, char const *)\000CUresult (CUdevice *, int)\000CUresult (CUdevice)\000\000\000CUresult (CUdevice, CUasyncCallback, void *, CUasyncCallbackHandle *)\000CUresult (CUdevice, CUasyncCallbackHandle)\000CUresult (CUdevice, CUdevResource *, CUdevResourceType)\000CUresult (CUdevice, CUgraphMem_attribute, void *)\000\000CUresult (CUdevice, CUmemoryPool)\000CUresult (CUdevice, unsigned int *, int *)\000CUresult (CUdevice, unsigned int)\000CUresult (CUdeviceptr *, CUdeviceptr *, size_t *, size_t, CUmemcpyAttributes *, size_t *, size_t, CUstream)\000CUresult (CUdeviceptr *, CUexternalMemory, CUDA_EXTERNAL_MEMORY_BUFFER_DESC const *)\000CUresult (CUdeviceptr *, CUipcMemHandle, unsigned int)\000CUresult (CUdeviceptr *, CUmemoryPool, CUmemPoolPtrExportData *)\000CUresult (CUdeviceptr *, CUtexref)\000CUresult (CUdeviceptr *, size_t *, CUdeviceptr)\000CUresult (CUdeviceptr *, size_t *, CUgraphicsResource)\000CUresult (CUdeviceptr *, size_t *, CUlibrary, char const *)\000\000CUresult (CUdeviceptr *, size_t *, CUmodule, char const *)\000CUresult (CUdeviceptr *, size_t *, size_t, CUmemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, CUstream)\000\000CUresult (CUdeviceptr *, size_t *, size_t, size_t, unsigned int)\000CUresult (CUdeviceptr *, size_t *, size_t, unsigned PY_LONG_LONG, CUstream)\000CUresult (CUdeviceptr *, size_t)\000CUresult (CUdeviceptr *, size_t, CUmemoryPool, CUstream)\000CUresult (CUdeviceptr *, size_t, CUstream)\000CUresult (CUdeviceptr *, size_t, size_t, CUdeviceptr, unsigned PY_LONG_LONG)\000CUresult (CUdeviceptr *, size_t, unsigned int)\000CUresult (CUdeviceptr *, void *, unsigned int)\000CUresult (CUdeviceptr)\000\000CUresult (CUdeviceptr, CUarray, size_t, size_t)\000CUresult (CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t)\000CUresult (CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size""_t, CUstream)\000CUresult (CUdeviceptr, CUdeviceptr, size_t)\000\000CUresult (CUdeviceptr, CUdeviceptr, size_t, CUstream)\000\000CUresult (CUdeviceptr, CUstream)\000CUresult (CUdeviceptr, size_t)\000\000CUresult (CUdeviceptr, size_t, CUmemAccessDesc const *, size_t)\000CUresult (CUdeviceptr, size_t, CUmemLocation, unsigned int, CUstream)\000CUresult (CUdeviceptr, size_t, CUmem_advise, CUmemLocation)\000CUresult (CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned PY_LONG_LONG)\000CUresult (CUdeviceptr, size_t, unsigned char, size_t, size_t)\000CUresult (CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream)\000CUresult (CUdeviceptr, size_t, unsigned int, size_t, size_t)\000CUresult (CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream)\000CUresult (CUdeviceptr, size_t, unsigned short, size_t, size_t)\000CUresult (CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream)\000CUresult (CUdeviceptr, unsigned char, size_t)\000CUresult (CUdeviceptr, unsigned char, size_t, CUstream)\000CUresult (CUdeviceptr, unsigned int, size_t)\000CUresult (CUdeviceptr, unsigned int, size_t, CUstream)\000CUresult (CUdeviceptr, unsigned short, size_t)\000CUresult (CUdeviceptr, unsigned short, size_t, CUstream)\000CUresult (CUdeviceptr, void const *, size_t)\000CUresult (CUdeviceptr, void const *, size_t, CUstream)\000CUresult (CUdevprop *, CUdevice)\000CUresult (CUevent *, CUipcEventHandle)\000CUresult (CUevent *, __pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR, unsigned int)\000CUresult (CUevent *, unsigned int)\000CUresult (CUevent)\000\000\000CUresult (CUevent, CUstream)\000CUresult (CUevent, CUstream, unsigned int)\000CUresult (CUexecAffinityParam *, CUexecAffinityType)\000CUresult (CUexternalMemory *, CUDA_EXTERNAL_MEMORY_HANDLE_DESC const *)\000CUresult (CUexternalMemory)\000CUresult (CUexternalSemaphore *, CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC const *)\000CUresult (CUexternalSemaphore const *, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS const *, unsigned int"", CUstream)\000CUresult (CUexternalSemaphore const *, CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS const *, unsigned int, CUstream)\000CUresult (CUexternalSemaphore)\000CUresult (CUfilter_mode *, CUtexref)\000\000CUresult (CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope)\000CUresult (CUfunc_cache *)\000CUresult (CUfunc_cache)\000CUresult (CUfunction *, CUkernel)\000CUresult (CUfunction *, CUmodule, char const *)\000CUresult (CUfunction *, unsigned int, CUmodule)\000CUresult (CUfunction)\000\000CUresult (CUfunction, CUfunc_cache)\000CUresult (CUfunction, CUfunction_attribute, int)\000CUresult (CUfunction, CUsharedconfig)\000CUresult (CUfunction, int, CUtexref)\000CUresult (CUfunction, int, float)\000CUresult (CUfunction, int, int)\000CUresult (CUfunction, int, int, CUstream)\000CUresult (CUfunction, int, int, int)\000CUresult (CUfunction, int, unsigned int)\000CUresult (CUfunction, int, void *, unsigned int)\000CUresult (CUfunction, size_t, size_t *, size_t *)\000CUresult (CUfunction, unsigned int)\000\000CUresult (CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **)\000CUresult (CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **)\000CUresult (CUfunctionLoadingState *, CUfunction)\000CUresult (CUfunction_attribute, int, CUkernel, CUdevice)\000CUresult (CUgraph *, CUgraph)\000CUresult (CUgraph *, unsigned int)\000CUresult (CUgraph)\000CUresult (CUgraph, CUgraphNode *, CUgraphNode *, CUgraphEdgeData *, size_t *)\000CUresult (CUgraph, CUgraphNode *, size_t *)\000\000CUresult (CUgraph, CUgraphNode const *, CUgraphNode const *, CUgraphEdgeData const *, size_t)\000\000CUresult (CUgraph, CUuserObject, unsigned int)\000CUresult (CUgraph, CUuserObject, unsigned int, unsigned int)\000CUresult (CUgraph, char const *, unsigned int)\000CUresult (CUgraph, unsigned int *)\000CUresult (CUgraphConditionalHandle *, C""Ugraph, CUcontext, unsigned int, unsigned int)\000CUresult (CUgraphExec *, CUgraph, CUDA_GRAPH_INSTANTIATE_PARAMS *)\000CUresult (CUgraphExec *, CUgraph, unsigned PY_LONG_LONG)\000CUresult (CUgraphExec)\000CUresult (CUgraphExec, CUgraph, CUgraphExecUpdateResultInfo *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_HOST_NODE_PARAMS const *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_KERNEL_NODE_PARAMS const *)\000CUresult (CUgraphExec, CUgraphNode, CUDA_MEMCPY3D const *, CUcontext)\000CUresult (CUgraphExec, CUgraphNode, CUDA_MEMSET_NODE_PARAMS const *, CUcontext)\000CUresult (CUgraphExec, CUgraphNode, CUevent)\000\000CUresult (CUgraphExec, CUgraphNode, CUgraph)\000CUresult (CUgraphExec, CUgraphNode, CUgraphNodeParams *)\000CUresult (CUgraphExec, CUgraphNode, unsigned int *)\000CUresult (CUgraphExec, CUgraphNode, unsigned int)\000CUresult (CUgraphExec, CUstream)\000\000CUresult (CUgraphExec, cuuint64_t *)\000CUresult (CUgraphExec, unsigned int *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, CUgraphEdgeData const *, size_t, CUgraphNodeParams *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_BATCH_MEM_OP_NODE_PARAMS const *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_HOST_NODE_PARAMS const *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_KERNEL_NODE_PARAMS const *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEMCPY3D const *, CUcontext)\000CUresult (CUg""raphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEMSET_NODE_PARAMS const *, CUcontext)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUDA_MEM_ALLOC_NODE_PARAMS *)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUdeviceptr)\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUevent)\000\000CUresult (CUgraphNode *, CUgraph, CUgraphNode const *, size_t, CUgraph)\000CUresult (CUgraphNode *, CUgraphNode, CUgraph)\000CUresult (CUgraphNode)\000CUresult (CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_BATCH_MEM_OP_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_HOST_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_HOST_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_KERNEL_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_KERNEL_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_MEMCPY3D *)\000CUresult (CUgraphNode, CUDA_MEMCPY3D const *)\000CUresult (CUgraphNode, CUDA_MEMSET_NODE_PARAMS *)\000CUresult (CUgraphNode, CUDA_MEMSET_NODE_PARAMS const *)\000CUresult (CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS *)\000CUresult (CUgraphNode, CUdeviceptr *)\000CUresult (CUgraphNode, CUevent *)\000\000CUresult (CUgraphNode, CUevent)\000\000CUresult (CUgraphNode, CUgraph *)\000\000CUresult (CUgraphNode, CUgraphNode *, CUgraphEdgeData *, size_t *)\000\000CUresult (CUgraphNode, CUgraphNode)\000CUresult (CUgraphNode, CUgraphNodeParams *)\000CUresult (CUgraphNode, CUgraphNodeType *)\000CUresult (CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue *)\000CUresult (CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue const *)\000CUresult (CUgraphNode, unsigned PY_LONG_LONG *)\000CUresult (CUgraphNode, unsigned int *)\000CUresult (CUgraphicsResource *, __""pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR, unsigned int)\000CUresult (CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_GLuint, __pyx_t_4cuda_8bindings_8cydriver_GLenum, unsigned int)\000CUresult (CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_GLuint, unsigned int)\000CUresult (CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface, unsigned int)\000CUresult (CUgraphicsResource *, __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface, unsigned int)\000CUresult (CUgraphicsResource)\000CUresult (CUgraphicsResource, unsigned int)\000CUresult (CUgreenCtx *, CUdevResourceDesc, CUdevice, unsigned int)\000CUresult (CUgreenCtx)\000CUresult (CUgreenCtx, CUdevResource *, CUdevResourceType)\000CUresult (CUgreenCtx, CUevent)\000\000CUresult (CUgreenCtx, unsigned PY_LONG_LONG *)\000CUresult (CUipcEventHandle *, CUevent)\000CUresult (CUipcMemHandle *, CUdeviceptr)\000CUresult (CUkernel *, CUlibrary, char const *)\000CUresult (CUkernel *, unsigned int, CUlibrary)\000CUresult (CUkernel, CUfunc_cache, CUdevice)\000CUresult (CUkernel, size_t, size_t *, size_t *)\000CUresult (CUlaunchConfig const *, CUfunction, void **, void **)\000CUresult (CUlibrary *, CUkernel)\000CUresult (CUlibrary *, char const *, CUjit_option *, void **, unsigned int, CUlibraryOption *, void **, unsigned int)\000CUresult (CUlibrary *, void const *, CUjit_option *, void **, unsigned int, CUlibraryOption *, void **, unsigned int)\000CUresult (CUlibrary)\000CUresult (CUlimit, size_t)\000CUresult (CUlinkState)\000CUresult (CUlinkState, CUjitInputType, char const *, unsigned int, CUjit_option *, void **)\000CUresult (CUlinkState, CUjitInputType, void *, size_t, char const *, unsigned int, CUjit_option *, void **)\000CUresult (CUlinkState, void **, size_t *)\000CUresult (CUlogIterator *, char *, size_t *, unsigned int)\000CUresult (CUlogIterator *, char const *, unsigned int)\000CUresult (CUlogIterator *, unsigned int)\000CUresult (CUlogsCallback, void *, CUlogsCallbackHandle *)\000CUre""sult (CUlogsCallbackHandle)\000CUresult (CUmemAccess_flags *, CUmemoryPool, CUmemLocation *)\000CUresult (CUmemAllocationProp *, CUmemGenericAllocationHandle)\000CUresult (CUmemDecompressParams *, size_t, unsigned int, size_t *, CUstream)\000CUresult (CUmemGenericAllocationHandle *, CUmulticastObjectProp const *)\000CUresult (CUmemGenericAllocationHandle *, size_t, CUmemAllocationProp const *, unsigned PY_LONG_LONG)\000CUresult (CUmemGenericAllocationHandle *, void *)\000CUresult (CUmemGenericAllocationHandle *, void *, CUmemAllocationHandleType)\000CUresult (CUmemGenericAllocationHandle)\000CUresult (CUmemGenericAllocationHandle, CUdevice)\000CUresult (CUmemGenericAllocationHandle, CUdevice, size_t, CUdeviceptr, size_t, unsigned PY_LONG_LONG)\000CUresult (CUmemGenericAllocationHandle, CUdevice, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned PY_LONG_LONG)\000CUresult (CUmemGenericAllocationHandle, CUdevice, size_t, size_t)\000CUresult (CUmemGenericAllocationHandle, size_t, CUdeviceptr, size_t, unsigned PY_LONG_LONG)\000CUresult (CUmemGenericAllocationHandle, size_t, CUmemGenericAllocationHandle, size_t, size_t, unsigned PY_LONG_LONG)\000CUresult (CUmemLocation *, CUmemAllocationType, CUmemoryPool)\000CUresult (CUmemPoolPtrExportData *, CUdeviceptr)\000CUresult (CUmemoryPool *, CUdevice)\000\000CUresult (CUmemoryPool *, CUmemLocation *, CUmemAllocationType)\000\000CUresult (CUmemoryPool *, CUmemPoolProps const *)\000CUresult (CUmemoryPool *, void *, CUmemAllocationHandleType, unsigned PY_LONG_LONG)\000CUresult (CUmemoryPool)\000CUresult (CUmemoryPool, CUmemAccessDesc const *, size_t)\000CUresult (CUmemoryPool, CUmemPool_attribute, void *)\000\000CUresult (CUmemoryPool, size_t)\000CUresult (CUmipmappedArray *, CUDA_ARRAY3D_DESCRIPTOR const *, unsigned int)\000CUresult (CUmipmappedArray *, CUexternalMemory, CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC const *)\000CUresult (CUmipmappedArray *, CUgraphicsResource)\000CUresult (CUmipmappedArray *, CUtexref)""\000CUresult (CUmipmappedArray)\000CUresult (CUmodule *, CUfunction)\000CUresult (CUmodule *, CUlibrary)\000CUresult (CUmodule *, char const *)\000CUresult (CUmodule *, void const *)\000\000CUresult (CUmodule *, void const *, unsigned int, CUjit_option *, void **)\000CUresult (CUmodule)\000CUresult (CUmoduleLoadingMode *)\000CUresult (CUresult, char const **)\000\000CUresult (CUsharedconfig *)\000CUresult (CUsharedconfig)\000CUresult (CUstream *, CUgreenCtx, unsigned int, int)\000CUresult (CUstream *, unsigned int)\000CUresult (CUstream *, unsigned int, int)\000CUresult (CUstream)\000\000\000CUresult (CUstream, CUcontext *)\000CUresult (CUstream, CUcontext *, CUgreenCtx *)\000CUresult (CUstream, CUdevResource *, CUdevResourceType)\000CUresult (CUstream, CUdevice *)\000CUresult (CUstream, CUdeviceptr, cuuint32_t, unsigned int)\000\000CUresult (CUstream, CUdeviceptr, cuuint64_t, unsigned int)\000\000CUresult (CUstream, CUdeviceptr, size_t, unsigned int)\000CUresult (CUstream, CUevent, unsigned int)\000CUresult (CUstream, CUgraph *)\000CUresult (CUstream, CUgraph, CUgraphNode const *, CUgraphEdgeData const *, size_t, CUstreamCaptureMode)\000CUresult (CUstream, CUgraphNode *, CUgraphEdgeData const *, size_t, unsigned int)\000CUresult (CUstream, CUgreenCtx *)\000CUresult (CUstream, CUhostFn, void *)\000CUresult (CUstream, CUstream)\000CUresult (CUstream, CUstreamAttrID, CUstreamAttrValue *)\000CUresult (CUstream, CUstreamAttrID, CUstreamAttrValue const *)\000CUresult (CUstream, CUstreamCallback, void *, unsigned int)\000CUresult (CUstream, CUstreamCaptureMode)\000CUresult (CUstream, CUstreamCaptureStatus *)\000CUresult (CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, CUgraphNode const **, CUgraphEdgeData const **, size_t *)\000CUresult (CUstream, int *)\000CUresult (CUstream, unsigned PY_LONG_LONG *)\000CUresult (CUstream, unsigned int *)\000CUresult (CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int)\000CUresult (CUstreamCaptureMode *)\000CUre""sult (CUsurfObject *, CUDA_RESOURCE_DESC const *)\000CUresult (CUsurfObject)\000CUresult (CUsurfref *, CUmodule, char const *)\000CUresult (CUsurfref, CUarray, unsigned int)\000CUresult (CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, cuuint32_t const *, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill)\000CUresult (CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, int const *, int const *, cuuint32_t, cuuint32_t, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill)\000CUresult (CUtensorMap *, CUtensorMapDataType, cuuint32_t, void *, cuuint64_t const *, cuuint64_t const *, int, int, cuuint32_t, cuuint32_t, cuuint32_t const *, CUtensorMapInterleave, CUtensorMapIm2ColWideMode, CUtensorMapSwizzle, CUtensorMapL2promotion, CUtensorMapFloatOOBfill)\000CUresult (CUtensorMap *, void *)\000CUresult (CUtexObject *, CUDA_RESOURCE_DESC const *, CUDA_TEXTURE_DESC const *, CUDA_RESOURCE_VIEW_DESC const *)\000CUresult (CUtexObject)\000CUresult (CUtexref *)\000CUresult (CUtexref *, CUmodule, char const *)\000CUresult (CUtexref)\000CUresult (CUtexref, CUDA_ARRAY_DESCRIPTOR const *, CUdeviceptr, size_t)\000CUresult (CUtexref, CUarray, unsigned int)\000CUresult (CUtexref, CUarray_format, int)\000CUresult (CUtexref, CUfilter_mode)\000\000CUresult (CUtexref, CUmipmappedArray, unsigned int)\000CUresult (CUtexref, float *)\000CUresult (CUtexref, float)\000CUresult (CUtexref, float, float)\000CUresult (CUtexref, int, CUaddress_mode)\000CUresult (CUtexref, unsigned int)\000\000CUresult (CUuserObject *, void *, CUhostFn, unsigned int, unsigned int)\000CUresult (CUuserObject, unsigned int)\000\000CUresult (CUuuid *, CUdevice)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *, CUgraphicsResource, unsigned int, unsigned int)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CU""eglStreamConnection *)\000\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, CUgraphicsResource *, CUstream *, unsigned int)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, CUgraphicsResource, CUstream *)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame *, CUstream *)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame, CUstream *)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR, __pyx_t_4cuda_8bindings_8cydriver_EGLint, __pyx_t_4cuda_8bindings_8cydriver_EGLint)\000CUresult (__pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *, __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR, unsigned int)\000CUresult (char *, int, CUdevice)\000\000CUresult (char *, unsigned int *, CUdevice)\000CUresult (char const **, CUfunction)\000CUresult (char const **, CUkernel)\000CUresult (char const *, void **, int, cuuint64_t, CUdriverProcAddressQueryResult *)\000CUresult (float *, CUevent, CUevent)\000CUresult (float *, CUtexref)\000\000CUresult (float *, float *, CUtexref)\000CUresult (int *)\000\000CUresult (int *, CUdevice, CUdevice)\000CUresult (int *, CUdevice_P2PAttribute, CUdevice, CUdevice)\000CUresult (int *, CUdevice_attribute, CUdevice)\000CUresult (int *, CUexecAffinityType, CUdevice)\000CUresult (int *, CUfunction, CUlaunchConfig const *)\000\000CUresult (int *, CUfunction, int, size_t)\000CUresult (int *, CUfunction, int, size_t, unsigned int)\000CUresult (int *, CUfunction_attribute, CUfunction)\000CUresult (int *, CUfunction_attribute, CUkernel, CUdevice)\000CUresult (int *, CUtexref)\000CUresult (int *, int *)\000CUresult (int *, int *, CUdevice)\000CUresult (int *, int *, CUfunction, CUoccupancyB2DSize, ""size_t, int)\000CUresult (int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int)\000CUresult (int, CUcheckpointCheckpointArgs *)\000CUresult (int, CUcheckpointLockArgs *)\000CUresult (int, CUcheckpointRestoreArgs *)\000CUresult (int, CUcheckpointUnlockArgs *)\000CUresult (int, CUprocessState *)\000CUresult (int, int *)\000CUresult (size_t *, CUarray_format, unsigned int, CUdevice)\000CUresult (size_t *, CUdevice)\000CUresult (size_t *, CUfunction, int, int)\000CUresult (size_t *, CUlimit)\000CUresult (size_t *, CUmemAllocationProp const *, CUmemAllocationGranularity_flags)\000CUresult (size_t *, CUmulticastObjectProp const *, CUmulticastGranularity_flags)\000CUresult (size_t *, CUtexref, CUdeviceptr, size_t)\000CUresult (size_t *, size_t *)\000CUresult (size_t, CUDA_MEMCPY3D_BATCH_OP *, unsigned PY_LONG_LONG, CUstream)\000CUresult (unsigned PY_LONG_LONG *, CUmemLocation const *, CUdeviceptr)\000CUresult (unsigned int *)\000CUresult (unsigned int *, CUatomicOperation const *, unsigned int, CUdevice)\000CUresult (unsigned int *, CUatomicOperation const *, unsigned int, CUdevice, CUdevice)\000CUresult (unsigned int *, CUdevice *, unsigned int, __pyx_t_4cuda_8bindings_8cydriver_CUGLDeviceList)\000CUresult (unsigned int *, CUlibrary)\000CUresult (unsigned int *, CUmodule)\000CUresult (unsigned int *, CUtexref)\000CUresult (unsigned int *, void *)\000CUresult (unsigned int)\000\000CUresult (unsigned int, CUgraphicsResource *, CUstream)\000\000CUresult (unsigned int, CUjit_option *, void **, CUlinkState *)\000CUresult (unsigned int, CUpointer_attribute *, void **, CUdeviceptr)\000CUresult (void *)\000\000CUresult (void **, CUlibrary, char const *)\000CUresult (void **, size_t *, CUmem_range_attribute *, size_t, CUdeviceptr, size_t)\000CUresult (void **, size_t)\000CUresult (void **, size_t, unsigned int)\000CUresult (void *, CUarray, size_t, size_t)\000CUresult (void *, CUarray, size_t, size_t, CUstream)\000CUresult (void *, CUdevice, int)\000CUresult (vo""id *, CUdeviceptr, size_t)\000CUresult (void *, CUdeviceptr, size_t, CUmemRangeHandleType, unsigned PY_LONG_LONG)\000CUresult (void *, CUdeviceptr, size_t, CUstream)\000CUresult (void *, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned PY_LONG_LONG)\000CUresult (void *, CUmemoryPool, CUmemAllocationHandleType, unsigned PY_LONG_LONG)\000CUresult (void *, CUpointer_attribute, CUdeviceptr)\000CUresult (void *, size_t, CUmem_range_attribute, CUdeviceptr, size_t)\000CUresult (void *, size_t, unsigned int)\000CUresult (void const **, CUuuid const *)\000CUresult (void const *, CUpointer_attribute, CUdeviceptr)\000CUresult (void)\000\000\000\000_cuArray3DGetDescriptor_v2\000_cuArrayGetDescriptor_v2\000_cuArrayGetMemoryRequirements\000_cuMipmappedArrayGetMemoryRequirements\000_cuArrayGetSparseProperties\000_cuMipmappedArrayGetSparseProperties\000_cuLaunchCooperativeKernelMultiDevice\000_cuMemcpy2DUnaligned_v2\000_cuMemcpy2D_v2\000_cuMemcpy2DAsync_v2\000_cuMemcpy3D_v2\000_cuMemcpy3DAsync_v2\000_cuMemcpy3DPeer\000_cuMemcpy3DPeerAsync\000_cuSurfObjectGetResourceDesc\000_cuTexObjectGetResourceDesc\000_cuTexObjectGetResourceViewDesc\000_cuTexObjectGetTextureDesc\000_cuTexRefGetAddressMode\000_cuArray3DCreate_v2\000_cuArrayCreate_v2\000_cuArrayGetPlane\000_cuGraphicsSubResourceGetMappedArray\000_cuMipmappedArrayGetLevel\000_cuSurfRefGetArray\000_cuTexRefGetArray\000_cuArrayDestroy\000_cuMemcpyAtoA_v2\000_cuMemcpyDtoA_v2\000_cuMemcpyHtoA_v2\000_cuMemcpyHtoAAsync_v2\000_cuMemMapArrayAsync\000_cuTexRefGetFormat\000_cuCtxGetCurrent\000_cuCtxPopCurrent_v2\000_cuCtxCreate_v4\000_cuDevicePrimaryCtxRetain\000_cuCtxFromGreenCtx\000_cuCtxAttach\000_cuVDPAUCtxCreate_v2\000_cuCtxDestroy_v2\000_cuCtxDetach\000_cuCtxDisablePeerAccess\000_cuCtxPushCurrent_v2\000_cuCtxSetCurrent\000_cuCtxSynchronize_v2\000_cuCtxGetDevResource\000_cuCtxRecordEvent\000_cuCtxWaitEvent\000_cuCtxGetId\000_cuCtxGetApiVersion\000_cuCtxEnablePeerAccess\000_cuCoredumpGetAttribute\000_cuCoredumpGetAttribut""eGlobal\000_cuCoredumpSetAttribute\000_cuCoredumpSetAttributeGlobal\000_cuDevSmResourceSplitByCount\000_cuDevSmResourceSplit\000_cuDevResourceGenerateDesc\000_cuCtxGetDevice\000_cuCtxGetDevice_v2\000_cuVDPAUGetDevice\000_cuDeviceGetByPCIBusId\000_cuDeviceGet\000_cuDeviceGraphMemTrim\000_cuDevicePrimaryCtxRelease_v2\000_cuDevicePrimaryCtxReset_v2\000_cuDeviceRegisterAsyncNotification\000_cuDeviceUnregisterAsyncNotification\000_cuDeviceGetDevResource\000_cuDeviceGetGraphMemAttribute\000_cuDeviceSetGraphMemAttribute\000_cuDeviceSetMemPool\000_cuDevicePrimaryCtxGetState\000_cuDevicePrimaryCtxSetFlags_v2\000_cuMemcpyBatchAsync_v2\000_cuExternalMemoryGetMappedBuffer\000_cuIpcOpenMemHandle_v2\000_cuMemPoolImportPointer\000_cuTexRefGetAddress_v2\000_cuMemGetAddressRange_v2\000_cuGraphicsResourceGetMappedPointer_v2\000_cuLibraryGetGlobal\000_cuLibraryGetManaged\000_cuModuleGetGlobal_v2\000_cuMemDiscardAndPrefetchBatchAsync\000_cuMemPrefetchBatchAsync\000_cuMemAllocPitch_v2\000_cuMemDiscardBatchAsync\000_cuMemAlloc_v2\000_cuMemAllocFromPoolAsync\000_cuMemAllocAsync\000_cuMemAddressReserve\000_cuMemAllocManaged\000_cuMemHostGetDevicePointer_v2\000_cuIpcCloseMemHandle\000_cuMemFree_v2\000_cuMemcpyAtoD_v2\000_cuMemcpyPeer\000_cuMemcpyPeerAsync\000_cuMemcpy\000_cuMemcpyDtoD_v2\000_cuMemcpyAsync\000_cuMemcpyDtoDAsync_v2\000_cuMemFreeAsync\000_cuMemAddressFree\000_cuMemUnmap\000_cuMemSetAccess\000_cuMemPrefetchAsync_v2\000_cuMemAdvise_v2\000_cuMemMap\000_cuMemsetD2D8_v2\000_cuMemsetD2D8Async\000_cuMemsetD2D32_v2\000_cuMemsetD2D32Async\000_cuMemsetD2D16_v2\000_cuMemsetD2D16Async\000_cuMemsetD8_v2\000_cuMemsetD8Async\000_cuMemsetD32_v2\000_cuMemsetD32Async\000_cuMemsetD16_v2\000_cuMemsetD16Async\000_cuMemcpyHtoD_v2\000_cuMemcpyHtoDAsync_v2\000_cuDeviceGetProperties\000_cuIpcOpenEventHandle\000_cuEventCreateFromEGLSync\000_cuEventCreate\000_cuEventDestroy_v2\000_cuEventQuery\000_cuEventSynchronize\000_cuEventRecord\000_cuEventRecordWithFlags\000_cuCtxGetExecAffinity\000_cuImportExtern""alMemory\000_cuDestroyExternalMemory\000_cuImportExternalSemaphore\000_cuSignalExternalSemaphoresAsync\000_cuWaitExternalSemaphoresAsync\000_cuDestroyExternalSemaphore\000_cuTexRefGetFilterMode\000_cuTexRefGetMipmapFilterMode\000_cuFlushGPUDirectRDMAWrites\000_cuCtxGetCacheConfig\000_cuCtxSetCacheConfig\000_cuKernelGetFunction\000_cuModuleGetFunction\000_cuModuleEnumerateFunctions\000_cuFuncLoad\000_cuLaunch\000_cuFuncSetCacheConfig\000_cuFuncSetAttribute\000_cuFuncSetSharedMemConfig\000_cuParamSetTexRef\000_cuParamSetf\000_cuLaunchGrid\000_cuLaunchGridAsync\000_cuFuncSetBlockShape\000_cuParamSeti\000_cuParamSetv\000_cuFuncGetParamInfo\000_cuFuncSetSharedSize\000_cuParamSetSize\000_cuLaunchCooperativeKernel\000_cuLaunchKernel\000_cuFuncIsLoaded\000_cuKernelSetAttribute\000_cuGraphClone\000_cuGraphCreate\000_cuGraphDestroy\000_cuGraphGetEdges_v2\000_cuGraphGetNodes\000_cuGraphGetRootNodes\000_cuGraphAddDependencies_v2\000_cuGraphRemoveDependencies_v2\000_cuGraphReleaseUserObject\000_cuGraphRetainUserObject\000_cuGraphDebugDotPrint\000_cuGraphGetId\000_cuGraphConditionalHandleCreate\000_cuGraphInstantiateWithParams\000_cuGraphInstantiateWithFlags\000_cuGraphExecDestroy\000_cuGraphExecUpdate_v2\000_cuGraphExecBatchMemOpNodeSetParams\000_cuGraphExecExternalSemaphoresSignalNodeSetParams\000_cuGraphExecExternalSemaphoresWaitNodeSetParams\000_cuGraphExecHostNodeSetParams\000_cuGraphExecKernelNodeSetParams_v2\000_cuGraphExecMemcpyNodeSetParams\000_cuGraphExecMemsetNodeSetParams\000_cuGraphExecEventRecordNodeSetEvent\000_cuGraphExecEventWaitNodeSetEvent\000_cuGraphExecChildGraphNodeSetParams\000_cuGraphExecNodeSetParams\000_cuGraphNodeGetEnabled\000_cuGraphNodeSetEnabled\000_cuGraphLaunch\000_cuGraphUpload\000_cuGraphExecGetFlags\000_cuGraphExecGetId\000_cuGraphAddNode_v2\000_cuGraphAddEmptyNode\000_cuGraphAddBatchMemOpNode\000_cuGraphAddExternalSemaphoresSignalNode\000_cuGraphAddExternalSemaphoresWaitNode\000_cuGraphAddHostNode\000_cuGraphAddKernelNode_v2\000_cuGraphAddMemc""pyNode\000_cuGraphAddMemsetNode\000_cuGraphAddMemAllocNode\000_cuGraphAddMemFreeNode\000_cuGraphAddEventRecordNode\000_cuGraphAddEventWaitNode\000_cuGraphAddChildGraphNode\000_cuGraphNodeFindInClone\000_cuGraphDestroyNode\000_cuGraphBatchMemOpNodeGetParams\000_cuGraphBatchMemOpNodeSetParams\000_cuGraphExternalSemaphoresSignalNodeGetParams\000_cuGraphExternalSemaphoresSignalNodeSetParams\000_cuGraphExternalSemaphoresWaitNodeGetParams\000_cuGraphExternalSemaphoresWaitNodeSetParams\000_cuGraphHostNodeGetParams\000_cuGraphHostNodeSetParams\000_cuGraphKernelNodeGetParams_v2\000_cuGraphKernelNodeSetParams_v2\000_cuGraphMemcpyNodeGetParams\000_cuGraphMemcpyNodeSetParams\000_cuGraphMemsetNodeGetParams\000_cuGraphMemsetNodeSetParams\000_cuGraphMemAllocNodeGetParams\000_cuGraphMemFreeNodeGetParams\000_cuGraphEventRecordNodeGetEvent\000_cuGraphEventWaitNodeGetEvent\000_cuGraphEventRecordNodeSetEvent\000_cuGraphEventWaitNodeSetEvent\000_cuGraphChildGraphNodeGetGraph\000_cuGraphNodeGetContainingGraph\000_cuGraphNodeGetDependencies_v2\000_cuGraphNodeGetDependentNodes_v2\000_cuGraphKernelNodeCopyAttributes\000_cuGraphNodeSetParams\000_cuGraphNodeGetType\000_cuGraphKernelNodeGetAttribute\000_cuGraphKernelNodeSetAttribute\000_cuGraphNodeGetToolsId\000_cuGraphNodeGetLocalId\000_cuGraphicsEGLRegisterImage\000_cuGraphicsGLRegisterImage\000_cuGraphicsGLRegisterBuffer\000_cuGraphicsVDPAURegisterOutputSurface\000_cuGraphicsVDPAURegisterVideoSurface\000_cuGraphicsUnregisterResource\000_cuGraphicsResourceSetMapFlags_v2\000_cuGreenCtxCreate\000_cuGreenCtxDestroy\000_cuGreenCtxGetDevResource\000_cuGreenCtxRecordEvent\000_cuGreenCtxWaitEvent\000_cuGreenCtxGetId\000_cuIpcGetEventHandle\000_cuIpcGetMemHandle\000_cuLibraryGetKernel\000_cuLibraryEnumerateKernels\000_cuKernelSetCacheConfig\000_cuKernelGetParamInfo\000_cuLaunchKernelEx\000_cuKernelGetLibrary\000_cuLibraryLoadFromFile\000_cuLibraryLoadData\000_cuLibraryUnload\000_cuCtxSetLimit\000_cuLinkDestroy\000_cuLinkAddFile_v2\000_cuLinkAddData_""v2\000_cuLinkComplete\000_cuLogsDumpToMemory\000_cuLogsDumpToFile\000_cuLogsCurrent\000_cuLogsRegisterCallback\000_cuLogsUnregisterCallback\000_cuMemPoolGetAccess\000_cuMemGetAllocationPropertiesFromHandle\000_cuMemBatchDecompressAsync\000_cuMulticastCreate\000_cuMemCreate\000_cuMemRetainAllocationHandle\000_cuMemImportFromShareableHandle\000_cuMemRelease\000_cuMulticastAddDevice\000_cuMulticastBindAddr_v2\000_cuMulticastBindMem_v2\000_cuMulticastUnbind\000_cuMulticastBindAddr\000_cuMulticastBindMem\000_cuMemSetMemPool\000_cuMemPoolExportPointer\000_cuDeviceGetDefaultMemPool\000_cuDeviceGetMemPool\000_cuMemGetDefaultMemPool\000_cuMemGetMemPool\000_cuMemPoolCreate\000_cuMemPoolImportFromShareableHandle\000_cuMemPoolDestroy\000_cuMemPoolSetAccess\000_cuMemPoolGetAttribute\000_cuMemPoolSetAttribute\000_cuMemPoolTrimTo\000_cuMipmappedArrayCreate\000_cuExternalMemoryGetMappedMipmappedArray\000_cuGraphicsResourceGetMappedMipmappedArray\000_cuTexRefGetMipmappedArray\000_cuMipmappedArrayDestroy\000_cuFuncGetModule\000_cuLibraryGetModule\000_cuModuleLoad\000_cuModuleLoadData\000_cuModuleLoadFatBinary\000_cuModuleLoadDataEx\000_cuModuleUnload\000_cuModuleGetLoadingMode\000_cuGetErrorName\000_cuGetErrorString\000_cuCtxGetSharedMemConfig\000_cuCtxSetSharedMemConfig\000_cuGreenCtxStreamCreate\000_cuStreamCreate\000_cuStreamCreateWithPriority\000_cuStreamDestroy_v2\000_cuStreamQuery\000_cuStreamSynchronize\000_cuStreamGetCtx\000_cuStreamGetCtx_v2\000_cuStreamGetDevResource\000_cuStreamGetDevice\000_cuStreamWaitValue32_v2\000_cuStreamWriteValue32_v2\000_cuStreamWaitValue64_v2\000_cuStreamWriteValue64_v2\000_cuStreamAttachMemAsync\000_cuStreamWaitEvent\000_cuStreamEndCapture\000_cuStreamBeginCaptureToGraph\000_cuStreamUpdateCaptureDependencies_v2\000_cuStreamGetGreenCtx\000_cuLaunchHostFunc\000_cuStreamCopyAttributes\000_cuStreamGetAttribute\000_cuStreamSetAttribute\000_cuStreamAddCallback\000_cuStreamBeginCapture_v2\000_cuStreamIsCapturing\000_cuStreamGetCaptureInfo_v3\000_cuStrea""mGetPriority\000_cuStreamGetId\000_cuStreamGetFlags\000_cuStreamBatchMemOp_v2\000_cuThreadExchangeStreamCaptureMode\000_cuSurfObjectCreate\000_cuSurfObjectDestroy\000_cuModuleGetSurfRef\000_cuSurfRefSetArray\000_cuTensorMapEncodeTiled\000_cuTensorMapEncodeIm2col\000_cuTensorMapEncodeIm2colWide\000_cuTensorMapReplaceAddress\000_cuTexObjectCreate\000_cuTexObjectDestroy\000_cuTexRefCreate\000_cuModuleGetTexRef\000_cuTexRefDestroy\000_cuTexRefSetAddress2D_v3\000_cuTexRefSetArray\000_cuTexRefSetFormat\000_cuTexRefSetFilterMode\000_cuTexRefSetMipmapFilterMode\000_cuTexRefSetMipmappedArray\000_cuTexRefSetBorderColor\000_cuTexRefSetMipmapLevelBias\000_cuTexRefSetMipmapLevelClamp\000_cuTexRefSetAddressMode\000_cuTexRefSetFlags\000_cuTexRefSetMaxAnisotropy\000_cuUserObjectCreate\000_cuUserObjectRelease\000_cuUserObjectRetain\000_cuDeviceGetUuid_v2\000_cuGraphicsResourceGetMappedEglFrame\000_cuEGLStreamConsumerDisconnect\000_cuEGLStreamProducerDisconnect\000_cuEGLStreamConsumerAcquireFrame\000_cuEGLStreamConsumerReleaseFrame\000_cuEGLStreamProducerReturnFrame\000_cuEGLStreamProducerPresentFrame\000_cuEGLStreamConsumerConnect\000_cuEGLStreamProducerConnect\000_cuEGLStreamConsumerConnectWithFlags\000_cuDeviceGetName\000_cuDeviceGetPCIBusId\000_cuDeviceGetLuid\000_cuFuncGetName\000_cuKernelGetName\000_cuGetProcAddress_v2\000_cuEventElapsedTime_v2\000_cuTexRefGetBorderColor\000_cuTexRefGetMipmapLevelBias\000_cuTexRefGetMipmapLevelClamp\000_cuDeviceGetCount\000_cuDriverGetVersion\000_cuDeviceCanAccessPeer\000_cuDeviceGetP2PAttribute\000_cuDeviceGetAttribute\000_cuDeviceGetExecAffinitySupport\000_cuOccupancyMaxActiveClusters\000_cuOccupancyMaxPotentialClusterSize\000_cuOccupancyMaxActiveBlocksPerMultiprocessor\000_cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\000_cuFuncGetAttribute\000_cuKernelGetAttribute\000_cuTexRefGetMaxAnisotropy\000_cuCtxGetStreamPriorityRange\000_cuDeviceComputeCapability\000_cuOccupancyMaxPotentialBlockSize\000_cuOccupancyMaxPotentialBlockSizeWithFlag""s\000_cuCheckpointProcessCheckpoint\000_cuCheckpointProcessLock\000_cuCheckpointProcessRestore\000_cuCheckpointProcessUnlock\000_cuCheckpointProcessGetState\000_cuCheckpointProcessGetRestoreThreadId\000_cuDeviceGetTexture1DLinearMaxWidth\000_cuDeviceTotalMem_v2\000_cuOccupancyAvailableDynamicSMemPerBlock\000_cuCtxGetLimit\000_cuMemGetAllocationGranularity\000_cuMulticastGetGranularity\000_cuTexRefSetAddress_v2\000_cuMemGetInfo_v2\000_cuMemcpy3DBatchAsync_v2\000_cuMemGetAccess\000_cuCtxGetFlags\000_cuDeviceGetHostAtomicCapabilities\000_cuDeviceGetP2PAtomicCapabilities\000_cuGLGetDevices_v2\000_cuLibraryGetKernelCount\000_cuModuleGetFunctionCount\000_cuTexRefGetFlags\000_cuMemHostGetFlags\000_cuCtxSetFlags\000_cuInit\000_cuGraphicsMapResources\000_cuGraphicsUnmapResources\000_cuLinkCreate_v2\000_cuPointerGetAttributes\000_cuMemFreeHost\000_cuMemHostUnregister\000_cuLibraryGetUnifiedFunction\000_cuMemRangeGetAttributes\000_cuMemAllocHost_v2\000_cuMemHostAlloc\000_cuMemcpyAtoH_v2\000_cuMemcpyAtoHAsync_v2\000_cuDeviceGetNvSciSyncAttributes\000_cuMemcpyDtoH_v2\000_cuMemGetHandleForAddressRange\000_cuMemcpyDtoHAsync_v2\000_cuMemExportToShareableHandle\000_cuMemPoolExportToShareableHandle\000_cuPointerGetAttribute\000_cuMemRangeGetAttribute\000_cuMemHostRegister_v2\000_cuGetExportTable\000_cuPointerSetAttribute\000_cuCtxResetPersistingL2Cache\000_cuCtxSynchronize\000_cuProfilerStart\000_cuProfilerStop\200\001\330\004\005\330\004\007\200z\220\023\220A\330\010\024\320\024.\250a\330\004\013\2109\220A\220Q\200\001\330\004\005\330\004\007\200z\220\027\230\001\330\010\017\210q\340\004\020\220\001\330\004\025\220Q\340\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\210\036\220z\240\021\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004""\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t2\260*\270A\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\033\230:\240Q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001""\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t \240\n\250!""\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t2\260*\270A\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t\031\230\032\2401\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004""\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t6\260j\300\001\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001""\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t\031\230\032\2401\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\033\230:\240Q\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t7\260z\300\021\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t1\260\032\2701\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320""\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t2\260*\270A\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t2\260*\270A\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t5\260Z\270q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t'\240z""\260\021\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t8\270\n\300!\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\033\230:\240Q\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t5\260Z\270q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t\034\230J\240a\330\004\005\330\004\010\210\001\320\t\031\230\032\2401\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t.\250j""\270\001\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t7\260z\300\021\330\004\005\330\004\010\210\001\320\t=\270Z\300q\330\004\005\330\004\010\210\001\320\t=\270Z\300q\330\004\005\330\004\010\210\001\320\t5\260Z\270q\330\004\005\330\004\010\210\001\320\t;\270:\300Q\330\004\005\330\004\010\210\001\320\t;\270:\300Q\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001""\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t\035\230Z\240q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t2\260*\270A\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t1\260\032\2701\330\004\005\330\004\010\210\001\320\tA\300\032\3101\330\004\005\330\004\010\210\001\320\t?\270z\310\021\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330""\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t<\270J\300a\330\004\005\330\004\010\210\001\320\tE\300Z\310q\330\004\005\330\004\010\210\001\320\t1\260\032\2701\330\004\005\330\004\010\210\001\320\t:\270*\300A\330\004\005\330\004\010\210\001\320\t8\270\n\300!\330\004\005\330\004\010\210\001\320\t3\260:\270Q\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010""\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t1\260\032\2701\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t:\270*\300A\330\004\005\330\004\010\210\001\320\t6\260j\300\001\330\004\005\330\004\010\210\001\320\t1\260\032\2701\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t-\250Z\260q\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t%\240Z\250q\330\004""\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t&\240j\260\001\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t'\240z\260\021\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t\036\230j\250\001\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t#\240:\250Q\330\004\005\330\004\010\210\001\320\t6\260j\300\001\330\004\005\330\004\010\210\001\320\t,\250J\260a\330\004\005\330\004\010\210\001\320\t(\250\n\260!\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t \240\n\250!\330\004\005\330\004\010\210\001\320\t\037\230z\250\021\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t.\250j\270\001\330\004\005\330\004\010\210\001\320\t0\260\n\270!\330\004\005\330\004\010\210\001\320\t/\250z\270\021\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t)\250\032\2601\330\004\005\330\004\010\210\001\320\t+\250:\260Q\330\004\005\330\004\010\210\001\320\t*\250*\260A\330\004\005\330\004\010\210\001\320\t\"\240*\250A\330\004\005\330\004\010\210\001\320\t!\240\032\2501\330\004\005\330\004\010\210\001\320\t$\240J\250a\330\004\005\330\004\010\210\001\320\t4\260J\270a\330\004\005\330\004\010\210\001\320\t5\260Z\270q\340\004\020\220\001\330\004\013\2101";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 996; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 486) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 996; i < 999; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 999; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 996;
      for (Py_ssize_t i=0; i<3; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 0;
    int8_t const cint_constants_1[] = {0};
    int64_t const cint_constants_8[] = {4294967296LL};
    for (int i = 0; i < 2; i++) {
      numbertab[i] = PyLong_FromLongLong((i < 1 ? cint_constants_1[i - 0] : cint_constants_8[i - 1]));
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<2; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 1;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 1;
    unsigned int flags : 10;
    unsigned int first_line : 13;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7126};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__bindings_cydriver_2, __pyx_mstate->__pyx_n_u_inspect_function_pointers, __pyx_mstate->__pyx_kp_b_iso88591_z_q_Q_1_z_z_Q_Ja_1_Q_Ja_3_Q_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8096};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__bindings_cydriver_2, __pyx_mstate->__pyx_n_u_inspect_function_pointer, __pyx_mstate->__pyx_kp_b_iso88591_z_A_a_9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr (used by PyObjectLookupSpecial) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStrNoError (used by PyObjectLookupSpecial) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* PyObjectLookupSpecial */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* GetBuiltinName (used by GetModuleGlobalName) */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectVectorCallKwBuilder */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    Py_INCREF(key);
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* decode_c_string */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    Py_ssize_t length;
    if (unlikely((start < 0) | (stop < 0))) {
        size_t slen = strlen(cstring);
        if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) {
            PyErr_SetString(PyExc_OverflowError,
                            "c-string too long to convert to Python");
            return NULL;
        }
        length = (Py_ssize_t) slen;
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (unlikely(stop <= start))
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode);
    length = stop - start;
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* RaiseException */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#elif __PYX_LIMITED_VERSION_HEX > 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX > 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX > 0x030C0000
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX <= 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* ErrOccurredWithGIL */
static CYTHON_INLINE int __Pyx_ErrOccurredWithGIL(void) {
  int err;
  PyGILState_STATE _save = PyGILState_Ensure();
  err = !!PyErr_Occurred();
  PyGILState_Release(_save);
  return err;
}

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
        Py_INCREF(src[i]);
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* DictGetItem */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    if (unlikely(__Pyx_PyDict_GetItemRef(d, key, &value) == 0)) { // no value, no error
        if (unlikely(PyTuple_Check(key))) {
            PyObject* args = PyTuple_Pack(1, key);
            if (likely(args)) {
                PyErr_SetObject(PyExc_KeyError, args);
                Py_DECREF(args);
            }
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
    }
    return value;
}
#endif

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* FunctionExport */
static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig) {
    PyObject *cobj;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    tmp.fp = f;
    cobj = PyCapsule_New(tmp.p, sig, 0);
    if (!cobj)
        goto bad;
    if (PyDict_SetItemString(api_dict, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(cobj);
    return -1;
}

/* GetApiDict */
static PyObject *__Pyx_ApiExport_GetApiDict(void) {
    PyObject *d;
    if (__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_capi, &d) == -1)
        return NULL;
    if (!d) {
        d = PyDict_New();
        if (!d)
            goto bad;
        if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_pyx_capi, d) < 0)
            goto bad;
    }
    return d;
bad:
    Py_XDECREF(d);
    return NULL;
}

/* HasAttr (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* ImportImpl (used by Import) */
static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) {
    PyObject *imported_module = PyImport_GetModule(qualname);
    if (unlikely(!imported_module)) {
        *module = NULL;
        if (PyErr_Occurred()) {
            return -1;
        }
        return 0;
    }
    *module = imported_module;
    return 1;
}
static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) {
    PyObject *imported_module;
    PyObject *top_level_package_name;
    Py_ssize_t i;
    int status, module_found;
    Py_ssize_t dot_index;
    module_found = __Pyx__Import_GetModule(qualname, &imported_module);
    if (unlikely(!module_found || module_found == -1)) {
        *module = NULL;
        return module_found;
    }
    if (imported_names) {
        for (i = 0; i < len_imported_names; i++) {
            PyObject *imported_name = imported_names[i];
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
            int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name);
#else
            int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name);
            if (unlikely(has_imported_attribute == -1)) goto error;
#endif
            if (!has_imported_attribute) {
                goto not_found;
            }
        }
        *module = imported_module;
        return 1;
    }
    dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1);
    if (dot_index == -1) {
        *module = imported_module;
        return 1;
    }
    if (unlikely(dot_index == -2)) goto error;
    top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index);
    if (unlikely(!top_level_package_name)) goto error;
    Py_DECREF(imported_module);
    status = __Pyx__Import_GetModule(top_level_package_name, module);
    Py_DECREF(top_level_package_name);
    return status;
error:
    Py_DECREF(imported_module);
    *module = NULL;
    return -1;
not_found:
    Py_DECREF(imported_module);
    *module = NULL;
    return 0;
}
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *from_list = 0;
    int module_found;
    if (!qualname) {
        qualname = name;
    }
    module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module);
    if (likely(module_found == 1)) {
        return module;
    } else if (unlikely(module_found == -1)) {
        return NULL;
    }
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    if (imported_names) {
#if CYTHON_COMPILING_IN_CPYTHON
        from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names);
        if (unlikely(!from_list))
            goto bad;
#else
        from_list = PyList_New(len_imported_names);
        if (unlikely(!from_list)) goto bad;
        for (Py_ssize_t i=0; i<len_imported_names; ++i) {
            if (PyList_SetItem(from_list, i, __Pyx_NewRef(imported_names[i])) < 0) goto bad;
        }
#endif
    }
    if (level == -1) {
        const char* package_sep = strchr(__Pyx_MODULE_NAME, '.');
        if (package_sep != (0)) {
            module = PyImport_ImportModuleLevelObject(
                name, moddict, empty_dict, from_list, 1);
            if (unlikely(!module)) {
                if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                    goto bad;
                PyErr_Clear();
            }
        }
        level = 0;
    }
    if (!module) {
        module = PyImport_ImportModuleLevelObject(
            name, moddict, empty_dict, from_list, level);
    }
bad:
    Py_XDECREF(from_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#elif PY_VERSION_HEX >= 0x030d0000
    PyDict_SetDefaultRef(d, key, default_value, &value);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType (used by FetchCommonType) */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* CallTypeTraverse (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(marker);
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
#if PY_VERSION_HEX < 0x030900B1
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
#endif
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u_);
    }
    goto done;
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPyVerify (used by CIntFromPy) */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) return NULL;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  else if (!PyErr_Occurred()) {
      PyErr_SetString(PyExc_TypeError,
                      "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
